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
@Override public void onClick(View v) { Intent i = new Intent(Akun.this, Akun.class); startActivity(i); }
{ "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 onClick(View v) { Intent i = new Intent(Akun.this, Keranjang.class); startActivity(i); }
{ "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
map function of Mapper parent class takes a line of text at a time splits to tokens and passes to the context as word along with value as one
@Override protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { String line = value.toString(); StringTokenizer st = new StringTokenizer(line," "); while(st.hasMoreTokens()){ System.out.println("in"); word.set(st.nextToken().toString()); context.write(new Text("kk"),word); //System.out.println("mapper"+st.nextToken()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tStringTokenizer str=new StringTokenizer(value.toString());\n//\t\t\tString[]str=new String(value.toString()).split(\"a\");\n\t\t\twhile(str.hasMoreTokens()){\n\t\t\t\tword.set(str.nextToken());\n\t\t\t\tcontext.write(word, one);\n\t\t\t\t}\n//\t\t\tfor(String b:str){\n//\t\t\t\tword.set(b);\n//\t\t\t\tcontext.write(word, one);\n//\t\t\t\t\n//\t\t\t}\n\t\t\t\n\t\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String line = value.toString().toLowerCase();\n line = line.replaceAll(regex, \" \");\n\n StringTokenizer itr = new StringTokenizer(line);\n while (itr.hasMoreTokens()) {\n word.set(itr.nextToken());\n context.write(word, one);\n }\n }", "public void map(String line, ImoocContext context);", "@Override\n\tpublic void map(Object key, Text value, Context context)\n\tthrows IOException, InterruptedException {\n\tString[] words = value.toString().split(\"[ \\t]+\");\n\tfor(String originalWord:words)\n\t{\n\t\t//Remove all alphanumeric characters\n\t\toriginalWord = originalWord.replaceAll(\"[^a-zA-Z0-9]\",\"\");\n\t\t\n\t\t//Convert the words to lower case\n\t\t//word = word.toLowerCase();\n\t\n\t\tchar[] chars = originalWord.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sortedWord= new String(chars);\n\t\tcontext.write(new Text(sortedWord), new Text(originalWord));\n\t\tSystem.err.println(\"RKUMLOG:This is a mapper.\");\n\t}\n\t}", "@Override\n\tprotected void map(LongWritable key, Text value,Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString line=value.toString();\n\t\t//String[] words=line.split(\" \");\n\t\tStringTokenizer tokenizer=new StringTokenizer(line); //another way better datastructure\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\tString word = tokenizer.nextToken();\n\t\t\t\n\t\t\toutkey.set(word); //outkey value reset\n\t\t\tcontext.write(outkey,outvalue);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n StringTokenizer itr = new StringTokenizer(value.toString(), \"\\n\");\n\n // Loop through all lines\n while (itr.hasMoreTokens()) {\n String filteredSentence;\n String sentence = itr.nextToken().toLowerCase(Locale.ROOT);\n\n // Remove all special characters from the word and replace them with *\n filteredSentence = sentence.replaceAll(\"[^a-zA-Z ]\", \"*\");\n // Add a space at the end of every line to also represent the end of the last word in the sentence in the bigrams\n filteredSentence += \" \";\n\n // Write every lineCount + a map of the bigram and frequency of 1 to the context\n for(int i = 0; i < filteredSentence.length() - 1; i++){\n String pair = filteredSentence.substring(i, i + 2);\n context.write(new IntWritable(lineCount), new StringDoubleWritable(pair, 1.0));\n }\n lineCount++;\n }\n }", "@Override\n\t\tprotected void map(Text key, Text value, Context context)throws IOException, InterruptedException {\n\t\t\tString val = value.toString();\n\t\t\t//String word = line.split(\",\")[0];\n\t\t\t//String docname = line.split(\",\")[1];\n\t\t\tdouble n = Double.parseDouble(val.split(\",\")[0]);\n\t\t\tdouble max = Double.parseDouble(val.split(\",\")[1]);\n\t\t\tdouble N = Double.parseDouble(val.split(\",\")[2]);\n\t\t\tdouble m = Double.parseDouble(val.split(\",\")[3]);\n\t\t\t//System.out.println(\"n is:\"+n+\"max is:\"+max+\" N is:\"+N+\" m is:\"+m+\" D is:\"+D);\n\t\t\tdouble tf = n/max;\n\t\t\t//System.out.println(\"TF is:\"+tf);\n\t\t\t//String TF = \"tf: \"+tf;\n\t\t\tdouble idf = (Math.log(D/m)/Math.log(2));\n\t\t\tdouble tfidf = tf*idf;\n\t\t\t//System.out.println(\"IDF is:\"+idf);\n\t\t\t//String IDF = \"idf: \"+idf;\n\t\t\tString word = key.toString().split(\",\")[0];\n\t\t\tString article = key.toString().split(\",\")[1];\n\t\t\tString new_val = word+\",\"+tf+\",\"+idf+\",\"+tfidf;\n\t\t\tcontext.write(new Text(article),new Text(new_val));\n\t\t}", "@Override\n\tprotected void map(LongWritable key, Text text, Context context) throws IOException, InterruptedException {\n\n\t\t// Set log-level to debugging\n\t\tLOG.setLevel(Level.DEBUG);\n\t\tLOG.debug(\"The mapper task of Nischay Bikram Thapa, s3819491\");\n\t\tText word = new Text();\n\t\tStringTokenizer itr = new StringTokenizer(text.toString());\n\t\ttry {\n\t\t\t// Log every line\n\t\t\tLOG.debug(text);\n\t\t\t\n\t\t\twhile (itr.hasMoreTokens()) {\n\t\t\t\t\n\t\t\t\tString token = itr.nextToken();\n\t\t\t\t\n\t\t\t\tif(token.length() > 10 ) {\n\n\t\t\t\t\tword.set(\"Extra Long\"); \n\n\t\t\t\t} else if (token.length() >= 8 && token.length() <= 10) {\n\n\t\t\t\t\tword.set(\"Long\");\n\n\t\t\t\t} else if (token.length() >= 5 && token.length() <= 7) {\n\n\t\t\t\t\tword.set(\"Medium\");\n\n\t\t\t\t} else if (token.length() >= 1 && token.length() <= 4) {\n\n\t\t\t\t\tword.set(\"Short\");\n\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tword.set(\"UnKnown\");\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tcontext.write(word, new LongWritable(1));\n\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tLOG.error(\"Caught Exception\", ex);\n\t\t}\n\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\tMap<String, Integer> map = getMap();\r\n\r\n\t\t/*\r\n\t\t * The string tokenizer class allows an application to break a string into\r\n\t\t * tokens A token is nothing but a line in file\r\n\t\t */\r\n\t\tStringTokenizer split = new StringTokenizer(value.toString());\r\n\r\n\t\t/*\r\n\t\t * Tests if there are more tokens available from this tokenizer's string. If\r\n\t\t * this method returns true, then a subsequent call to nextToken with no\r\n\t\t * argument will successfully return a token.\r\n\t\t */\r\n\ttry {\r\n\t\twhile (split.hasMoreTokens())\r\n\r\n\t\t{\r\n\t\t\t// gives the next token from this string tokenizer\r\n\t\t\t//String token = itr.nextToken();\r\n\t\t\tString ntoken = split.nextToken();\r\n\t\t\tif (map.containsKey(ntoken))// true if this map has a mapping for the specified key\r\n\t\t\t{\r\n\t\t\t\tint sum = map.get(ntoken) + 1;\r\n\t\t\t\tmap.put(ntoken, sum);\r\n\t\t\t} else {\r\n\t\t\t\tmap.put(ntoken, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t\t\r\n\t}\r\n\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tStringTokenizer tok = new StringTokenizer(value.toString(), \",\"); \n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(tok.hasMoreTokens())\n\t\t\t\t\ttok.nextToken();\n\t\t\t\tif(tok.hasMoreTokens())\n\t\t\t\t\tlocation.set(tok.nextToken());\n\t\t\t\tif(tok.hasMoreTokens())\n\t\t\t\t\tnew_cases.set(Long.parseLong(tok.nextToken()));\n\n\t\t\t\tcontext.write(location, new_cases);\n\t\t\t\n\t\t\t}catch(Exception e){\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] token = value.toString().split(\"\\t\");\n String[] pair = new String[2];\n if(token.length < 2) return;\n String[] data = token[1].split(\",\");\n\n for (String d : data) {\n pair[0] = token[0];\n pair[1] = d;\n if(Integer.parseInt(pair[0])<Integer.parseInt(pair[1]))\n keyPair.set(\"<\"+pair[0]+\",\"+pair[1]+\">\");\n else\n keyPair.set(\"<\"+pair[1]+\",\"+pair[0]+\">\");\n\n friend.set(token[1]); // set word as each input keyword\n context.write(keyPair, friend); // create a pair <keyword, 1>\n }\n }", "@Override\n\t\tpublic void map(LongWritable key, Text value, Context context) \n\t\t\t\tthrows IOException, InterruptedException \n\t\t{\n\t\t\tString[] lines = value.toString().split(\"\\\\r?\\\\n\"); /* Split input block on new line*/\n\t\t\tfor (String line : lines) /*For each line, search article.*/\n\t\t\t{\n\t\t\t\tif (line == null || line.trim().equals(\"\")) {continue;} //Skip over bank or null lines\n\t\t\t\tString[] elements = line.split(\"\\\\t\"); /*Split line over tabs*/\n\t\t\t\t\n\t\t\t\tif (elements[1].contains(Searchword) || elements[3].contains(Searchword))\n\t\t\t\t{\n\t\t\t\t\t// If the keyword is found in the string write the output the articleID and 1\n\t\t\t\t\tcontext.write(new Text(elements[0].toString()), one); \n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] array = value.toString().split(DELIMITER);\n Text year = new Text();\n year.set(array[1].trim());\n String word = array[0].trim();\n int number_of_syllables = Syllable.syllable(word);\n context.write(year, new IntWritable(number_of_syllables));\n }", "@Override\n\tpublic void map(Text key, Text value, Context context) throws IOException,\n\t\tInterruptedException {\n\t\tText newKey = new Text();\n\t\tText newValue = new Text();\n\t\t\t\n\t for (String word: value.toString().toLowerCase().split(\"\\\\W+\")){\n\t\t\t\t// for each word emit a key value pair\n\t \tnewKey.set(word);\n\t \tnewValue.set(fileName + \"@\" + key);\n\t \tcontext.write(newKey, newValue);\n\t }\n\t}", "@Override\n protected void map(\n \t\tLongWritable key, // input key type\n Text value, // input value type\n Context context) throws IOException, InterruptedException {\n\n \t\t//Create array with the words from input, splitted by space character\n String[] words = value.toString().split(\"\\\\s+\");\n \n for (String string : words) {\n \t//Remove not alphabetic characters\n \tString cleanWord = string.replaceAll(\"[^\\\\p{Alpha}]\", \"\");\n \t//Export lowercased word along with the name of the file the word comes from \n \tif (!cleanWord.isEmpty()) {\n\t\t\t\t\tcontext.write(new Text(cleanWord.toLowerCase()),new Text(((FileSplit)context.getInputSplit()).getPath().getName()));\n\t\t\t\t}\n\t\t\t}\n }", "@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String inputLine = value.toString().trim();\n String[] fromPageToPages = inputLine.split(\"\\t\");\n if (fromPageToPages.length == 1 || fromPageToPages[1].trim().equals(\"\")) {\n return;\n }\n String from = fromPageToPages[0];\n String[] tos = fromPageToPages[1].split(\",\");\n for (String to : tos) {\n context.write(new Text(from), new Text(to + \"=\" + (double)1/tos.length));\n }\n }", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException\n {\n String line = value.toString().toLowerCase();\n\n // Splitting into doc number and its text\n String document_split[] = line.split(\"\\t\",2);\n Text document_number = new Text(document_split[0]);\n\n // Replace all non alphabetic characters and non spaces with a space\n String document_content=document_split[1].replaceAll(\"[^ a-z]+\", \" \");\n\n String bigram_word_1=null;\n String bigram_word_2=null;\n // Tokenize into words\n StringTokenizer tokenizer = new StringTokenizer(document_content);\n int x=0;\n while(tokenizer.hasMoreTokens())\n {\n x+=1;\n if(x==1)\n {\n bigram_word_1=tokenizer.nextToken();\n }\n else\n {\n bigram_word_2=tokenizer.nextToken();\n String bigram_pair_string=bigram_word_1+\" \"+bigram_word_2;\n bigram_pair.set(bigram_pair_string);\n context.write(bigram_pair, document_number);\n break;\n }\n }\n while(tokenizer.hasMoreTokens())\n {\n bigram_word_1=bigram_word_2;\n bigram_word_2=tokenizer.nextToken();\n String bigram_pair_string=bigram_word_1+\" \"+bigram_word_2;\n bigram_pair.set(bigram_pair_string);\n context.write(bigram_pair, document_number);\n }\n }", "@Override\n public void map(LongWritable key, Text value, Context context)\n throws IOException, InterruptedException {\n \tString filename = ((FileSplit) context.getInputSplit())\n\t\t\t\t.getPath().getName();\n\n if (!value.toString().isEmpty()) {\n \tString line = value.toString().toLowerCase().replaceAll(\"[\\\\p{Punct}&&[^']&&[^-]]|(?<![a-zA-Z])'|'(?![a-zA-Z])|--|(?<![a-zA-Z])-|-(?![a-zA-Z])|\\\\d+\",\" \"); \t\n \tfor (String token : line.split(\"\\\\s+\")) {\n \t\tif (!token.isEmpty()) { \n \t\t\tcontext.write(new Text(token+\"#\"),new Text(\"1\")); // write # words and 1\n \t\tcontext.write(new Text(token + \",\" + filename),new Text(\"1\"));\t// write key and id\t\n \t\tcontext.write(new Text(token+\"%\"),new Text(filename));\t// write key and id\t\n \t\tcontext.write(new Text(\":\"+filename),new Text(\"1\"));\n \t\t\n \t\t//if (frequencyDoc.containsKey(filename)) {\n \t\t\t//frequencyDoc.put(filename, frequencyDoc.get(filename) + 1);\n \t\t//}\n \t//else {\n \t\t//frequencyDoc.put(filename, 1);\n \t\t//}\n \t\t}\n \t}\n \t}\n }", "@Override\n\tprotected void map(LongWritable key, Text value,Context context) throws IOException, \n\tInterruptedException {\n\t\t\n\t\tfinal String inputValue=value.toString();\n\t\t\n\t\tfinal IntWritable ONE = new IntWritable(1);\n\t\t\n\t\tif(!StringUtils.isEmpty(inputValue))\n\t\t{\n\t\t\tfinal String[] words = StringUtils.splitPreserveAllTokens(inputValue, \n\t\t\t\t\tMRConstants.EMPTY.getValue());\n\t\t\tfor (String word : words) {\n\t\t\t\tcontext.write(new Text(word), ONE);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\t\tpublic void map(Text key, Text value,\n\t\t\t\tOutputCollector<Text, Text> output, Reporter reporter)\n\t\t\t\tthrows IOException {\n\t\t\tfor (String word : words) {\n\t\t\t\tif (key.toString().equals(word)) {\n\t\t\t\t\tString[] outVals = parseOutValue(value.toString(), filemap)\n\t\t\t\t\t\t\t.split(\"\\n\");\n\t\t\t\t\tfor (String val : outVals) {\n\t\t\t\t\t\tString outkey = val.substring(0, val.indexOf('['));\n\t\t\t\t\t\tString outval = word + \"::\"\n\t\t\t\t\t\t\t\t+ val.substring(val.indexOf(':') + 1);\n\t\t\t\t\t\toutput.collect(new Text(outkey), new Text(outval));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void map(Object key, Text value, Context context)\n\t\t\t\t\tthrows IOException, InterruptedException\n\t\t\t\t\t{\n\t//Passing the string and splitting it by comma separated and storing it in string array\n\t\t\t\tString[] arr_new = value.toString().split(\",\");\n //Inserting the value at the 2nd position of the string array\n\t\t\t\tspeed.set(arr_new[14]);\n\t//Inserting the value at the 4th position of the string array and parsing it to integer\n\t\t\t\taccidents.set(Integer.parseInt(arr_new[6]));\n\t//Passing the key and value to context buffer of the Map output \n\t\t\t\tcontext.write(speed, accidents);\n\t\t\t\t\n\t\t\t\t\n\t\t}", "@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n StringTokenizer tokenizer = new StringTokenizer(value.toString());\n while (tokenizer.hasMoreTokens()) {\n String word = tokenizer.nextToken();\n if (buffer.containsKey(word)) {\n buffer.put(word, buffer.get(word) + 1);\n } else {\n buffer.put(word, 1);\n }\n }\n }", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException{\n val = value.toString();\n\t\tarr = val.split(\"\\\\s+\");\n\t\tprova.set(Long.parseLong(arr[1]));\n\t\tcontext.write(prova,one);\n\t\t\n }", "public void map(Object key, Text lineText, Context context) throws IOException, InterruptedException {\r\n\t\t\tString line = lineText.toString();\r\n\t\t\tString country = line.split(\",\")[1];\r\n\t\t\tString cases = line.split(\",\")[2];\r\n\t\t\tif(line.split(\",\")[0].equals(\"date\")) {}\r\n\t\t\telse{\r\n\t\t\t\tcontext.write(new Text(country), new LongWritable(Integer.parseInt(cases)));\r\n\t\t\t}\r\n\t\t}", "public void map(LongWritable key, Text value,\n\t\t\tOutputCollector<Text, IntWritable> output, Reporter reporter)\n\t\t\tthrows IOException {\n\t\t// taking one line at a time from input file and tokenizing the same\n\t\tString line = value.toString();\n\t\tStringTokenizer tokenizer = new StringTokenizer(line);\n\n\t\t// combiner part\n\t\t// iterating through all the words available in that line and forming\n\t\t// the key value pair\n\t\twords.clear();\n\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\tString match = tokenizer.nextToken();\n\t\t\tif (match.equals(WordSearch.find)) {\n\t\t\t\tif (words.containsKey(match)) {\n\t\t\t\t\tcount = (int) words.get(match);\n\t\t\t\t\twords.put(match, count + 1);\n\t\t\t\t} else {\n\t\t\t\t\twords.put(match, 1);\n\t\t\t\t\tcount = 1;\n\t\t\t\t}\n\n\t\t\t\tString fileName = ((FileSplit) reporter.getInputSplit())\n\t\t\t\t\t\t.getPath().getName();\n\t\t\t\tSystem.out.println(fileName);\n\n\t\t\t\tfile.set(fileName);\n\t\t\t\toutput.collect(file, fileDetector);\n\t\t\t}\n\t\t}\n\t\tfor(String keys: words.keySet())\n\t\t{\n\t\t\tcount = words.get(keys);\n\t\t\tSystem.out.println(\"Total :\"+count);\n\t\t\tfinal IntWritable values = new IntWritable(count);\n\t\t\tword.set(keys);\n\t\t\toutput.collect(word, values);\n\t\t}\n\t}", "@Override\n\t\tprotected void map(Object key, Text value,\n\t\t\t\tMapper<Object, Text, MyKey, Text>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString line[] = value.toString().split(\"\\t\");\n\t\t\tif(line.length<2)return;\n\t\t\tk.setK(new Text(line[0]));\n\t\t\tk.setV(new Text(line[1]));\n\t\t\tcontext.write(k,new Text(line[1]));\n\t\t}", "@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String[] pageRank = value.toString().trim().split(\"\\t\");\n context.write(new Text(pageRank[0]), new Text(pageRank[1]));\n }", "@Override\n public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n String line = value.toString();\n\n String[] data = line.split(\"\\t\");\n // label \"0\" stands for matrix M\n // label \"1\" stands for matrix N\n Text commonKey = new Text();\n Text diffValue = new Text();\n if (data[3].equals(\"0\")){\n // commonKey is <j>\n commonKey.set(data[1]);\n // diffValue is <i><,><mij><,><0>\n diffValue.set(data[0]+\",\"+data[2]+\",\"+data[3]);\n }else if(data[3].equals(\"1\")){\n // commonKey is <j>\n commonKey.set(data[0]);\n // diffValue is <k><,><njk><,><1>\n diffValue.set(data[1]+\",\"+data[2]+\",\"+data[3]);\n }\n context.write(commonKey,diffValue);\n }", "@Override\n\t\tpublic void flatMap(String value, Collector<Tuple2<Cell, Integer>> out) {\n\t\t\tString[] tokens = value.split(\"\\\\s+\");\n//\t\t\tSystem.out.println(\"token0 \" + tokens[0]);\n//\t\t\tSystem.out.println(\"token1 \" + tokens[1]);\n\t\t\tout.collect(new Tuple2<Cell, Integer>( new Cell(Long.parseLong(tokens[0]),Long.parseLong(tokens[1])), 0));\n\t\t}", "public void map(Object key, Text value, Context context)\n throws IOException, InterruptedException {\n Scanner line = new Scanner(value.toString());\n line.useDelimiter(\"\\t\");\n author.set(line.next());\n context.write(author, one);\n }", "protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\r\n\r\n\t\tif (value.toString().contains(\"Marque\")){ // pour ne pas prendre en compte la première ligne (en-tête)\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tString line = value.toString(); \r\n\t\tline = line.replaceAll(\"\\\\u00a0\",\" \");\r\n\t\t\r\n\t\tString[] splitted_line = line.split(\",\"); \r\n\r\n\t\t// Gestion colonne marque\r\n\t\tString marque;\r\n\t\tString[] splitted_space = splitted_line[1].split(\"\\\\s+\"); \r\n\t\tmarque = splitted_space[0];\r\n\r\n\t\tmarque = marque.replace(\"\\\"\", \"\");\r\n\r\n\t\t// Gestion colonne Malus/Bonus\r\n String malus_bonus = splitted_line[2];\r\n\r\n\t\tmalus_bonus = malus_bonus.replaceAll(\" \", \"\").replace(\"€1\", \"\").replace(\"€\", \"\").replace(\"\\\"\", \"\");\r\n\r\n\t\tif (malus_bonus.equals(\"150kW(204ch)\") || malus_bonus.equals(\"100kW(136ch)\"))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (malus_bonus.length() == 1){\r\n\t\t\tmalus_bonus=\"0\"; \r\n\t\t} \r\n\r\n\t\t// Gestion colonne cout energie\r\n String cout;\r\n \t cout = splitted_line[4];\r\n\t\tString[] cout_splitted = cout.split(\" \");\r\n\t\tif(cout_splitted.length == 2){ // ex : |967,€]\r\n\t\t\tcout = cout_splitted[0];\r\n\t\t} else if(cout_splitted.length == 3){ // ex : [1,005,€]\r\n\t\t\tcout= cout_splitted[0] + cout_splitted[1];\r\n\t\t}\r\n\r\n\t\t// Gestion colonne Rejet CO2\r\n\t\tString rejet = splitted_line[3];\r\n\r\n\t\tint malus_bonus_int = Integer.parseInt(malus_bonus);\r\n\t\tint rejet_int = Integer.parseInt(rejet);\r\n\t\tint cout_int = Integer.parseInt(cout);\r\n\t\r\n\t\t// couple clé/valeurs\r\n\t\tString new_value = String.valueOf(malus_bonus_int) + \"|\" + String.valueOf(rejet_int) + \"|\" + String.valueOf(cout_int);\r\n\t\t\r\n context.write(new Text(marque), new Text(new_value));\r\n\t}", "public void map(Object key, Text value, Context context\n\t\t ) throws IOException, InterruptedException {\n\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t String curr_string=value.toString();\n\t\t\t /// splitting based on \"*\" as a delimiter...\n\t\t\t String [] parts=curr_string.split(\"\\\\*\");\n\t\t\t String curr_key=parts[0];\n\t\t\t // Removing spaces from both left and right part of the string..\n\t\t\t String curr_value=parts[1].trim();\n\t\t\t String [] small_parts=curr_value.split(\",\");\n\t\t\t // Taking the count of unique files which are present in the input given to tfidf\n\t\t\t int no_of_unique_files=Integer.parseInt(small_parts[small_parts.length-1]);\n\t\t\t /// The formula to compute idf is log((1+no_of_files)/no_of_unique_files))....\n\t\t\t Configuration conf=context.getConfiguration();\n\t\t\t String value_count=conf.get(\"test\");\n\t\t\t if(!value_count.isEmpty())\n\t\t\t {\n\t\t\t int total_no_files=Integer.parseInt(value_count);\n\t\t\t double x=(total_no_files/no_of_unique_files);\n\t\t\t // Formula fo rcomputing the idf value....\n\t\t\t double idf_value=Math.log10(1+x);\n\t\t\t for(int i=0;i<small_parts.length-1;i++)\n\t\t\t {\n\t\t\t\t String [] waste=small_parts[i].split(\"=\");\n\t\t\t\t String file_name=waste[0];\n\t\t\t\t // Computing the tfidf on the fly...\n\t\t\t\t double tf_idf=idf_value*Double.parseDouble(waste[1]);\n\t\t\t\t Text word3 = new Text();\n\t\t\t\t Text word4 = new Text();\n\t\t\t\t word3.set(curr_key+\"#####\"+file_name+\",\");\n\t\t\t\t word4.set(tf_idf+\"\");\n\t\t\t\t context.write(word3,word4);\n\t\t\t\t \n\t\t\t }\n\t\t\t //word1.set(curr_key);\n\t\t\t //word2.set(idf_value+\"\");\n\t\t\t //context.write(word1,word2); \n\t\t\t} \n\t\t}", "@Override\n\t protected void map(Object key, Text value, \n\t Context context) throws IOException, InterruptedException {\n\t String[] strs = value.toString().split(\"\\\\s\");\n\t String label = strs[1];\n\t int id = Integer.parseInt(strs[0]);\n\t if(\"u\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"u\\t\"+strs[2]));\n\t } else if(\"d\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"d\\t\"+strs[2]));\n\t } else if(\"c\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"c\\t\"+strs[2]));\n\t } else {//±ß±í\n\t \tcontext.write(new VIntWritable(id), new Text(\"e\\t\"+strs[1]));\n\t }\n\t }", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n\n // emit the pairs\n for (String token : tokens) {\n if (token.length() > 0) {\n out.collect(new Tuple2<>(token, 1));\n }\n }\n }", "T transform(String line);", "@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\t\tString[] raw = value.toString().split(\"\\t\");\n\t\tcontext.write(new Text(raw[0]), new Text(raw[1]));\n\t}", "public void map(LongWritable docID, Text value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {\n FileSplit fileSplit = (FileSplit) reporter.getInputSplit();\n String filename = \"\" + fileSplit.getPath().getName();\n\n int argc = Integer.parseInt(conf.get(\"argc\"));\n java.util.Map<String, Integer> keywords = new HashMap<String, Integer>();\n\n for (int i = 0; i < argc; i++) {\n String inputString = conf.get(\"keyword\" + i);\n\n keywords.put(inputString, 0);\n\n\n }\n\n String line = value.toString();\n StringTokenizer tokenizer = new StringTokenizer(line);\n while (tokenizer.hasMoreTokens()) {\n\n String token = tokenizer.nextToken();\n for (java.util.Map.Entry<String, Integer> me : keywords.entrySet()) {\n if (token.equalsIgnoreCase(me.getKey())) {\n\n keywords.put(me.getKey(), me.getValue() + 1);\n\n }\n }\n }\n\n for (java.util.Map.Entry<String, Integer> me : keywords.entrySet()) {\n\n keyword.set(me.getKey());\n filenameCount.set(filename + \"_\" + me.getValue());\n\n output.collect(keyword, filenameCount);\n }\n }", "@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] words = value.toString().replaceAll(\" \", \"\").split(\",\");\n\n // Valid input\n if (words.length == 3) {\n // Get words\n String w1 = words[0];\n String w2 = words[1];\n String w3 = words[2];\n\n // Get word lengths\n int first = words[0].length();\n int second = words[1].length();\n int third = words[2].length();\n String lineNum = key.toString();\n\n // Conditions 1,2,4\n\n // One longest word\n // Longest word at front\n if (first > second && first > third) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n }\n // Longest word in middle\n else if (second > first && second > third) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // Longest word at end\n else if (third > first && third > second) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n\n // Two longest words\n // 1st and 2nd are the same length and longest\n if (first == second && first > third) {\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // 1st and 3rd are the same length and longest\n else if (first == third && first > second) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n // 2nd and 3rd are same length and longest\n else if (second == third && second > first) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n }\n } \n }", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n // Get the current line\n \n String line = value.toString();\n String[] linevalues = line.split(\"\\t\");\n IntWritable movieId = new IntWritable(Integer.parseInt(linevalues[1]));\n Text userId = new Text(linevalues[0]);\n context.write(movieId, userId);\n // for (String v : linevalues) {\n // System.out.println(\"Value: \" + v);\n // }\n // context.write(new IntWritable(Integer.parseInt(linevalues[0])), new Text(linevalues[1] + \",\" + linevalues[2]));\n }", "public void map(LongWritable key, Text value, OutputCollector <Text, Text> output, Reporter reporter) throws IOException {\n\n\t\tString valueString1 = value.toString();\n\t\tString valueString=valueString1.replaceAll(\"[\\\\n]\",\" \");\n\t\tString[] Data_raw = valueString.split(\"\\t\");\n\t\tif(Data_raw.length > 4)\n\t\t{\n\t\t\n\t\tString[] Data = Data_raw[4].split(\" |\\\\,|\\\\.|!|\\\\?|\\\\:|\\\\;|\\\\\\\"|\\\\(|\\\\)|\\\\<|\\\\>|\\\\[|\\\\]|\\\\#|\\\\$|\\\\=|\\\\-|\\\\/\");\n\t\tfor(String s: Data)\n\t\t{\n\t\t\toutput.collect(new Text(s.toString().toLowerCase()), new Text(Data_raw[0].toString()));\n\t\t}\n\t\t}\n\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n StringTokenizer itr = new StringTokenizer(value.toString());\n while (itr.hasMoreTokens()) {\n word = itr.nextToken().toLowerCase();\n for(String word2 : WordMap){\n\n Double similarity = calculateJaccardSimilarity(word, word2);\n\n // which have Jaccard similarity not 0 and no larger than 0.15?\n if ((similarity > 0.0) && (similarity <= 0.15)) {\n DoubleWritable result = new DoubleWritable(similarity);\n context.write(new Text(word+\"\\t\"+word2), result);\n }\n }\n }\n }", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n word.set(value);\n String line = word.toString();\n String[] col_vals = line.split(\",\");\n\n Text total_Passenger_key = new Text(\"_Passenger\");\n Text total_Trip_key = new Text(\"_Trip\");\n\n if (!col_vals[0].trim().isEmpty()) {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n \n // changing the type of first column to date value\n LocalDateTime date = LocalDateTime.parse(col_vals[1], format);\n\n // getting week days\n DayOfWeek days_of_week = date.getDayOfWeek();\n\n // For weekend - mention weekend\n if (days_of_week.toString() == \"SATURDAY\" || days_of_week.toString() == \"SUNDAY\") {\n\n context.write(new Text(date.getHour() + \"Weekend_\" + total_Passenger_key),\n new IntWritable(Integer.parseInt(col_vals[3])));\n context.write(new Text(date.getHour() + \"Weekend_\" + total_Trip_key), one);\n }\n // For weekday - mention weekday\n else {\n\n context.write(new Text(date.getHour() + \"Weekday_\" + total_Passenger_key),\n new IntWritable(Integer.parseInt(col_vals[3])));\n context.write(new Text(date.getHour() + \"Weekday_\" + total_Trip_key), one);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n\tprotected void map(LongWritable key, Text value, Mapper<LongWritable, Text, Text, LongWritable>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t\n\t\tif(value !=null && StringUtils.isNotEmpty(value.toString())){\n\t\t\tString line = value.toString();\n\t\t\tcontext.write(new Text(line.split(\"\\\\s+\")[2]), ONE);\n\t\t}\t\t\n\t}", "public void map(LongWritable key, Text string, Context context\n ) throws IOException, InterruptedException {\n\t\t\t\n\t\t\tSystem.out.println(string.toString());\n\t\t\t\n\t\t\tString[] value = string.toString().split(\",\");\n\n\t\t\tString value1 =value[1].replaceAll(\"[\\\\n\\\\t]\", \"\");\n\t\t\toutputkey.setKeyword(value[0]);\n\t\t\toutputkey.setSum(Integer.parseInt(value1));\n\t\t\tcontext.write(outputkey, new IntWritable(outputkey.getSum()));\n\t\t}", "@Override\n\t\tpublic void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tString elems[] = value.toString().split(\",\");\n\t\t\tint custID = Integer.parseInt(elems[0]);\n\t\t\tText result = new Text(filetag+elems[1]+\",\"+elems[4]);\n\t\t\tcontext.write(new IntWritable(custID), result); \n\t\t}", "@Override\n\t\tpublic void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tString elems[] = value.toString().split(\",\");\n\t\t\tint custID = Integer.parseInt(elems[1]);\n\t\t\tText result = new Text(filetag+elems[2]+\",\"+elems[3]);\n\t\t\tcontext.write(new IntWritable(custID), result);\n\t\t}", "public void map(Object key, Text value, Context context)\n throws IOException, InterruptedException\n {\n String line = value.toString();\n\n // Split the line on commas\n String[] fields = line.split(\",\");\n\n // Email address is optional, but would be in fields[4] if present\n if (fields.length >= 5) {\n String addr = fields[4];\n // make sure addr is an address\n if (addr.matches(\".+@.+\\\\..+\")) { // regex to find [email protected]\n String domain = addr.split(\"@|;\")[1];// split on @ or ;, take the second piece\n context.write(new Text(domain), new IntWritable(1));\n }\n }\n\n }", "@Override\n\t\tprotected void map(Text key, Text value,\n\t\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] array=value.toString().split(\" \");\n\t\t\tfor(int i=0;i<clist.size();i++)\n\t\t\t{\n\t\t\t\tString s=clist.get(i);\n\t\t\t//\tSystem.out.println(\"距离点为\"+s+\" \"+key.toString());\n\t\t\t\tdouble res=getDistance(s,key.toString());\n\t\t//\t\tSystem.out.println(\"距离为\"+res);\n\t\t\t\tmapvalue.set(res);\n\t\t\t\tcontext.write(key, mapvalue);\n\t\t\t}\n\t\t}", "public void map(Document value,\n OutputCollector<String, Pair> output) {\n String content = value.content;\n int count = value.count;\n for (int i = 1; i <= content.length(); i++){\n String subContent = content.substring(0, i);\n output.collect(subContent, new Pair(content, count));\n }\n }", "@Override\r\n\t//Mapper Method\r\n\tpublic void map(LongWritable key, Text value, Context c) throws IOException, InterruptedException\r\n\t{\n\tString line = value.toString();\r\n\t//Split them into tokens \r\n\tString [] tokens = line.split(\"\\\\;\");\r\n\t//Store the year of the movie title\r\n\tString year = tokens[3];\r\n\t//Check if the data is present or not(\\N)\r\n\t//If it is present then check if it is a movie after 2000\r\n\tif(year.startsWith(\"2\"))\r\n\t{\r\n\t//Take the various genres of the movie \r\n\t\tString genre=tokens[4];\r\n\t\t//Split and store each genre seperately\r\n\t\tString [] tokens_genre=genre.split(\"\\\\,\");\r\n\t\t//For each genre in the genre list of the movie run the loop\r\n\t\tfor(int i=0;i<tokens_genre.length;i++)\r\n\t\t{\t\r\n\t\t//Check if the data is provided in the genre list(not \\N)\r\n\tif(!tokens_genre[i].startsWith(\"\\\\N\"))\r\n\t{\r\n\t//For each genre set the mapper key\r\n\t//Here each key is the year of the movie and its genre connected with a '_'\r\n\t\tmapperKey.set(new Text(year) + \"_\" + new Text(tokens_genre[i]));\r\n\t\t//Create the key value pair\r\n\t\tc.write(mapperKey, new Text(\"1\"));\r\n\t}\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\t}", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] sentences = value.toLowerCase().split(\"(?<!\\\\w\\\\.\\\\w.)(?<![A-Z][a-z]\\\\.)(?<=\\\\.|\\\\?|\\\\!)\\\\s\");\n\n for(String sentence: sentences) {\n\n if (sentence.length() > 0) {\n // Remove any punctuation from the sentence\n String sanitized = sentence.replace(\".\", \"\")\n .replace(\"!\", \"\").replace(\"?\", \"\");\n\n // Split the sentence into words by using spaces\n String[] words = sanitized.split(\"\\\\W+\");\n\n if (words.length > 0) {\n String firstWord = words[0];\n\n // For each bigram, output the count 1\n for (int i = 1; i < words.length; i++) {\n out.collect(new Tuple2<>(firstWord+\" \"+words[i], 1));\n }\n }\n }\n }\n }", "public Context runMap() throws InstantiationException, IllegalAccessException, IOException {\n\t\tContext tempoContext = new Context();\n\t\tthis.setup(tempoContext);\n\t\t//Read the input file\n\t\tString[] inputLines = this.inputSplit.getLines();\n\t\t//Map process\n\t\tfor (int i=0; i<inputLines.length; i++) {\n\t\t\tthis.map(Integer.toString(i), inputLines[i], tempoContext);\n\t\t}\n\t\treturn tempoContext;\n\t}", "@Override\n\t public void map(Object key, Text value, Context context\n\t \n\t ) throws IOException, InterruptedException {\n\t\t// read line by line, with each transaction, verify if a candidate is all in this transaction, if yes, write candiate, one\n\t\t// value is a line\n\t\t \n\t\tString line = value.toString();\n\t\t\n\t\t// convert transaction to List<Integer>\n\t\tString[] s = line.split(\"\\\\s+\");\n\t\tList<Integer> t = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\t// count how many frequent items appear in this transaction\n\t\tint count = 0;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t t.add(Integer.parseInt(s[i]));\n\t\t if (hashItems.containsKey(Integer.parseInt(s[i])))\n\t\t\t\tcount++;\n\t\t}\n\t\t\n\n\t\tif (count >= 2) {\n\t\t\t Text word = new Text();\n\t\t\t String newT = new String();\n\n\t\t\t // we sort transaction t:\n\t\t\t Collections.sort(t);\n\t\t\t \n\t\t\t // convert transaction to List<Integer>\n\t\t\t for (Integer x: t)\n\t\t\t\t if (hashItems.containsKey(x)) {\n\t\t\t\t\tnewT = newT + x.toString() + \" \";\t\t\t\t\t\n\t\t\t\t }\n\t\t\t // now newT is the transaction with only frequent items, we will output it\n\t\t\t \n\t\t\t \n\t\t\t word.set(newT);\n\n\t\t\t context.write(word, new Text(\"1 1\")); // 1 support, 1 for data (to avoid error)\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t\t\n\t\t\t\n\n\t\t\n\n\t }", "public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException \n\t{\n\t\tString line = value.toString();\n\t\tStringTokenizer tokenizer = new StringTokenizer(line, \",\");\t\t\t\n\t\tif (tokenizer.hasMoreTokens() && tokenizer.nextToken().equals(\"2012\")) \n\t\t{\n\t\t\tcaller.set(tokenizer.nextToken());\n\t\t\toutput.collect(caller, one);\n\t\t}\n\t}", "private static void processText(String line, BufferedWriter wrtr)\n\t\t\tthrows JSONException, IOException {\n\t\tJSONObject topicModel = TopicModelTemplateUtil\n\t\t\t\t.getJSONFromTemplate(line);\n\t\t// populate the WORD vector for the current topic model\n\t\tTopicModelTemplateUtil.geTopicModelFromTemplate(topicModel).forEach(\n\t\t\t\ttpm -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLuceneNLPUtil.getRemovedStopAndStem(tpm.getWord(),\n\t\t\t\t\t\t\t\tLuceneNLPUtil.getDefaultEnglishStopWordList())\n\t\t\t\t\t\t\t\t.forEach(word -> {\n\t\t\t\t\t\t\t\t\tif (VOCABULARY_MAP.containsKey(word)) {\n\t\t\t\t\t\t\t\t\t\tVOCABULARY_MAP.replace(word, 1);\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} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t// dump it to the file\n\t\tdumpTextLine(topicModel.getString(ConfigConstant.JSON_FIELD.BUSINESS_ID\n\t\t\t\t.getFieldName()), wrtr);\n\t}", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException \n {\n \t\n \tStringTokenizer st_11;\n \tStringBuilder str_build;\n \tConfiguration conf1=context.getConfiguration();\n \tinput1=conf1.get(\"input1\").toString();\n \tinput2=conf1.get(\"input2\").toString();\n \t\n \tint a1=Integer.parseInt(input1);\n \tint b1=Integer.parseInt(input2);\n \t \t\n \tString[] mydata = value.toString().split(\"\\t\");\n \t\n \tif(mydata.length==2)\n \t{\n \t\tif((Integer.parseInt(mydata[0])==a1)||(Integer.parseInt(mydata[0])==b1))\n \t\t{\n \t\t\t str_build = new StringBuilder();\n \t\t\t st_11= new StringTokenizer(mydata[1].toString(),\",\");\n \t\t\t \n \t\t\t while(st_11.hasMoreElements())\n \t\t {\n \t\t\t\tString temporary=st_11.nextElement().toString();\n \t\t\t\tstr_build.append(temporary);\n \t\t\t\tstr_build.append(\"-\");\n \t\t\t\tstr_build.append(usersMap.get(temporary));\n \t\t\t\tstr_build.append(\",\");\n \t\t }\n \t\t\t str_build.deleteCharAt(str_build.length()-1);\n \t\t\t context.write(new Text(\"1\"),new Text(str_build.toString()));\n \t\t}\n \t}\n \tif(mydata.length==1)\n \t{\n \t\tif((Integer.parseInt(mydata[0])==a1)||(Integer.parseInt(mydata[0])==b1))\n \t\t{\n \t\t\tcontext.write(new Text(\"1\"),new Text(\"NULL\"));\n \t\t}\n \t\t\n \t}\n \t\n }", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n int RecordsCount = Integer.parseInt(context.getConfiguration().get(\"recordCount\"));\n\n String[] valStr = value.toString().split(\"\\n\");\n\n //Getting the delta from the counter\n double del = Double.parseDouble(context.getConfiguration().get(\"delta\"));\n\n for (String val : valStr) {\n\n //parsing pageName,linkPageNames and pageRank for each value\n String pageName = \"\";\n pageName = val.substring(0, val.indexOf(\"[\") - 1);\n String pageLinks = val.substring(val.indexOf(\"[\") + 1, val.indexOf(\"]\"));\n String rank = val.substring(val.indexOf(\"{\") + 1, val.indexOf(\"}\"));\n String[] pages = pageLinks.split(\", \");\n\n double pageRank = Double.parseDouble(rank);\n\n //updating pageRAnk with delta\n if (del != 0.0) {\n pageRank += (1 - d) * (del / RecordsCount);\n }\n\n pageData pd = new pageData(Arrays.asList(pages), pageRank);\n context.write(new Text(pageName), new Text(pd.toString()));\n\n }\n }", "public void map(Object key, Text value, Context context)\n\t\t\t\t\tthrows IOException, InterruptedException\n\t\t\t\t\t{\n\t\t\t\tString[] arr_new = value.toString().split(\",\");\n\t\t\t\tTpcondition.set(arr_new[2]);\n\t\t\t\tdbh.set(Integer.parseInt(arr_new[1]));\n\t//Passing the key and value to context buffer of the Map output \n\t\t\t\tcontext.write(Tpcondition, dbh);\n\t\t\t\t\n\t\t\t\t\n\t\t}", "public void map(Long key, Text value, MapContext<LongWritable, Text, Text, Text> context) throws IOException, InterruptedException{\n//\t\t String line = value.toString();\n//\t\t String[] tokens = line.split(\" \");\n//\t\t ip.set(tokens[0]);\n\t\t context.write(new Text(String.valueOf(key)), value);\t\n\t }", "@Override\n\t\tprotected void map(Object key, Text value, Mapper<Object, Text, Text, NullWritable>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] infos = value.toString().split(\"\\t\");\n\t\t\tapplication_no = infos[PatentStructure.application_no];\n\t\t\tif(typeSet.contains(application_no.charAt(6))){\n\t\t\t\ttype = String.valueOf(application_no.charAt(6));\n\t\t\t}else {\n\t\t\t\ttype = \"4\";\n\t\t\t}\n\t\t\tinfos[0] = \"null\";\n\t\t\tinfos[PatentStructure.url] = infos[PatentStructure.url] + \"\\t\" + type + \"\\t\" + infos[PatentStructure.url+3];\n\t\t\toutKey.set(StringUtils.join(infos, \"\\t\"));\n\t\t\tcontext.write(outKey, NullWritable.get());\n\t\t}", "@Override\n\tprotected void map(Text key, Text value,\n\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString[] values=value.toString().split(\" \");\n\t\tIntWritable mapkey=new IntWritable();\n\t\tText mapvalue=new Text();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=0;i<values.length;i++)\n\t\t{\n\t\t\tmapkey.set(i);\n\t\t\tsb.append(key.toString());\n\t\t\tsb.append(\",\");\n\t\t\tsb.append(values[i]);\n\t\t\tmapvalue.set(sb.toString());\n\t\t//\tsb=null;\n\t\t\tsb=new StringBuilder();\n\t\t\tcontext.write(mapkey, mapvalue);\n\t\t}\n\t}", "@Override\r\n\t\tprotected void map(LongWritable key, Text value,\r\n\t\t\t\tMapper<LongWritable, Text, PageCount_myself, NullWritable>.Context context)\r\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString line = value.toString();\r\n\t\t\tString[] split = line.split(\"\\t\");\r\n\t\t\t\r\n\t\t\tcontext.write(new PageCount_myself(split[0], Integer.parseInt(split[1])), NullWritable.get());\r\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void map(Text key, Text value,\n\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString[] array=value.toString().split(\" \");\n\t\tfor(int i=0;i<clist.size();i++)\n\t\t{\n\t\t\tString s=clist.get(i);\n\t\t//\tSystem.out.println(\"距离点为\"+s+\" \"+key.toString());\n\t\t\tdouble res=getDistance(s,key.toString());\n\t\t//\tSystem.out.println(\"距离为\"+res);\n\t\t\tmapvalue.set(res*Double.parseDouble(array[i]));\n\t\t\tcontext.write(mapkey, mapvalue);\n\t\t}\n\t}", "@Override\n\tpublic void map(LongWritable key, Text value, OutputCollector<Text, Text> output, Reporter reporter)\n\t\t\tthrows IOException {\n\t\tString val = value.toString();\n\t\tString[] Data = val.split(\", \");\n\t\toutput.collect(new Text(Data[1]), new Text(val));\n\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\n\t\t\tBufferedReader buff = new BufferedReader(new StringReader(value.toString()));\n\t\t\t\n\t\t\tString[] tokens;\n\t\t\tString line = null;\n\t\t\twhile ((line = buff.readLine()) != null) {\n\t\t\t\ttokens = line.split(\" \");\n\t\t\t\tif (tokens[1].split(\";\")[1].equals(\"E\")) {\n\t\t\t\t\tString groupString = null;\n\t\t\t\t\tdouble start = 0;\n\t\t\t\t\tdouble end = 0;\n\t\t\t\t\tfor (int i = 0; i < tokens.length; i++) {\n\t\t\t\t\t\tString[] subToken = tokens[i].split(\"=\");\n\t\t\t\t\t\tif (subToken[0].equals(\"group\")) {\n\t\t\t\t\t\t\tgroupString = subToken[1] + \"::\" + tokens[0].split(\"/\")[2] + \"/\" + tokens[0].split(\"/\")[0];\n\t\t\t\t\t\t} else if (subToken[0].equals(\"start\")) {\n\t\t\t\t\t\t\tstart = Double.parseDouble(subToken[1]);\n\t\t\t\t\t\t} else if (subToken[0].equals(\"end\")) {\n\t\t\t\t\t\t\tend = Double.parseDouble(subToken[1]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (groupString != null) {\n\t\t\t\t\t\tgroupName.set(groupString);\n\t\t\t\t\t\ttime.set(end - start);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"<\" + groupName.toString() + \", \" + time.toString() + \">\");\n\t\t\t\tcontext.write(groupName, time);\n\t\t\t}\n\t\t}", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tText gxy = new Text();\n\t\t\tText ij = new Text();\n\t\t\tgxy.clear();\n\t\t\tij.clear();\n\t\t\tString line = value.toString();\n\t\t\tString[] w = line.split(\":\");\n\t\t\tString[] IJ = w[0].split(\",\");\n\t\t\tint i = Integer.parseInt(IJ[0]);\n\t\t\tint j = Integer.parseInt(IJ[1]);\n\t\t\tint k = Integer.parseInt(w[1]);\n\t\t\t//int d = Integer.parseInt(w[2]);\n\t\t\tif (i==k || j==k){\n\t\t\t\tfor (int l=1; l<=4; l++){\n\t\t\t\t\tif (j==k){\n\t\t\t\t\t\tij.set(IJtoString(i, l));\n\t\t\t\t\t\tgxy.set(GXYtoString(i, j, k, w[2]));\n\t\t\t\t\t System.out.println(\"Mapper emitting\"+\" \"+ij+\" \"+gxy);\n\t\t\t\t\t\tcontext.write(ij, gxy);\n\t\t\t\t\t}\n\t\t\t\t\tif (i==k){\n\t\t\t\t\t\tij.set(IJtoString(l, j));\n\t\t\t\t\t\tgxy.set(GXYtoString(i, j, k, w[2]));\n\t\t\t\t\t\tSystem.out.println(\"Mapper emitting\"+\" \"+ij+\" \"+gxy);\n\t\t\t\t\t\tcontext.write(ij, gxy);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tij.set(IJtoString(i, j));\n\t\t\t\tgxy.set(GXYtoString(i, j, k, w[2]));\n\t\t\t\tSystem.out.println(\"Mapper emitting\"+\" \"+ij+\" \"+gxy);\n\t\t\t\tcontext.write(ij, gxy);\n\t\t\t}\n\n\t\t}", "public synchronized void process() \n\t{\n\t\t// for each word in a line, tally-up its frequency.\n\t\t// do sentence-segmentation first.\n\t\tCopyOnWriteArrayList<String> result = textProcessor.sentenceSegmementation(content.get());\n\t\t\n\t\t// then do tokenize each word and count the terms.\n\t\ttextProcessor.tokenizeAndCount(result);\n\t}", "public void wordMap(StringBuilder line, String path) {\r\n\t\tHashMap<String, ArrayList<Integer>> subIndex = new HashMap<String, ArrayList<Integer>> ();\r\n//\t\tFile file = new File(path);\r\n\t\tBufferedReader reader = null;\r\n\r\n\t\t\t\r\n//\t\t\t\treader = new BufferedReader(new FileReader(file));\r\n\t\t\t\tString textLine = line.toString();\r\n//\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tint position = 0;\r\n\t\t\t\t// reads lines in and splits them into an array.\r\n\t\t\t\ttextLine = textLine.toLowerCase();\r\n\r\n\t\t\t\tString[] lines = textLine.split(\"\\\\s\");\r\n\t\t\t\tfor (int i = 0; i < lines.length; i++) {\r\n\t\t\t\t\tlines[i] = lines[i].replaceAll(\"\\\\W\", \"\");\r\n\r\n\t\t\t\t\t// Skips empty lines that are read in\r\n\t\t\t\t\tif (lines[i].isEmpty()) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tposition += 1;\r\n\r\n\t\t\t\t\taddEntry(lines[i], path, position, subIndex);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\t\tfor(String word : subIndex.keySet()){\r\n\r\n\t\t\t\t\tfor(Integer count : subIndex.get(word)){\r\n\t\t\t\t\t\tindex.addEntry(word, path, count);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\treturn;\r\n\t}", "@Override\n public void map(LongWritable key, Text value, Context context)\n throws IOException, InterruptedException {\n String[] words = value.toString().split(Utils.delim);\n String decade = words[0],\n w1 = words[1],\n w2 = words[2],\n cW1 = words[3],\n cW2 = words[4],\n cW1W2 = words[5],\n cDecade = cDecades[Integer.parseInt(decade) - Utils.minDecade],\n pmi;\n\n if (cDecade.equals(\"-1\")) {\n logger.severe(\"Unsupported decade: \" + decade);\n return;\n }\n\n pmi = calculatePMI(\n Double.parseDouble(cW1),\n Double.parseDouble(cW2),\n Double.parseDouble(cW1W2),\n Double.parseDouble(cDecade));\n\n decadePmi.set(decade, pmi);\n newValue.set(w1 + Utils.delim + w2);\n context.write(decadePmi, newValue);\n }", "public void map(LongWritable key, Text value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException\n {\n \t // get filename to send it as key for sorting.\n \t FileSplit fileSplit = (FileSplit)reporter.getInputSplit();\n String k = fileSplit.getPath().getName();\n\n //taking one line at a time \n String line = value.toString();\n // get the position of the meaningful character\n int pos = lineno % 40;\n // get the character from the string\n String character = Character.toString(line.charAt(pos));\n // convert pipe symbol to next line \n if(character.charAt(0) == '|')\n \tcharacter = \"\\n\";\n // sending to output collector which in turn passes the same to reducer\n output.collect(new Text(k), new Text(character)); \n lineno++;\n }", "@Override\n\tprotected void map(LongWritable key, Text value,\n\t\t\tMapper<LongWritable, Text, Text, IntWritable>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tif (key.get() == 0 && value.toString().contains(\"first_name\")) {\n\t\t\treturn;\n\t\t} else \n\t\t\tcontext.write(value, recordValue); // writing line of the file as a key into context\n\t}", "protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String[] line_author = value.toString().split(\"\\t\");\n id_author.set(Integer.parseInt(line_author[1]));\n context.write(id_author, new IntWritable(1));\n }", "public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n\n String pointID = value.toString().split(\",\")[0];\n double xCord = Double.parseDouble(value.toString().split(\",\")[1]);\n double yCord = Double.parseDouble(value.toString().split(\",\")[2]);\n double distance;\n //compute distance\n distance=Math.sqrt(Math.pow((xCord-xVal),2)+Math.pow((yCord-yVal),2));\n\n outKey=new DoubleWritable(distance);\n outVal=new Text(String.valueOf(pointID));\n //emit key and values\n context.write(outKey,outVal);\n\n }", "@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\n String[] split = value.toString().split(\"\\t\");\n int length = split.length;\n\n String dateTime = split[0];\n String userId = split[1];\n String searchkwd = split[2];\n String retorder = split[3];\n String cliorder = split[4];\n String cliurl = split[5];\n\n\n logBean.setDateTime(Long.parseLong(dateTime));\n logBean.setUserId(userId);\n logBean.setSearchkwd(searchkwd);\n logBean.setRetorder(Integer.parseInt(retorder));\n logBean.setCliorder(Integer.parseInt(cliorder));\n logBean.setCliurl(cliurl);\n\n context.write(logBean, NullWritable.get());\n }", "@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n \n String[] inputArray = value.toString().split(\"::\");\n inputKey.set(Integer.parseInt(inputArray[1]));\n intValue.set(Integer.parseInt(inputArray[2]));\n SortedMapWritable inputValue = new SortedMapWritable();\n inputValue.put(intValue, count);\n context.write(inputKey, inputValue);\n }", "public void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\n\t\t\tif (value.toString().contains(\"www.baidu.com\")) {\n\t\t\t\tfor(int i=0;i<100000;i++)\n\t\t\t\t{\n\t\t\t\tmapperKey.set(value.toString());\n\t\t\t\tmapperValue.set(\"\");\n\t\t\t\t}\n\t\t\t\tcontext.write(mapperKey, mapperValue);\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\r\n\t\tprotected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\r\n\r\n\t\t\tString[] split = value.toString().split(\",\");\r\n\r\n\t\t\toutKey.set(split);\r\n\r\n\t\t\tcontext.write(outKey, NullWritable.get());\r\n\t\t}", "@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, \n InterruptedException {\n \tString text = value.toString();\n \n // declare and initialize variables for tokens of each of 3 reading frames\n \tStringTokenizer st1 = new StringTokenizer(text, \"\\n\");\n \tStringTokenizer st2 = new StringTokenizer(text.substring(1), \"\\n\");\n \tStringTokenizer st3 = new StringTokenizer(text.substring(2), \"\\n\");\n \t\n \n // read, process, and write reading frame 1\n // TCA GCC TTT TCT TTG ACC TCT TCT TTC TGT TCA TGT GTA TTT GCT GTC TCT TAG CCC AGA\n // does TCA exist in codon2aaMap?\n // if so, write (key, value) pair to context \n \tsetup(context);\n \tString frame1;\n \t\n \twhile(st1.hasMoreTokens())\n \t{\n \t\tframe1 = st1.nextToken().toString();\n \t\t\n \t\tfor (int i=0; i< frame1.length()-1; i+=3)\n \t\t{\n \t\t\tif(codon2aaMap.containsKey(frame1.substring(i, i+3)))\n \t\t\t{\n \t\t\t\tString ProteinFound = codon2aaMap.get(frame1.substring(i, i+3));\n \t\t\t\tcontext.write(new Text(ProteinFound), new Text(\"Frame1_1\"));\n \t\t\t}\n \t\t}\n \t}\n \t\n\n // read, process, and write reading frame 2\n // T CAG CCT TTT CTT TGA CCT CTT CTT TCT GTT CAT GTG TAT TTG CTG TCT CTT AGC CCA GA\n // does CAG exist in codon2aaMap?\n // if so, write (key, value) pair to context \n \tString frame2;\n \twhile(st2.hasMoreTokens())\n \t{\n \t\tframe2 = st2.nextToken().toString();\n \t\t\n \t\tfor (int i=0; i< frame2.length()-3; i+=3)\n \t\t{\n \t\t\tif(codon2aaMap.containsKey(frame2.substring(i, i+3)))\n \t\t\t{\n \t\t\t\tString ProteinFound = codon2aaMap.get(frame2.substring(i, i+3));\n \t\t\t\tcontext.write(new Text(ProteinFound), new Text(\"Frame2_1\"));\n \t\t\t}\n \t\t}\n \t}\n \n // read, process, and write reading frame 3\n // TC AGC CTT TTC TTT GAC CTC TTC TTT CTG TTC ATG TGT ATT TGC TGT CTC TTA GCC CAG A\n // does AGC exist in codon2aaMap?\n // if so, write (key, value) pair to context \n \t\n \tString frame3;\n \twhile(st3.hasMoreTokens())\n \t{\n \t\tframe3 = st3.nextToken().toString();\n \t\t\n \t\tfor (int i=0; i< frame3.length()-2; i+=3)\n \t\t{\n \t\t\tif(codon2aaMap.containsKey(frame3.substring(i, i+3)))\n \t\t\t{\n \t\t\t\tString ProteinFound = codon2aaMap.get(frame3.substring(i, i+3));\n \t\t\t\tcontext.write(new Text(ProteinFound), new Text(\"Frame3_1\"));\n \t\t\t}\n \t\t}\n \t}\n \n }", "public void map(LongWritable key, Text value, Context context)\n\t\t\tthrows InterruptedException, IOException {\n\t\tString line = value.toString();\n\n\t\tHashMap<String, String> fields = parseXml.getXmlTags(line);\n \n String fileName = ((FileSplit) context.getInputSplit()).getPath().getName();\n String shortName = fileName.substring(fileName.length()-7, fileName.length()-4);\n \n\t\thKey.set(shortName.getBytes());\n\n\t\tSet set = fields.entrySet();\n\t \n\t Iterator i = set.iterator();\n\t \n\t while(i.hasNext()) {\n\t Map.Entry me = (Map.Entry)i.next();\n\t \n\t\t if (me.getKey().equals(\"0\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_JAN.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"1\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_FEB.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"2\")) {\n\t\t \tkv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_MAR.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t \tif (me.getKey().equals(\"3\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_APR.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"4\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_MAY.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"5\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_JUN.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"6\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_JUL.getColumnName(), \n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"7\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_AUG.getColumnName(), \n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"8\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_SEP.getColumnName(), \n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"9\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_OCT.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"10\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_NOV.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"11\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_DEC.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n }\n\t }\n\t}", "@Override\n protected void map(LongWritable kin, Text datin, Context context)\n throws IOException, InterruptedException {\n try {\n Map<String, Object> f = this.parser.parseLine(datin.toString());\n if (!isValidateRecord(f)) return;\n context.write(new IntWritable((int) ((float) f.get(\"YEAR\"))), datin);\n } catch (Exception e) {\n context.getCounter(\"Exception\",\"EMap4\").increment(1);\n }\n }", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n \tString line = value.toString();\n \tString[] tokens = line.split(\"@\");\n \tdouble average = Double.parseDouble(tokens[2].trim());\n averages.put(average, new Text(value)); \n if (averages.size() > K)\n averages.remove(averages.firstKey()); \n }", "public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n String[] temp = new String[10];\n temp = value.toString().split(\",\");\n if ((temp[2].equals(\"TMAX\") || temp[2].equals(\"TMIN\") && !temp[3].equals(\"\"))){\n HashMap<String,Double[]> h= new HashMap<String, Double[]>();\n Double[] d = new Double[2];\n d[0] = Double.parseDouble(temp[3]);\n d[1] = 1.0;\n if (results.containsKey(temp[0])){\n if (results.get(temp[0]).containsKey(temp[2])){\n results.get(temp[0]).get(temp[2])[0] += Double.parseDouble(temp[3]);\n results.get(temp[0]).get(temp[2])[1] += 1.0;\n }\n else{\n results.get(temp[0]).put(temp[2],d);\n }\n }\n else{\n h.put(temp[2],d);\n results.put(temp[0], h);\n }\n }\n }", "@Override\r\n protected void map(LongWritable key, Text value, Context context)\r\n throws IOException, InterruptedException {\n\r\n String line = value.toString();\r\n String[] fields = line.split(\"\\t\");\r\n if (fields.length > BrowserComRunEnum.STRATERY.ordinal()) {\r\n StringBuilder valueSB = new StringBuilder();\r\n String timeStampStr = fields[BrowserComRunEnum.TIME.ordinal()];\r\n String versionInfo = fields[BrowserComRunEnum.VERSION.ordinal()];\r\n String categoryInfo = fields[BrowserComRunEnum.CATEGORY\r\n .ordinal()];\r\n String sucInfo = fields[BrowserComRunEnum.SUC.ordinal()];\r\n String typeInfo = fields[BrowserComRunEnum.TYPE.ordinal()];\r\n String macInfo = MACFormatUtil\r\n .macFormatToCorrectStr(fields[BrowserComRunEnum.MAC\r\n .ordinal()]);\r\n String stratery = fields[BrowserComRunEnum.STRATERY.ordinal()];\r\n this.pattern.matcher(categoryInfo);\r\n\r\n if (this.pattern.matcher(categoryInfo).matches()\r\n && this.pattern.matcher(sucInfo).matches()\r\n && this.pattern.matcher(typeInfo).matches()) {\r\n // 日期id\r\n String dateIdStr = TimestampFormatUtil.formatTimestamp(\r\n timeStampStr).get(ConstantEnum.DATE_ID);\r\n valueSB.append(categoryInfo);\r\n valueSB.append(\"\\t\");\r\n // versionId\r\n long versionId = -0l;\r\n versionId = IPFormatUtil.ip2long(versionInfo);\r\n valueSB.append(versionId);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(macInfo);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(sucInfo);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(typeInfo);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(stratery);\r\n context.write(new Text(dateIdStr),\r\n new Text(valueSB.toString()));\r\n }\r\n\r\n }\r\n }", "@Override\n protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int runCount = context.getConfiguration().getInt(\"runCount\", 1);\n\n String page = key.toString();\n\n Node node = null;\n if (runCount == 1) {\n node = Node.formatNode(\"1.0\" , value.toString());\n } else {\n node = Node.formatNode(value.toString());\n }\n context.write(new Text(page), new Text(node.toString()));\n if(node.constainsAdjances()){\n double outValue = node.getPageRank() / node.getAdjacentNodeNames().length;\n\n for (String adjacentNodeName : node.getAdjacentNodeNames()) {\n// System.out.println(\"--------------------\"+ adjacentNodeName +\"------\" +outValue);\n\n context.write(new Text(adjacentNodeName),new Text(outValue + \"\"));\n }\n }\n }", "void insert(String mappedNumber, String word);", "protected void processLine(String line){}", "public void map(String _, Document value,\n OutputCollector<String, Integer> output) {\n }", "@Override\n\t\tpublic void map(Key key, Value value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tSortedMap<Key,Value> entries = WholeRowIterator.decodeRow(key, value);\n\t\t\t\n\t\t\t// If we have counts for the given ngram for both time periods, we will have 2 Entrys that look like\n\t\t\t// RowId: ngram\n\t\t\t// CQ: Date Granularity (ex. DAY, HOUR)\n\t\t\t// CF: Date Value (ex. 20120102, 2012010221)\n\t\t\t// Value: count\n\t\t\t// We know the entries are sorted by Key, so the first entry will have the earlier date value \n\t\t\tif ( entries.size() == 2 ) {\n\t\t\t\t\n\t\t\t\t// Read the Entrys and pull out the two counts\n\t\t\t\tlong [] counts = new long[2];\n\t\t\t\tint index = 0;\n\t\t\t\tfor ( Entry<Key,Value> entry : entries.entrySet() ) {\n\t\t\t\t\tcounts[index++] = LongCombiner.VAR_LEN_ENCODER.decode( entry.getValue().get());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Generate a trending score for this ngram\n\t\t\t\tint score = calculateTrendingScore( counts, context );\n\t\t\t\t\n\t\t\t\t// If we have a valid score, write out the score to Accumulo\n\t\t\t\tif ( score > 0 ) {\n\t\t\t\t\t\n\t\t\t\t\tint sortableScore = Integer.MAX_VALUE - score;\n\t\t\t\t\t\n\t\t\t\t\t// RowId is the time we are calculating trends for, i.e. DAY:20120102\n\t\t\t\t\t// CF is Integer.MAX_VALUE - trending score so that we sort the highest scores first\n\t\t\t\t\t// CQ is the ngram\n\t\t\t\t\t// Value is empty\n\t\t\t\t\tString rowId = context.getConfiguration().get(\"rowId\");\n\t\t\t\t\tMutation mutation = new Mutation( rowId );\n\t\t\t\t\tmutation.put( new Text( String.valueOf(sortableScore)), entries.firstKey().getRow(), emptyValue );\n\t\t\t\t\tcontext.write( null, mutation );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void addToMap(String line, HashMap<String, String> map) {\n if (!line.contains(\" \")) {\n return;\n }\n String[] parts = line.split(\" \");\n map.put(parts[0].toLowerCase(), parts[1]);\n }", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "@Override\n\tprotected void map(LongWritable key, LogWritable value, Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t \n\t\t context.write(value, mapValue);\n\t\t\n\t}", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) throws Exception {\n if(jsonParser == null) {\n jsonParser = new ObjectMapper();\n }\n JsonNode jsonNode = jsonParser.readValue(value, JsonNode.class);\n boolean isEnglish = jsonNode.has(\"user\") && jsonNode.get(\"user\").has(\"lang\") && jsonNode.get(\"user\").get(\"lang\").getTextValue().equals(\"en\");\n boolean hasText = jsonNode.has(\"text\");\n if (isEnglish && hasText) {\n // message of tweet\n StringTokenizer tokenizer = new StringTokenizer(jsonNode.get(\"text\").getTextValue());\n\n // split the message\n while (tokenizer.hasMoreTokens()) {\n String result = tokenizer.nextToken().replaceAll(\"\\\\s*\", \"\").toLowerCase();\n\n if (!result.equals(\"\")) {\n out.collect(new Tuple2<>(result, 1));\n }\n }\n }\n }", "@Override\n public void map(Object key, Text value, Context context)\n throws IOException, InterruptedException {\n Map<String, String> parsed = MRDPUtils.transformXmlToMap(value.toString());\n\n String postId = parsed.get(\"PostId\");\n if (postId == null) {\n return;\n }\n\n // The foreign join key is the user ID\n outkey.set(postId);\n\n // Flag this record for the reducer and then output\n outvalue.set(\"C\" + value.toString());\n context.write(outkey, outvalue);\n }", "@Override\r\n public Tuple2<Integer, Double> map(String value) throws Exception {\n return Tuple2.of(1, Double.parseDouble(value));\r\n }", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String line = value.toString();\r\n\r\n double minPmi = Double.parseDouble(context.getConfiguration().get(\"minPmi\", \"-1\"));\r\n double relMinPmi = Double.parseDouble(context.getConfiguration().get(\"relMinPmi\",\r\n \"-1\"));\r\n\r\n String[] split = line.split(\"\\\\s+\");\r\n double npmi = Double.parseDouble(split[3]);\r\n double relnpmi = Double.parseDouble(split[4]);\r\n\r\n if (isCollocation(npmi, relnpmi, minPmi, relMinPmi)) {\r\n // key: [decade] [npmi]; value: [w1] [w2]\r\n context.write(new Text(split[0] + \" \" + split[3]), new Text(split[1] + \" \" + split[2]));\r\n }\r\n }", "public abstract void map(String key, String value) throws Exception;", "public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n String[] data = value.toString().split(\";\");\n\n // The gender is in the second part of the data set\n String gender = data[1];\n\n // Let's determine if the gender corresponds to a male and/or a female\n boolean isMale = gender.equals(\"m\") || gender.equals(\"m,f\") || gender.equals(\"f,m\");\n boolean isFemale = gender.equals(\"f\") || gender.equals(\"m,f\") || gender.equals(\"f,m\");\n\n // Let's write on both keys (male and female) the \"boolean-to-IntWritable conversion\" of the booleans\n context.write(new Text(\"male\"), isMale ? one : zero);\n context.write(new Text(\"female\"), isFemale ? one : zero);\n }", "public void parseWord(String line){\r\n String[] tokens = line.split(\"\\\\t|/|<|>|\\\\?|=%3C|%3E|=%3C|&=%3C|&|=| \");\r\n// for(String word: tokens){\r\n//\r\n// keys.add(word);\r\n// }\r\n int n = tokens.length-2;//to ignore the the word GET from the string.\r\n if(n>0){\r\n for(int i=1;i<n;i++){\r\n if(!tokens[i].equals(\"\")){\r\n this.keys.add(tokens[i]);\r\n }\r\n\r\n }\r\n }\r\n\r\n }", "public void transform() {\n String delimiter = \" \";\n\n System.out.println(\"Using pathname \" + this.inputPath_ + \"\\n\");\n\n //create string to hold the entire input file\n String input = \"\";\n try { //use a scanner to get the contents of the file into a string\n Scanner inputScanner = new Scanner(new File(this.inputPath_));\n //use a delimiter that only matches the end of the file; this will give us the whole file\n input = inputScanner.useDelimiter(\"\\\\Z\").next();\n inputScanner.close();\n } catch (Exception e) {\n System.err.println(\"Couldn't read \" + this.inputPath_);\n System.exit(-100);\n }\n //if we are here, then there wasn't an exception\n\n //make sure not empty file\n if(input.isEmpty()) {\n System.err.print(\"Error: Empty file.\");\n System.exit(-200);\n }\n\n //create an array for the line strings\n ArrayList<String> inputLines = new ArrayList<>();\n\n //next, separate the input string into multiple strings, one for each line\n //delimiter string regex - only match line terminators\n String lineDelim = \"(\\n|\\r|\\r\\n|\\u0085|\\u2028|\\u2029)\";\n StringTokenizer inputLineTokenizer = new StringTokenizer(input, lineDelim); //create a string tokenizer\n\n //count number of lines\n int numberOfLines = inputLineTokenizer.countTokens();\n\n //add the lines to the array\n for(int i = 0; i < numberOfLines; i++) inputLines.add(inputLineTokenizer.nextToken(lineDelim));\n\n\n //split line into words\n\n //create arraylist of strings\n ArrayList<ArrayList<String>> lines = new ArrayList<>();\n\n for(int i = 0; i < inputLines.size(); i++) {\n //printout(\"Read line: \" + inputLines.get(i) + \"\\n\");\n\n //create a tokenizer and count number of tokens\n StringTokenizer tokenizer = new StringTokenizer(inputLines.get(i), delimiter);\n int numWords = tokenizer.countTokens();\n\n //create array of strings\n ArrayList<String> currentLine = new ArrayList<>();\n\n for(int j = 0; j < numWords; j++) { //add a word if it is valid\n String currentWord = cleanUpText(tokenizer.nextToken(delimiter));\n if(!currentWord.isEmpty()) currentLine.add(currentWord);\n }\n\n //add the current line to the list of typed lines if it had any valid words\n if(currentLine.size() > 0) lines.add(currentLine);\n }\n\n if(lines.size() <= 0) {\n System.err.println(\"ERROR! File did not contain a line with any valid words. Please try again with a different inpput file.\");\n System.exit(-444);\n } else {\n //send lines from array to pipe\n for(int i = 0; i < lines.size(); i++) {\n this.output_.put(lines.get(i));\n }\n\n\n\n //send a null terminator?\n //this causes the other filter to give an exception\n //the exception is caught by the other filter, which breaks the loop it uses to get new lines\n this.output_.put(null);\n //printout(\"Done with file input.\\n\");\n //stop the filter\n this.stop();\n }\n\n\n }", "public GetParse(String line){\r\n\r\n Inline = line;\r\n this.parseWord(line);\r\n }" ]
[ "0.7726768", "0.7643679", "0.7199151", "0.71432155", "0.7105296", "0.70343584", "0.6768755", "0.6740228", "0.6632563", "0.65891004", "0.64874", "0.6460493", "0.6415616", "0.6401162", "0.63949597", "0.63467157", "0.6344561", "0.63422644", "0.6318773", "0.63155246", "0.6313753", "0.6300643", "0.6300144", "0.6189076", "0.6182373", "0.61333585", "0.61306715", "0.612924", "0.61285764", "0.60740495", "0.6067759", "0.60563415", "0.59922373", "0.5971679", "0.59479964", "0.59318876", "0.59317833", "0.5931373", "0.5913647", "0.5913374", "0.59075564", "0.59049106", "0.5885975", "0.58769333", "0.586118", "0.58562326", "0.5851468", "0.5813949", "0.5794635", "0.5786608", "0.5755213", "0.5753884", "0.5748123", "0.57424575", "0.57370883", "0.5734544", "0.5734358", "0.5717291", "0.5714505", "0.5705911", "0.5692138", "0.5673407", "0.5667706", "0.5666675", "0.56484854", "0.5629048", "0.56261003", "0.56219697", "0.5583484", "0.55801314", "0.55777395", "0.557731", "0.5550959", "0.552965", "0.5513895", "0.5483697", "0.54526234", "0.5447676", "0.54295033", "0.5419562", "0.54185605", "0.54122746", "0.54082894", "0.5396803", "0.5387733", "0.5369944", "0.53599554", "0.5358697", "0.5338561", "0.53349894", "0.5334504", "0.5295851", "0.5274985", "0.52698183", "0.5264532", "0.5255574", "0.5231737", "0.5224497", "0.5217725", "0.5216162" ]
0.7388264
2
Creates SAM Enviornment and maps services from Service Pools that environment
public abstract SAMEnvironmentDetails createSAMEnvironment(String envName, String description, List<ServiceEnvironmentMapping> services);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Fog_Services createFog_Services();", "public static ServiceProvider createServiceProvider() {\n \t//return new ActiveMQProvider();\n \treturn new RSPServiceProvider();\n }", "ProgramActuatorService createProgramActuatorService();", "public Collection<Service> createServices();", "Environment createEnvironment();", "Environment createEnvironment();", "public void create(Environment environment);", "SourceBuilder createService();", "Swarm createSwarm();", "IServiceContext createService(String childContextName, Class<?>... serviceModules);", "IServiceContext createService(Class<?>... serviceModules);", "private void setupEnvironment() {\n // Create mocks for configurations\n bgpConfig = createMock(BgpConfig.class);\n participantsConfig = createMock(SdxParticipantsConfig.class);\n\n // Create mocks for services\n coreService = new TestCoreService();\n configService = new TestNetworkConfigService();\n registry = new NetworkConfigRegistryAdapter();\n interfaceService = createMock(InterfaceService.class);\n interfaceService.addListener(anyObject(InterfaceListener.class));\n expectLastCall().anyTimes();\n intentSynchronizer = createMock(IntentSynchronizationService.class);\n }", "public abstract void setupSeamEnvironment();", "public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}", "private void configureServices(Environment environment){\n DaoCountry country = new DaoCountry(hibernateBundle.getSessionFactory());\n DaoAddress address = new DaoAddress(hibernateBundle.getSessionFactory());\n\n environment.jersey().register(new ServiceCountry(country));\n environment.jersey().register(new ServiceAddress(address));\n }", "SpacesInvaders createSpacesInvaders();", "@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 }", "@Override\n public Collection<Object> createComponents(\n Client client,\n ClusterService clusterService,\n ThreadPool threadPool,\n ResourceWatcherService resourceWatcherService,\n ScriptService scriptService,\n NamedXContentRegistry xContentRegistry,\n Environment environment,\n NodeEnvironment nodeEnvironment,\n NamedWriteableRegistry namedWriteableRegistry,\n IndexNameExpressionResolver indexNameExpressionResolver) {\n service = new StoredSynonymsService(client, clusterService, \".stored_synonyms\");\n\n List<Object> components = new ArrayList<>();\n components.add(service);\n\n return components;\n }", "public void processVCAPServices() {\n\t\tif (!BluemixContextManager.getInstance().isRunningOnBluemix()) {\n\t\t\treturn;\n\t\t}\n\n\t\tJsonJavaObject sysEnv = getVcapServices();\n\t\tif (sysEnv == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (sysEnv.containsKey(serviceName)) {\n\t\t\tJsonJavaArray services = sysEnv.getAsArray(serviceName);\n\t\t\tJsonJavaObject service = (JsonJavaObject) services.get(0);\n\t\t\tJsonJavaObject credentials = (JsonJavaObject) service\n\t\t\t\t\t.get(\"credentials\");\n\t\t\tsetBaseUrl((String) credentials.get(\"url\"));\n\t\t\tsetUsername((String) credentials.get(\"username\"));\n\t\t\tsetPassword((String) credentials.get(\"password\"));\n\n\t\t}\n\t}", "private static Map<String, Environment> getEnvironments() {\n Map<String, Environment> environmentMap = new HashMap<String, Environment>();\n Environment prodEnv = new Environment();\n prodEnv.setName(PROD_1);\n prodEnv.setPassword(PROD_1_PASSWORD);\n\n Environment sandBoxEnv = new Environment();\n sandBoxEnv.setName(SND_1);\n sandBoxEnv.setPassword(SND_1_PASSWORD);\n\n environmentMap.put(PROD_1, prodEnv);\n environmentMap.put(SND_1, sandBoxEnv);\n return environmentMap;\n }", "ASPMFactory getASPMFactory();", "InboundServicesType createInboundServicesType();", "public ServiceAccessBean constructServices() throws Exception {\n\n\tif (services == null) {\t\n\t\t// Construct services bean\n\t\tif (getServicecode() != null) {\n\t\t\tservices = new ServiceAccessBean();\n\t\t\tservices.setInitKey_division(getServicecode().intValue());\n\t\t\tservices.refreshCopyHelper();\n\t\t}\n\t}\n\treturn services;\n}", "public abstract ServiceLocator create(String name);", "ShipmentGatewayUsps createShipmentGatewayUsps();", "@ProviderType\npublic interface ServiceUserMapped {\n\n\n /**\n * The name of the osgi property holding the sub service name.\n */\n String SUBSERVICENAME = \"subServiceName\";\n\n}", "EnvironmentmmFactory getEnvironmentmmFactory();", "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 }", "public interface SOSFactory {\n SOS getSOS();\n}", "public interface AlarmDataEnvService extends Service<AlarmDataEnv> {\n\n}", "CdapService createCdapService();", "public void testDynamicServices() throws Exception\n {\n int freq = 65432198;\n int prognum = 10;\n int modformat = 16;\n ServiceHandle handle = sidb.getServiceByProgramNumber(freq, modformat, prognum);\n ServiceExt service = sidb.createService(handle);\n OcapLocator loc = (OcapLocator) service.getLocator();\n assertEquals(\"Frequency does not match\", freq, loc.getFrequency());\n assertEquals(\"Program Number does not match\", prognum, loc.getProgramNumber());\n assertEquals(\"Modulation Format does not match\", modformat, loc.getModulationFormat());\n assertEquals(\"SourceID is incorrect\", -1, loc.getSourceID());\n dumpService(service);\n log(\"*********************************************************\");\n\n // Now we're going to try to get an existing service using it's\n // freq/prog/mod.\n ServiceList sl = serviceSetup();\n if (sl.size() > 0)\n {\n // Just grab the first one off the list\n service = (ServiceExt) sl.getService(0);\n tune(service);\n ServiceDetailsHandle[] handles = null;\n try\n {\n handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n }\n catch (SINotAvailableYetException ex)\n {\n synchronized (sial)\n {\n // Wait for the SIAcquiredEvent\n sial.wait();\n // Try again.. if it fails, it will jump out to the outer\n // catch\n handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n }\n }\n assertNotNull(\"No ServiceDetails available\", handles);\n assertTrue(\"Handles array has no data\", handles.length > 0);\n ServiceDetailsExt details = sidb.createServiceDetails(handles[0]);\n assertEquals(\"ServiceDetails' Service does not match expected value\", service, details.getService());\n TransportStreamExt ts = (TransportStreamExt) details.getTransportStream();\n freq = ts.getFrequency();\n prognum = details.getProgramNumber();\n modformat = ts.getModulationFormat();\n handle = sidb.getServiceByProgramNumber(freq, prognum, modformat);\n service = sidb.createService(handle);\n loc = (OcapLocator) service.getLocator();\n assertEquals(\"Frequency does not match\", freq, loc.getFrequency());\n assertEquals(\"Program Number does not match\", prognum, loc.getProgramNumber());\n assertEquals(\"Modulation Format does not match\", modformat, loc.getModulationFormat());\n assertEquals(\"SourceID is incorrect\", -1, loc.getSourceID());\n dumpService(service);\n }\n else\n {\n log(\"No Services available to test for dynamic service creation\");\n }\n log(\"*********************************************************\");\n\n // Try to get a service using an outrageous frequency\n freq = 1;\n prognum = 2;\n modformat = 8;\n try\n {\n sidb.getServiceByProgramNumber(freq, prognum, modformat);\n fail(\"Expected SIRequestInvalidException using 1 as frequency\");\n }\n catch (SIDatabaseException e)\n {\n // Expected\n }\n }", "@Override\n \t\tprotected void setup(Context context){\n \t\t\tint port = 5701 + context.getTaskAttemptID().getId()%numInstances;\n \t\t\t//System.out.println(\"Connecting to port \" + port);\n \t\t\tClientConfig clientConfig = new ClientConfig();\n \t\t\tclientConfig.addAddress(\"127.0.0.1:\" + port);\n \t\t\tthis.client = HazelcastClient.newHazelcastClient(clientConfig);\n \t\t\tthis.map = client.getMap(\"kmer\");\n \t\t}", "@Transactional\n public abstract OnmsServiceType createServiceTypeIfNecessary(String serviceName);", "SqlElasticPoolOperations.DefinitionStages.WithCreate withNewDatabase(String databaseName);", "public RiftsawServiceLocator() {\n }", "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }", "public void createManagedComputeService(String provider, boolean eventSupport) {\n List<String> options = new LinkedList<String>();\n if (regions != null && !regions.isEmpty()) {\n options.add(\"jclouds.regions=\" + regions);\n }\n String cmd = \"jclouds:compute-service-create --provider \" + provider + \" --identity \" + identity + \" --credential \" + credential;\n for (String option : options) {\n cmd += \" --add-option \" + option;\n }\n executeCommand(cmd);\n }", "public interface EnemyShipPartsFactory {\n ESWeapon addESGun();\n ESEngine addESEngine();\n}", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "SqlElasticPoolOperations.DefinitionStages.WithEdition define(String elasticPoolName);", "public Set getAssignableServices() throws SMSException {\n // Get all service names, and remove the assigned services\n // Set containing service names that has organization schema\n Set orgSchemaServiceNames = new HashSet();\n try {\n for (Iterator names = getServiceNames(token).iterator(); names\n .hasNext();) {\n String serviceName = (String) names.next();\n ServiceSchemaManagerImpl ssmi = ServiceSchemaManagerImpl\n .getInstance(token, serviceName, \n ServiceManager.getVersion(serviceName));\n if (ssmi.getSchema(SchemaType.ORGANIZATION) != null) {\n // Need to check if the user has permission\n // to add/assign the service\n StringBuffer d = new StringBuffer(100);\n // Need to construct\n // \"ou=default,ou=organizationconfig,ou=1.0,ou=\"\n d.append(SMSEntry.PLACEHOLDER_RDN).append(SMSEntry.EQUALS)\n .append(SMSUtils.DEFAULT).append(SMSEntry.COMMA)\n .append(CreateServiceConfig.ORG_CONFIG_NODE)\n .append(SMSEntry.PLACEHOLDER_RDN).append(\n SMSEntry.EQUALS).append(\"1.0\").append(\n SMSEntry.COMMA).append(\n SMSEntry.PLACEHOLDER_RDN).append(\n SMSEntry.EQUALS);\n // Append service name, and org name\n d.append(serviceName);\n if (!orgDN.equalsIgnoreCase(DNMapper.serviceDN)) {\n d.append(SMSEntry.COMMA).append(SMSEntry.SERVICES_NODE);\n }\n d.append(SMSEntry.COMMA).append(orgDN);\n try {\n // The function will throw exception if\n // user does not have permissions\n SMSEntry.getDelegationPermission(token, d.toString(),\n SMSEntry.modifyActionSet);\n orgSchemaServiceNames.add(serviceName);\n } catch (SMSException smse) {\n if (smse.getExceptionCode() != \n SMSException.STATUS_NO_PERMISSION) \n {\n throw (smse);\n }\n }\n }\n }\n // Need to remove mandatory services\n // %%% TODO. Need to have SMS Service with this information\n // orgSchemaServiceNames.removeAll(getMandatoryServices());\n } catch (SSOException ssoe) {\n SMSEntry.debug.error(\"OrganizationConfigManager.\"\n + \"getAssignableServices(): SSOException\", ssoe);\n throw (new SMSException(SMSEntry.bundle\n .getString(\"sms-INVALID_SSO_TOKEN\"),\n \"sms-INVALID_SSO_TOKEN\"));\n }\n // Remove assigned services\n HashSet answer = new HashSet(orgSchemaServiceNames);\n answer.removeAll(getAssignedServices());\n return (answer);\n }", "ServiceEndpointPolicy.DefinitionStages.Blank define(String name);", "protected abstract String getATiempoServiceName();", "@Override\n\tprotected void initializeRegionAndEndpoint(ProcessContext context) {\n\t}", "@BeforeAll\n\tpublic static void createServices() throws Exception {\n\t\tinterfaceService = new InterfaceService(); // Just for testing! This comes from OSGi really.\n\t\tUITestServicesSetup.createTestServices(false);\n\t}", "protected void activate(ComponentContext context) {\n\n try {\n OutputTransportAdaptorFactory wso2EventTransportAdaptorFactory = new WSO2EventTransportAdaptorFactory();\n context.getBundleContext().registerService(OutputTransportAdaptorFactory.class.getName(), wso2EventTransportAdaptorFactory, null);\n log.info(\"Successfully deployed the output WSO2Event transport adaptor service\");\n } catch (RuntimeException e) {\n log.error(\"Can not create the output WSO2Event transport adaptor service \", e);\n }\n }", "CdapServiceInstance createCdapServiceInstance();", "boolean initializeOrbEnvirement(String args[]){\n\t\t// create and initialize the ORB\n\t\tORB orb = ORB.init(args, null);\n\n\t\ttry {\n\t\t\t// get the root naming context\n\t\t\torg.omg.CORBA.Object objRef;\n\t\t\tobjRef = orb.resolve_initial_references(\"NameService\");\n\t\t\t// Use NamingContextExt instead of NamingContext. This is part of the Interoperable naming Service. \n\t\t\tnamingContextRef = NamingContextExtHelper.narrow(objRef);\n\t\t\treturn true;\n\t\t} catch (InvalidName e) {\n\t\t\tSystem.out.println(\"Failed to resolve NameService!\");\n\t\t\t//e.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "private void startSkeletons() {\n if (this.skeletons_started) return;\n\n this.add_registration_api();\n this.registration_skeleton.start();\n this.add_service_api();\n this.service_skeleton.start();\n\n this.skeletons_started = true;\n }", "private void bootstrapSystem(final Injector injector) {\n @SuppressWarnings(\"unused\")\n final ExpressiveObjectsSystem system = injector.getInstance(ExpressiveObjectsSystem.class);\n }", "LinkedService.DefinitionStages.Blank define(String name);", "Service newService();", "public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }", "private Map<String, Object> getSubServiceMap() {\n\t\tlog.info(\"*****Inside getSubservice method **\");\n\t\tMap<String, Object> serviceMap = null;\n\n\t\ttry {\n\n\t\t\tserviceMap = new HashMap<String, Object>();\n\t\t\tserviceMap.put(ResourceResolverFactory.SUBSERVICE, \"sam\");\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tStringWriter errors = new StringWriter();\n\t\t\te.printStackTrace(new PrintWriter(errors));\n\t\t\tlog.info(\"errors ***\" + errors.toString());\n\t\t}\n\t\tlog.info(\"*****getSubservice Method End**\");\n\t\t\n\t\treturn serviceMap;\n\n\t}", "SqlElasticPoolOperations.DefinitionStages.WithCreate withExistingDatabase(String databaseName);", "protected OMHAService createOMService() throws IOException,\n AuthenticationException {\n if (omServiceId == null) {\n OzoneManager om = createOM();\n om.start();\n return new OMHAService(singletonList(om), null, null);\n }\n\n List<OzoneManager> omList = Lists.newArrayList();\n\n int retryCount = 0;\n\n while (true) {\n try {\n initOMHAConfig();\n\n for (int i = 1; i <= numOfOMs; i++) {\n // Set nodeId\n String nodeId = OM_NODE_ID_PREFIX + i;\n OzoneConfiguration config = new OzoneConfiguration(conf);\n config.set(OMConfigKeys.OZONE_OM_NODE_ID_KEY, nodeId);\n // Set the OM http(s) address to null so that the cluster picks\n // up the address set with service ID and node ID in initHAConfig\n config.set(OMConfigKeys.OZONE_OM_HTTP_ADDRESS_KEY, \"\");\n config.set(OMConfigKeys.OZONE_OM_HTTPS_ADDRESS_KEY, \"\");\n\n // Set metadata/DB dir base path\n String metaDirPath = path + \"/\" + nodeId;\n config.set(OZONE_METADATA_DIRS, metaDirPath);\n\n // Set non standard layout version if needed.\n omLayoutVersion.ifPresent(integer ->\n config.set(OZONE_OM_INIT_DEFAULT_LAYOUT_VERSION,\n String.valueOf(integer)));\n\n OzoneManager.omInit(config);\n OzoneManager om = OzoneManager.createOm(config);\n if (certClient != null) {\n om.setCertClient(certClient);\n }\n omList.add(om);\n\n if (i <= numOfActiveOMs) {\n om.start();\n activeOMs.add(om);\n LOG.info(\"Started OzoneManager {} RPC server at {}\", nodeId,\n om.getOmRpcServerAddr());\n } else {\n inactiveOMs.add(om);\n LOG.info(\"Initialized OzoneManager at {}. This OM is currently \"\n + \"inactive (not running).\", om.getOmRpcServerAddr());\n }\n }\n\n break;\n } catch (BindException e) {\n for (OzoneManager om : omList) {\n om.stop();\n om.join();\n LOG.info(\"Stopping OzoneManager server at {}\",\n om.getOmRpcServerAddr());\n }\n omList.clear();\n ++retryCount;\n LOG.info(\"MiniOzoneHACluster port conflicts, retried {} times\",\n retryCount, e);\n }\n }\n return new OMHAService(activeOMs, inactiveOMs, omServiceId);\n }", "abstract public Transports createTransports();", "SpawnController createSpawnController();", "SqlElasticPoolOperations.DefinitionStages.WithCreate withExistingDatabase(SqlDatabase database);", "void deploy(String template, Map<String, String> parameters, String group, String regionStr) throws IOException {\n String deploymentName = \"SunstoneDeployment-\" + UUID.randomUUID().toString().substring(0, 5);\n Region region = Region.fromName(regionStr);\n if (region == null) {\n throw new IllegalArgumentException(\"Unknown region \" + regionStr);\n }\n\n if (!armManager.resourceGroups().contain(group)) {\n armManager.resourceGroups().define(group)\n .withRegion(region)\n .create();\n } else {\n LOGGER.warn(\"Azure resource group '{}' already exists! It will be reused and deleted when tests are finished.\", group);\n }\n\n armManager.deployments().define(deploymentName)\n .withExistingResourceGroup(group)\n .withTemplate(template)\n .withParameters(parametersFromMap(template, parameters))\n .withMode(DeploymentMode.INCREMENTAL)\n .create();\n LOGGER.debug(\"Azure deployment from template {} in \\\"{}\\\" group is ready\", deploymentName, group);\n }", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "public void create()\n throws Exception\n {\n super.start();\n\n BeanMetaData md = getContainer().getBeanMetaData();\n ejbName = md.getEjbName();\n\n // Should we log call details\n callLogging = md.getContainerConfiguration().getCallLogging();\n }", "ASAFactory getASAFactory();", "public IGamePadAIDL create() {\n if (HwGameAssistGamePad.mService == null) {\n HwGameAssistGamePad.bindService();\n }\n return HwGameAssistGamePad.mService;\n }", "public interface SpoutFactory {\n public IRichSpout create(Namespace namespace, Config conf);\n}", "protected abstract ServiceRegistry getNewServiceRegistry();", "interface WithStandardEdition extends SqlElasticPoolOperations.DefinitionStages.WithCreate {\n /**\n * Sets the total shared eDTU for the SQL Azure Database Elastic Pool.\n *\n * @param eDTU total shared eDTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withReservedDtu(SqlElasticPoolStandardEDTUs eDTU);\n\n /**\n * Sets the maximum number of eDTU a database in the pool can consume.\n *\n * @param eDTU maximum eDTU a database in the pool can consume\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withDatabaseDtuMax(SqlElasticPoolStandardMaxEDTUs eDTU);\n\n /**\n * Sets the minimum number of eDTU for each database in the pool are regardless of its activity.\n *\n * @param eDTU minimum eDTU for all SQL Azure databases\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withDatabaseDtuMin(SqlElasticPoolStandardMinEDTUs eDTU);\n\n /**\n * Sets the storage capacity for the SQL Azure Database Elastic Pool.\n *\n * @param storageCapacity storage capacity for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withStorageCapacity(SqlElasticPoolStandardStorage storageCapacity);\n }", "private void initializeNamingContextBindings() throws NamingException {\r\n \t\t// get the reference to the SLEE container from JNDI\r\n \t\tSleeContainer container = SleeContainer.lookupFromJndi();\r\n \t\t// get the entities name\r\n \t\tString entityName = bootstrapContext.getEntityName();\r\n \r\n \t\tResourceAdaptorEntity resourceAdaptorEntity = ((ResourceAdaptorEntity) container\r\n \t\t\t\t.getResourceAdaptorEnitity(entityName));\r\n \t\tResourceAdaptorTypeID raTypeId = resourceAdaptorEntity\r\n \t\t\t\t.getInstalledResourceAdaptor().getRaType()\r\n \t\t\t\t.getResourceAdaptorTypeID();\r\n \r\n \t\t// Bind ACI Factory in JNDI\r\n \t\tacif = new HttpServletRaActivityContextInterfaceFactoryImpl(\r\n \t\t\t\tresourceAdaptorEntity.getServiceContainer(), entityName, this);\r\n \t\t// set the ActivityContextInterfaceFactory\r\n \t\tresourceAdaptorEntity.getServiceContainer()\r\n \t\t\t\t.getActivityContextInterfaceFactories().put(raTypeId, acif);\r\n \r\n \t\ttry {\r\n \t\t\tif (this.acif != null) {\r\n \t\t\t\t// parse the string =\r\n \t\t\t\t// java:slee/resources/http-servlet-ra/http-servlet-ra-acif\r\n \t\t\t\tString jndiName = ((ResourceAdaptorActivityContextInterfaceFactory) acif)\r\n \t\t\t\t\t\t.getJndiName();\r\n \t\t\t\tint begind = jndiName.indexOf(':');\r\n \t\t\t\tint toind = jndiName.lastIndexOf('/');\r\n \t\t\t\tString prefix = jndiName.substring(begind + 1, toind);\r\n \t\t\t\tString name = jndiName.substring(toind + 1);\r\n \t\t\t\tlogger.debug(\"========================== jndiName prefix =\"\r\n \t\t\t\t\t\t+ prefix + \"; jndiName = \" + name + \" ; ACIF: \" + acif\r\n \t\t\t\t\t\t+ \"=========================\");\r\n \t\t\t\tSleeContainer.registerWithJndi(prefix, name, this.acif);\r\n \t\t\t}\r\n \t\t} catch (IndexOutOfBoundsException e) {\r\n \t\t\t// not register with JNDI\r\n \t\t\tlogger.warn(e.getMessage(), e);\r\n \t\t}\r\n \r\n \t\t// Bind HttpServletResourceEntryPoint in JNDI. It will be the bridge\r\n \t\t// between\r\n \t\t// a designated HttpServlet and the RA\r\n \t\tresourceEntryPoint = new HttpServletResourceEntryPoint(entityName, this);\r\n \r\n \t\ttry {\r\n \t\t\tif (this.resourceEntryPoint != null) {\r\n \t\t\t\t// parse the string =\r\n \t\t\t\t// java:slee/resources/http-servlet-ra/http-servlet-resource-entry-point\r\n \t\t\t\tString jndiName = resourceEntryPoint.getJndiName();\r\n \t\t\t\tint begind = jndiName.indexOf(':');\r\n \t\t\t\tint toind = jndiName.lastIndexOf('/');\r\n \t\t\t\tString prefix = jndiName.substring(begind + 1, toind);\r\n \t\t\t\tString name = jndiName.substring(toind + 1);\r\n \t\t\t\tlogger.debug(\"========================== jndiName prefix =\"\r\n \t\t\t\t\t\t+ prefix + \"; jndiName = \" + name\r\n \t\t\t\t\t\t+ \" ; Resource Entry Point: \" + resourceEntryPoint\r\n \t\t\t\t\t\t+ \"=========================\");\r\n \t\t\t\tSleeContainer.registerWithJndi(prefix, name,\r\n \t\t\t\t\t\tthis.resourceEntryPoint);\r\n \t\t\t}\r\n \t\t} catch (IndexOutOfBoundsException e) {\r\n \t\t\t// not register with JNDI\r\n \t\t\tlogger.warn(e.getMessage(), e);\r\n \t\t}\r\n \r\n \t}", "private void createTopology() {\n deviceService = createMock(DeviceService.class);\n linkService = createMock(LinkService.class);\n\n deviceService.addListener(anyObject(DeviceListener.class));\n linkService.addListener(anyObject(LinkListener.class));\n\n createDevices(NUM_DEVICES, NUM_PORTS_PER_DEVICE);\n createLinks(NUM_DEVICES);\n addIntfConfig();\n popluateEdgePortService();\n }", "Service_Resource createService_Resource();", "public static void main(String[] args) {\n Services.registerDefaultProvider(DEFAULT_PROVIDER);\n Services.registerProvider(\"comp\", COMP_PROVIDER);\n Services.registerProvider(\"armed\", ARMED_PROVIDER);\n\n // Clients would execute these lines\n Service service1 = Services.newInstance();\n Service service2 = Services.newInstance(\"comp\");\n Service service3 = Services.newInstance(\"armed\");\n System.out.printf(\"%s, %s, %s%n\", service1, service2, service3);\n }", "public Map createBuffer() {\n // Get the available processors, processors==threads is probably best?\n Runtime runtime = Runtime.getRuntime();\n int nProcessors = runtime.availableProcessors();\n int nThreads = 1; // nProcessors/2;\n compute();\n return serviceArea;\n }", "@Override\n\tpublic CreateServiceInstanceBindingResponse createServiceInstanceBinding(\n\t\t\tCreateServiceInstanceBindingRequest request) {\n\t\tString appId = request.getBindingId();\n\t\tString id = request.getServiceInstanceId();\n\t\tString apikey = userManager.getAPIKey(id, appId);\n\t\tMap<String, Object> credentials = Collections.singletonMap(\"APIKEY\", (Object) apikey);\n\n\t\treturn new CreateServiceInstanceBindingResponse(credentials);\n\t}", "@Activate\n protected void start(BundleContext bundleContext) throws Exception {\n log.info(\"Service Component is activated\");\n\n // Create Stream Processor Service\n EditorDataHolder.setDebugProcessorService(new DebugProcessorService());\n EditorDataHolder.setSiddhiManager(new SiddhiManager());\n EditorDataHolder.setBundleContext(bundleContext);\n\n serviceRegistration = bundleContext.registerService(EventStreamService.class.getName(),\n new DebuggerEventStreamService(), null);\n }", "FutureSecureMap<KeyType, ValueType> create(String name);", "public static void main(String[] args) throws IOException{\n\t\tString accessToken = \"<YOUR_ACCESS_TOKEN>\";\n\t\t// The IBM Cloud organization & space to query - case sensitive.\n\t\tString org = \"<YOUR_ORG>\"; // Example: [email protected]\n\t\tString space = \"<YOUR_SPACE>\"; // Example: dev \n\n\t\t// Use TLSv1.2.\n\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t// Create the URL.\n\t\tURL orgsURL = new URL(apiEndpoint + \"/organizations/\" + org + \"/spaces/\" + space + \"/serviceinstances\");\n\t\tHttpURLConnection con = (HttpURLConnection) orgsURL.openConnection();\n\t\tcon.setRequestMethod(\"POST\");\n\t\tcon.setRequestProperty(\"Authorization\", \"Bearer \" + accessToken);\n\t\tcon.setRequestProperty(\"Content-Type\",\"application/json\");\n\t\tcon.setDoOutput(true);\n\n\t\t/* CREATE OPTIONS\n\t\t * Type: The plan type to create.\n\t\t * \t\t\t\t\t\t\tEnum: [\"LibertyCollective\", \"LibertyCore\", \"LibertyNDServer\", \"WASBase\", \"WASCell\", \"WASNDServer\"]\n\t\t *\n\t\t * Name: Name your new service icon in IBM Cloud.\n\t\t *\n\t\t * ApplicationServerVMSize: The size of the virtual machine.\n\t\t * \t\t\t\t\t\t\tEnum: [S, M, L, XL, XXL]\n\t\t *\n\t\t * ControlServerVMSize: The size of the Virtual Machine containing the Collective Controller for a LibertyCollective service instance,\n\t\t * \t\t\t\t\t\t\tor the size of the Virtual Machine containing the DMGR for a WASCell service instance. This is required for\n\t\t * \t\t\t\t\t\t \ttypes \"LibertyCollective\" and \"WASCell\", Illegal argument for the other Types.\n\t\t * \t\t\t\t\t\t\tEnum: [S, M, L, XL, XXL]\n\t\t *\n\t\t * NumberOfApplicationVMs: The number (integer) of application server Virtual Machines to create This is required for types \"LibertyCollective\"\n\t\t * \t\t\t\t\t\t\tand \"WASCell\", Illegal argument for the other Types.\n\t\t *\n\t\t * Software_Level: This is optional for types \"WASBase\", \"WASNDServer\", and \"WASCell\". If one is not specified version \"9.0.0\" will be default.\n\t\t * \t\t\t\t\t\t\tEnum: [\"8.5.5\", \"9.0.0\"]\n\t\t */\n\t\tString createOptionsJSON = \"{\\\"Type\\\":\\\"LibertyCore\\\",\\\"Name\\\":\\\"MyFirstAPIServiceInstance\\\",\\\"ApplicationServerVMSize\\\":\\\"S\\\"}\";\n\n\t\t// Add JSON POST data.\n\t\tDataOutputStream wr = new DataOutputStream(con.getOutputStream());\n\t\twr.writeBytes(createOptionsJSON);\n\t\twr.flush();\n\t\twr.close();\n\n\t\tBufferedReader br = null;\n\t\tif (HttpURLConnection.HTTP_OK == con.getResponseCode()) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t}\n\t\telse {\n\t\t\tbr = new BufferedReader(new InputStreamReader(con.getErrorStream()));\n\t\t}\n\n\t\tStringBuffer response = new StringBuffer();\n\t\tString line;\n\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tresponse.append(line);\n\t\t}\n\t\tbr.close();\n\n\t\t// Response from the request.\n\t\tSystem.out.println(response.toString());\n\n\t\t/* Example Response for creating a service instance of type \"LibertyCore\"\n\t\t * {\n\t\t * \t\"Status\":\"Active\",\n\t\t * \t\"ApplicationVMInfo\":\n\t\t * \t{\n\t\t * \t\t\"disk\":12.0,\n\t\t * \t\t\"memory\":2048,\"vcpu\":1\n\t\t * \t},\n\t\t * \t\"ServiceInstance\":\n\t\t * \t{\n\t\t * \t\t\"ServiceInstanceID\":\"8b80bac5-4e78-4a87-bb3e-0e4a8fd6d13a\",\n\t\t * \t\t\"ServiceType\":\"LibertyCore\",\n\t\t * \t\t\"SpaceID\":\"esw7jc13-b12a-47jn-9627-06jdu78d98ed\",\n\t\t * \t\t\"OrganizationID\":\"a23w6701-5324-4af8-b593-e9fdffer36a2\",\n\t\t * \t\t\"Name\":\"MyFirstAPIServiceInstance\"\n\t\t * \t}\n\t\t * }\n\t\t */\n\t}", "public static Kernel start(int port)\n {\n Kernel app = Kernel.newInstance();\n Container container = app.getContainer();\n\n // Forms\n container.add(new ServiceDefinition<>(AnnualReviewType.class));\n container.add(new ServiceDefinition<>(UserType.class));\n\n // Managers\n container.add(new ServiceDefinition<>(AccessDecisionManager.class, YuconzAccessDecisionManager.class));\n container.add(new ServiceDefinition<>(YuconzAuthenticationManager.class));\n container.add(new ServiceDefinition<>(Hibernate.class));\n container.add(new ServiceDefinition<>(LogManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n container.add(new ServiceDefinition<>(RecordManager.class));\n container.add(new ServiceDefinition<>(AnnualReviewManager.class));\n container.add(new ServiceDefinition<>(FormManager.class));\n\n container.add(new ServiceDefinition<>(AuthorisationManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n\n // Resolvers\n container.add(new ServiceDefinition<>(UserResolver.class));\n container.add(new ServiceDefinition<>(RecordResolver.class));\n\n // JTwig Functions\n container.add(new ServiceDefinition<>(CurrentUserFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(CurrentRoleFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormStartRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormEndRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ActivePageFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(IsGrantedFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(RangeFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ServiceFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(LocalDateFunction.class)).addTag(\"jtwig.function\");\n\n // Voters\n container.add(new ServiceDefinition<>(PersonalDetailsVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(RecordVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AnnualReviewVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AuthorisationVoter.class)).addTag(\"authentication.voter\");\n\n container.getServiceDefinition(FrameworkServer.class).setConfigurationReference(new PlainReference<>(new Configuration()\n {\n @Override\n public int getPort()\n {\n return port;\n }\n }));\n\n app.boot();\n\n Router router = container.get(Router.class);\n\n // Records\n router.registerController(AppController.class);\n router.registerController(StaticController.class);\n router.registerController(AuthenticationController.class);\n router.registerController(DashboardController.class);\n router.registerController(EmployeesController.class);\n router.registerController(RecordController.class);\n router.registerController(AnnualReviewController.class);\n\n FormManager formManager = container.get(FormManager.class);\n\n formManager.getRenderers().removeIf(r -> r.getClass().equals(ChoiceRenderer.class));\n formManager.addRenderer(CustomChoiceRenderer.class);\n formManager.addRenderer(DateRenderer.class);\n\n app.start();\n\n return app;\n }", "private static StandardServiceRegistry configureServiceRegistry() {\n return new StandardServiceRegistryBuilder()\n .applySettings(getProperties())\n .build();\n }", "public void createEnvironment() {\n //create a list of collidable objects and a list of sprite objects\n List<Collidable> collidables = new ArrayList<Collidable>();\n List<Sprite> spriteList = new ArrayList<Sprite>();\n //update the game's environment to be the collidables list.\n this.environment = new GameEnvironment(collidables);\n //update the game's sprites collection to be the list of sprites.\n this.sprites = new SpriteCollection(spriteList);\n }", "go.micro.runtime.RuntimeOuterClass.Service getServices(int index);", "go.micro.runtime.RuntimeOuterClass.Service getServices(int index);", "@Override\n public ITestbed create(ITasResolver tasResolver) {\n List<String> emChosenFeatures = Arrays.asList(\"Enterprise Manager\", \"WebView\");\n\n \n // Collector1 role\n EmRole collector1Role =\n new EmRole.LinuxBuilder(COLLECTOR1_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.COLLECTOR)\n .silentInstallChosenFeatures(emChosenFeatures)\n .dbhost(tasResolver.getHostnameById(MOM_ROLE_ID))\n .installDir(TasBuilder.LINUX_SOFTWARE_LOC+\"em_col\")\n .emPort(5005).emWebPort(8085).wvEmPort(8090)\n .nostartEM().nostartWV()\n .build();\n \n // MOM role\n EmRole momRole =\n new EmRole.LinuxBuilder(MOM_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.MANAGER)\n .emCollector(collector1Role)\n .nostartEM().nostartWV().build();\n \n //CDV role\n EmRole cdvRole = new EmRole.LinuxBuilder(CDV_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.CDV)\n .silentInstallChosenFeatures(emChosenFeatures)\n .emCollector(collector1Role)\n .nostartEM().nostartWV().build();\n\n // QAAppRole for Tomcat\n WebAppRole<TomcatRole> qaAppTomcatRole =\n new QaAppTomcatRole.Builder(QA_APP_TOMCAT_ROLE_ID, tasResolver)\n .cargoDeploy().contextName(\"qa-app\")\n .build(); \n\n // Tomcat Role\n TomcatRole tomcatRole =\n new TomcatRole.LinuxBuilder(TOMCAT_ROLE_ID, tasResolver).tomcatVersion(TomcatVersion.v70)\n .tomcatCatalinaPort(9091).webApp(qaAppTomcatRole).build();\n\n // Tomcat Agent Role\n IRole tomcatAgentRole =\n new AgentRole.LinuxBuilder(TOMCAT_AGENT_ROLE_ID, tasResolver).webAppServer(tomcatRole)\n .intrumentationLevel(AgentInstrumentationLevel.FULL).emRole(momRole)\n .build();\n \n \n // Configuration of Cdv machine\n TestbedMachine cdvMachine =\n TestBedUtils\n .createLinuxMachine(CDV_MACHINE_ID, EM_TEMPLATE_ID, cdvRole); \n \n // Configuration of Collector1 machine\n TestbedMachine emMachine =\n TestBedUtils\n .createLinuxMachine(EM_MACHINE_ID, EM_TEMPLATE_ID, momRole, collector1Role);\n\n\n // Configuration of Agent Machine\n TestbedMachine agentMachine =\n TestBedUtils.createLinuxMachine(AGENT_MACHINE_ID, AGENT_MACHINE_TEMPLATE_ID,\n tomcatRole, qaAppTomcatRole, tomcatAgentRole);\n \n return Testbed.create(this, cdvMachine, emMachine, agentMachine);\n\n }", "private static ServiceAccount getInstanceByEnvVars() {\n Map<String, String> env = System.getenv();\n String gaasUrl = env.get(GAAS_URL);\n String gaasApiKey = env.get(GAAS_API_KEY);\n if (gaasUrl == null || gaasApiKey == null) {\n return null;\n }\n logger.info(\"A ServiceAccount is created from environment variables: GAAS_URL=\"\n + gaasUrl + \", GAAS_API_KEY=***\");\n return getInstance(gaasUrl, gaasApiKey);\n }", "private void buildServiceMapping(EndpointMetaData endpoint)\n {\n QName origQName = endpoint.getServiceMetaData().getServiceName();\n String serviceInterfaceName = endpoint.getServiceEndpointInterface().getPackage().getName() + \".\" + origQName.getLocalPart();\n QName serviceQName = new QName(origQName.getNamespaceURI(), origQName.getLocalPart(), \"serviceNS\");\n\n ServiceInterfaceMapping serviceMapping = new ServiceInterfaceMapping(javaWsdlMapping);\n serviceMapping.setServiceInterface(serviceInterfaceName);\n serviceMapping.setWsdlServiceName(serviceQName);\n\n String endpointName = endpoint.getPortName().getLocalPart();\n PortMapping portMapping = new PortMapping(serviceMapping);\n portMapping.setJavaPortName(endpointName);\n portMapping.setPortName(endpointName);\n serviceMapping.addPortMapping(portMapping);\n\n javaWsdlMapping.addServiceInterfaceMappings(serviceMapping);\n\n String interfaceName = endpoint.getPortTypeName().getLocalPart();\n ServiceEndpointInterfaceMapping seiMapping = new ServiceEndpointInterfaceMapping(javaWsdlMapping);\n seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());\n seiMapping.setWsdlPortType(new QName(wsdl.getTargetNamespace(), interfaceName, \"portTypeNS\"));\n seiMapping.setWsdlBinding(new QName(wsdl.getTargetNamespace(), interfaceName + \"Binding\", \"bindingNS\"));\n for (OperationMetaData operation : endpoint.getOperations())\n {\n ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);\n methodMapping.setJavaMethodName(operation.getJavaName());\n methodMapping.setWsdlOperation(operation.getQName().getLocalPart());\n boolean isWrapped = operation.isDocumentWrapped();\n methodMapping.setWrappedElement(isWrapped);\n int i = 0;\n for (ParameterMetaData param : operation.getParameters())\n {\n if (isWrapped && param.isInHeader() == false)\n {\n List<WrappedParameter> wrappedParameters = param.getWrappedParameters();\n for (WrappedParameter wrapped : wrappedParameters)\n {\n String type = JavaUtils.convertJVMNameToSourceName(wrapped.getType(), endpoint.getClassLoader());\n String name = wrapped.getName().getLocalPart();\n\n buildParamMapping(methodMapping, interfaceName, operation, name, type, \"IN\", false, i++);\n }\n }\n else\n {\n String name = param.getXmlName().getLocalPart();\n String type = JavaUtils.convertJVMNameToSourceName(param.getJavaTypeName(), endpoint.getClassLoader());\n buildParamMapping(methodMapping, interfaceName, operation, name, type, param.getMode().toString(), param.isInHeader(), i++);\n }\n }\n\n ParameterMetaData returnParam = operation.getReturnParameter();\n if (returnParam != null && ((! isWrapped) || (! returnParam.getWrappedParameters().isEmpty())))\n {\n String name, type;\n if (isWrapped)\n {\n WrappedParameter wrappedParameter = returnParam.getWrappedParameters().get(0);\n name = wrappedParameter.getName().getLocalPart();\n type = wrappedParameter.getType();\n }\n else\n {\n name = returnParam.getXmlName().getLocalPart();\n type = returnParam.getJavaTypeName();\n }\n\n type = JavaUtils.convertJVMNameToSourceName(type, endpoint.getClassLoader());\n\n buildReturnParamMapping(methodMapping, interfaceName, operation, name, type);\n }\n seiMapping.addServiceEndpointMethodMapping(methodMapping);\n\n for(FaultMetaData fmd : operation.getFaults())\n {\n JavaXmlTypeMapping typeMapping = mappedTypes.get(fmd.getXmlType());\n if (typeMapping == null)\n continue;\n\n String javaTypeName = fmd.getJavaTypeName();\n if (mappedExceptions.contains(javaTypeName))\n continue;\n\n mappedExceptions.add(javaTypeName);\n\n ExceptionMapping mapping = new ExceptionMapping(javaWsdlMapping);\n\n mapping.setExceptionType(javaTypeName);\n QName name = new QName(wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());\n mapping.setWsdlMessage(name);\n\n // Variable mappings generated from SchemaTypesCreater have their order preserved\n for (VariableMapping variableMapping : typeMapping.getVariableMappings())\n mapping.addConstructorParameter(variableMapping.getXmlElementName());\n\n javaWsdlMapping.addExceptionMappings(mapping);\n }\n }\n\n javaWsdlMapping.addServiceEndpointInterfaceMappings(seiMapping);\n\n // Add package mapping for SEI\n String name = endpoint.getServiceEndpointInterface().getPackage().getName();\n String namespace = packageNamespaceMap.get(name);\n if (namespace == null)\n namespace = WSDLUtils.getInstance().getTypeNamespace(name);\n addPackageMapping(name, namespace);\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "public ProfileServiceBootstrap()\n {\n }", "@Before\n public void setup() {\n context.build().resource(OAK_INDEX).commit();\n context.registerService(Scheduler.class,scheduler);\n context.registerService(RequireAem.class,requireAem,\"distribution\",\"classic\");\n\n ScheduleOptions options = mock(ScheduleOptions.class);\n lenient().when(scheduler.NOW()).thenReturn(options);\n lenient().when(scheduler.schedule(any(), any())).thenAnswer((InvocationOnMock invocation) -> {\n EnsureOakIndexJobHandler handler = invocation.getArgument(0);\n handler.run();\n return true;\n });\n\n context.registerService(ChecksumGenerator.class, new ChecksumGeneratorImpl());\n \n ensureOakIndexManagerProperties = new HashMap<>();\n ensureOakIndexManagerProperties.put(\"properties.ignore\", null);\n \n }", "public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}", "public interface ApplicationService {\n ResourceList build(CloudBlueprint cloudBlueprint);\n List<Server> getServers(String environment);\n Map<String, JsonBall> getServerDetail(String serverName);\n}", "public interface OmcSchemaManagementService {\n public void txnSchemaUpload(\n OmcEnvironment.Environment envionment,\n String schemaDir,\n boolean isClassAttrUpload,\n boolean isMenuUpload,\n boolean isLifeCycleUpload,\n boolean isEtcUpload,\n boolean isConstantUpload,\n boolean isTemporaryOnly,\n Map<String,String> schemaExcelScheet);\n public void synchronizeClassProcess(OmcEnvironment.Environment envionment, String propertyUtilClass, String objectRootVOClass);\n public void dumpTableScripts(OmcEnvironment.Environment envionment,boolean isFull, boolean includeCreateIndex, long targetDBMSType);\n public void txnInitialSchemaSetupMain(OmcEnvironment.Environment envionment,String defaultSite);\n //public void secondSchemaSetupMain(OmcEnvironment.Environment envionment);\n public void dumpIndexScriptsAll(OmcEnvironment.Environment envionment, boolean isParallelOption);\n}", "@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }", "public abstract String getServiceName();", "@Service\n@Area(\"Network\")\npublic interface NetworksService {\n /**\n * Creates a new logical network, or associates an existing network with a data center.\n *\n * Creation of a new network requires the `name` and `data_center` elements.\n *\n * For example, to create a network named `mynetwork` for data center `123` send a request like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/networks\n * ----\n *\n * With a request body like this:\n *\n * [source,xml]\n * ----\n * <network>\n * <name>mynetwork</name>\n * <data_center id=\"123\"/>\n * </network>\n * ----\n *\n *\n * To associate the existing network `456` with the data center `123` send a request like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/datacenters/123/networks\n * ----\n *\n * With a request body like this:\n *\n * [source,xml]\n * ----\n * <network>\n * <name>ovirtmgmt</name>\n * </network>\n * ----\n *\n * To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request\n * like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/networks\n * ----\n *\n * [source,xml]\n * ----\n * <network>\n * <name>exnetwork</name>\n * <external_provider id=\"456\"/>\n * <data_center id=\"123\"/>\n * </network>\n * ----\n *\n * @author Martin Mucha <[email protected]>\n * @author Petr Horacek <[email protected]>\n * @date 12 Nov 2017\n * @status added\n */\n interface Add {\n @InputDetail\n default void inputDetail() {\n or(mandatory(network().id()), mandatory(network().name()));\n optional(network().comment());\n optional(network().description());\n optional(network().ip().address());\n optional(network().ip().gateway());\n optional(network().ip().netmask());\n optional(network().mtu());\n optional(network().profileRequired());\n optional(network().stp());\n optional(network().vlan().id());\n optional(network().usages()[COLLECTION]);\n optional(network().externalProvider().id());\n optional(network().externalProviderPhysicalNetwork().id());\n optional(network().portIsolation());\n }\n @In @Out Network network();\n }\n\n /**\n * List logical networks.\n *\n * For example:\n *\n * [source]\n * ----\n * GET /ovirt-engine/api/networks\n * ----\n *\n * Will respond:\n *\n * [source,xml]\n * ----\n * <networks>\n * <network href=\"/ovirt-engine/api/networks/123\" id=\"123\">\n * <name>ovirtmgmt</name>\n * <description>Default Management Network</description>\n * <link href=\"/ovirt-engine/api/networks/123/permissions\" rel=\"permissions\"/>\n * <link href=\"/ovirt-engine/api/networks/123/vnicprofiles\" rel=\"vnicprofiles\"/>\n * <link href=\"/ovirt-engine/api/networks/123/networklabels\" rel=\"networklabels\"/>\n * <mtu>0</mtu>\n * <stp>false</stp>\n * <usages>\n * <usage>vm</usage>\n * </usages>\n * <data_center href=\"/ovirt-engine/api/datacenters/456\" id=\"456\"/>\n * </network>\n * ...\n * </networks>\n * ----\n *\n * The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the\n * `search` parameter.\n *\n * @author Ori Ben Sasson <[email protected]>\n * @date 14 Sep 2016\n * @status added\n */\n interface List extends Follow {\n @Out Network[] networks();\n\n /**\n * Sets the maximum number of networks to return. If not specified all the networks are returned.\n */\n @In Integer max();\n\n /**\n * A query string used to restrict the returned networks.\n */\n @In String search();\n\n /**\n * Indicates if the search performed using the `search` parameter should be performed taking case into\n * account. The default value is `true`, which means that case is taken into account. If you want to search\n * ignoring case set it to `false`.\n */\n @In Boolean caseSensitive();\n }\n\n /**\n * Reference to the service that manages a specific network.\n *\n * @author Ori Ben Sasson <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @Service NetworkService network(String id);\n}", "public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public ServiceGenerator\n createServiceGenerator(ServiceLocator locator);", "SqlElasticPoolOperations.DefinitionStages.WithEdition withExistingSqlServer(SqlServer sqlServer);" ]
[ "0.5961801", "0.5468666", "0.5437844", "0.5422994", "0.53994036", "0.53994036", "0.5342087", "0.5333738", "0.5256943", "0.520794", "0.51991653", "0.51900643", "0.5131141", "0.5109377", "0.5105352", "0.5089586", "0.50814146", "0.5024278", "0.50205624", "0.49732062", "0.49385074", "0.49334887", "0.49132496", "0.49030134", "0.4897387", "0.4896345", "0.48932788", "0.48910788", "0.48790038", "0.48343804", "0.48245692", "0.48072264", "0.47965488", "0.4795799", "0.477392", "0.47685122", "0.47603953", "0.47599068", "0.47545233", "0.47510225", "0.47409934", "0.4736095", "0.4718133", "0.47153676", "0.47100672", "0.4697362", "0.469175", "0.4690521", "0.46855867", "0.4682468", "0.4679927", "0.4667502", "0.4660324", "0.4657738", "0.46531737", "0.4648586", "0.4647707", "0.46452156", "0.46432337", "0.4637374", "0.463655", "0.46348614", "0.46348614", "0.46348614", "0.46320635", "0.4630927", "0.4628828", "0.46245986", "0.46111944", "0.46088907", "0.46058947", "0.46023187", "0.4596363", "0.45904744", "0.45903027", "0.45875052", "0.45853272", "0.4584115", "0.4578907", "0.45748106", "0.4568761", "0.45638448", "0.4559616", "0.4559616", "0.45595708", "0.4551706", "0.45473102", "0.45469388", "0.45357957", "0.4526577", "0.45055214", "0.45045006", "0.44983727", "0.4498118", "0.4496122", "0.44952032", "0.44945312", "0.44935638", "0.4492083", "0.44890514" ]
0.6706942
0
Deletes the specified SAM Environment
public abstract void deleteSAMEnvironment(String envName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static it.vmt.gh.sb.model.Environment deleteEnvironment(\n\t\tit.vmt.gh.sb.model.Environment environment) {\n\n\t\treturn getService().deleteEnvironment(environment);\n\t}", "@Override\n public void delete(EnvironmentVariable environmentVariable) throws Exception {\n\n }", "public static it.vmt.gh.sb.model.Environment deleteEnvironment(\n\t\t\tlong environmentId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException {\n\n\t\treturn getService().deleteEnvironment(environmentId);\n\t}", "public void remove(Env env) {\n\t\tT obj = objs.remove(Thread.currentThread());\n\t\tif(obj!=null)\n\t\t\tobj.destroy(env);\n\t}", "public void clearEnvironment()\r\n\t{\r\n\t\tEnvironment.e = null;\r\n\t}", "void delete(String resourceGroupName, String virtualMachineTemplateName);", "void delete(SecretIdentifier secretIdentifier);", "void delete(String resourceGroupName, String rackName, Context context);", "public boolean removeEnvironment(Long environmentId) {\n\t\t\n\t\tEnvironment environment_ = entityManager.find(Environment.class, environmentId);\n\t\tif(environment_ == null)\n\t\t\treturn false;\n\n\t\t// Get the jobs that are related to this environment\n\t\tJob job_ = (Job)entityManager.createQuery(\n\t\t\t\t\t\t\t\t\t\t\"select j from Job j where j.environment.environmentId = :id\"\n\t\t\t\t\t\t\t\t).setParameter(\"id\", environment_.getEnvironmentId())\n\t\t\t\t\t\t\t\t .getSingleResult();\n\t\t\n\t\tentityManager.remove(job_);\n\t\tentityManager.remove(environment_);\n\t\t\n\t\treturn true;\n\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "@Test\n public void deleteDeviceTest() throws ApiException {\n String deviceId = null;\n // DeviceEnvelope response = api.deleteDevice(deviceId);\n\n // TODO: test validations\n }", "public void delete(SecRole entity);", "void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, Context context);", "public void delete(String namespace, String id, long version) throws StageException;", "void deleteContext(PortalControllerContext portalControllerContext);", "public void deleteOrganizationStages(long orgId) throws ServiceManagementException {\n\t\tPreparedStatement preparedDELETEStatement = null;\n\t\t\n\t\t// get the connection\n\t\tConnection conn = openConnection();\n\t\t\n\t\t// \n\t\t// process the request\n\t\t\n\t\t\n\t\t// create the query\n\t\tString deleteQuery = \" DELETE FROM group_data_type WHERE org_id = ?\";\n\t\t\n\t\t// create the statement\n\t\ttry {\n\t\t\tpreparedDELETEStatement = conn\n\t\t\t .prepareStatement(deleteQuery);\n\t\t\t\n\t\t\t// execute the statement \n\t\t\tpreparedDELETEStatement.setLong(1, orgId);\n\t\t\tpreparedDELETEStatement.execute();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\t// re-throw the proper exception\n\t\t\tthrow new ServiceManagementException(\"Error while deleting a stages list with id=\" + orgId, e);\n\t\t}\n\n\t\t// release the connection\n\t\tcloseConnection(conn);\n\t}", "void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force);", "protected int deleteOrphanedEnv(final int curEnv) {\n final SQLiteDatabase db = this.helper.getWritableDatabase();\n return deleteOrphanedEnv(db, curEnv);\n }", "@SuppressWarnings(\"static-method\")\n protected int deleteOrphanedEnv(final SQLiteDatabase db, final int curEnv) {\n final String whereClause =\n \"id != ? AND \" +\n \"id NOT IN (SELECT env FROM events)\";\n final String[] whereArgs = new String[] {Integer.toString(curEnv)};\n return db.delete(\"environments\", whereClause, whereArgs);\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String sqlManagedInstanceName, Context context);", "void deleteProject(String projectKey);", "public void deleteDepartments() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(\"departments\", null, null);\n db.close();\n }", "public void deleteDepartmentByDeptName(String dept_name);", "int deleteByExample(RoleSystemauthorityExample example);", "void deleteCenterProgram(String centerProgramId);", "public void deleteBucket() {\n\n logger.debug(\"\\n\\nDelete bucket\\n\");\n\n String accessId = System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR);\n String secretKey = System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR);\n\n Properties overrides = new Properties();\n overrides.setProperty(\"s3\" + \".identity\", accessId);\n overrides.setProperty(\"s3\" + \".credential\", secretKey);\n\n final Iterable<? extends Module> MODULES = ImmutableSet\n .of(new JavaUrlHttpCommandExecutorServiceModule(),\n new Log4JLoggingModule(),\n new NettyPayloadModule());\n\n BlobStoreContext context =\n ContextBuilder.newBuilder(\"s3\").credentials(accessId, secretKey).modules(MODULES)\n .overrides(overrides).buildView(BlobStoreContext.class);\n\n BlobStore blobStore = context.getBlobStore();\n blobStore.deleteContainer( bucketName );\n }", "int deleteByExample(CmIndustryConfigExample example);", "@Override\r\n\tpublic void delete(Plant plant) throws Exception {\n\r\n\t}", "@Test\n public void deleteHouseholdUsingDeleteTest() throws ApiException {\n UUID householdId = null;\n api.deleteHouseholdUsingDelete(householdId);\n\n // TODO: test validations\n }", "int deleteByExample(SysRoleDOExample example);", "void delete(String resourceGroupName, String hubName, String predictionName, Context context);", "public void deleteApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "int deleteByExample(ProcurementSourceExample example);", "void deleteExam(Module module, Exam target);", "int deleteByExample(ReleaseSystemExample example);", "@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }", "void deleteFunctionLibrary(String functionLibraryName, String tenantDomain)\n throws FunctionLibraryManagementException;", "@Override\n\tpublic void contextDeleted(String context, boolean toolPlacement) {\n\t}", "public void removeApplicationEnvLink(String appId, String appVersionId, String appVersionInstanceId);", "int deleteByExample(SysAuthenticationExample example);", "public void destroy() throws Exception;", "void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context);", "@Test\n public void deleteDeviceTokenTest() throws ApiException {\n String deviceId = null;\n // DeviceTokenEnvelope response = api.deleteDeviceToken(deviceId);\n\n // TODO: test validations\n }", "public void deleteProject(Long projectId);", "public void doDelete() throws Exception\r\n\t\t{\r\n\t\tmyRouteGroup.delete();\r\n\t\t}", "public abstract void delete(Context context);", "public void execute() throws ValidationException {\n List<EnvironmentProperty> environmentPropertyList = environmentPropertyDAO.findAll();\n for(EnvironmentProperty ep : environmentPropertyList) {\n environmentPropertyDAO.delete(ep.getId());\n }\n\n\n environmentDAO.deleteAll();\n propertyDAO.deleteAll();\n applicationDAO.deleteAll();\n }", "@Override\n public void delete(JavaStudyClub javaStudyClub) {\n entityManager.remove(javaStudyClub);\n }", "void deleteByOrgId(String csaOrgId);", "private static void deleteExperiment(String sessionToken, IApplicationServerApi v3, boolean COMMIT_CHANGES_TO_OPENBIS, ExperimentPermId experimentPermId) {\n \n Experiment experiment = MetadataHelper.getExperiment(sessionToken, v3, experimentPermId);\n \n if((experiment.getDataSets().size() + experiment.getSamples().size()) > 0) {\n System.out.println(\"Experiment \" + experiment.getIdentifier() + \" can't be deleted until DataSets \" + experiment.getDataSets().size() + \" and Samples \" + experiment.getSamples().size() + \" are moved. Try again later.\");\n return;\n }\n \n // Deleting Experiments.\n \n if(COMMIT_CHANGES_TO_OPENBIS) {\n ExperimentDeletionOptions deleteOptions = new ExperimentDeletionOptions();\n deleteOptions.setReason(\"Microscopy Migration\");\n IDeletionId deletionId = v3.deleteExperiments(sessionToken, Arrays.asList(experimentPermId), deleteOptions);\n v3.confirmDeletions(sessionToken, Arrays.asList(deletionId));\n }\n }", "public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }", "void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context);", "private void deleteEmployee() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentPetUri != 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 mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, 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_pet_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_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "int deleteByExample(JindouyunRoleExample example);", "public String deleteEmployee(EmployeeDetails employeeDetails);", "@DeleteMapping(\"/deleteProject/{projectId}\")\r\n\tpublic void deleteProject(@PathVariable String projectId) {\r\n\r\n\t\tpersistenceService.deleteProject(projectId);\r\n\t}", "public boolean delete();", "public void delete(Employeee em) {\n\t\temployeerepo.delete(em);\n\t}", "@Override\r\n public int deptDelete(int dept_seq) {\n return sqlSession.delete(\"deptDAO.deptDelete\", dept_seq);\r\n }", "int deleteByExample(TawRoleDomainExample example);", "@Test\r\n\tpublic void deleteGameProgram() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGameProgram \r\n\t\tInteger game_gameId = 0;\r\n\t\tInteger related_program_programId = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = service.deleteGameProgram(game_gameId, related_program_programId);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: deleteGameProgram\r\n\t}", "@ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String sqlManagedInstanceName);", "void deleteDepartmentById(Long id);", "@Override\n public void deleteShardStore(String reason, ShardLock lock, IndexSettings indexSettings) throws IOException {\n ShardId shardId = lock.getShardId();\n logger.trace(\"{} deleting shard reason [{}]\", shardId, reason);\n nodeEnv.deleteShardDirectoryUnderLock(lock, indexSettings);\n }", "public void deleteSurvey(int sid);", "public void deleteSamSyndicator() {\r\n deletePublisher(TckPublisher.getSamPublisherId());\r\n }", "public void deleteDepartment(Department deparmentInDB) {\n\t\tdepartmentRepository.delete(deparmentInDB);\n\t\t\n\t}", "void delete(String resourceGroupName, String virtualMachineName);", "@DeleteProvider(type = SistemaSqlProvider.class, method = \"deleteByExample\")\n\tint deleteByExample(SistemaExample example);", "@Override\n\tpublic void delete(Oglas oglas) {\n\t\trepository.delete(oglas);\n\t}", "void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, Context context);", "public final void delete( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).deleteOnServer( this );\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete AppSystem : {}\", id);\n systemRepository.delete(id);\n }", "void deleteWorkflowRequest(String requestId) throws WorkflowException;", "public void deleteEmp(int empno) {\n\t\t\n\t}", "public void destroy() throws ContextDestroyException;", "@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}", "public String deleteProvince() throws Exception {\r\n\r\n if (null == province.getId() || null == province.getExclusiveKey()) {\r\n return ILLEGAL_ERR;\r\n }\r\n ProvinceBusiness provinceBusiness = new ProvinceBusiness();\r\n provinceBusiness.deleteProvince(province);\r\n if (provinceBusiness.hasErrors()) {\r\n setActionMessages(getMessageText(provinceBusiness.getErrors()));\r\n return INPUT;\r\n }\r\n\r\n return SUCCESS;\r\n }", "void delete(String resourceGroupName, String hubName, String predictionName);", "@DeleteMapping(\"/\")\n\tpublic ResponseEntity<Object> deleteAdministrator(HttpServletRequest request){\n\t\tAdministrator admin = service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession()));\n\t\tservice.delete(admin);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}", "public boolean deleteDepartmentById(Integer id);", "@AfterClass(alwaysRun = true)\n public void webAppDelete() throws Exception {\n\n webAppAdminClient.deleteWebAppFile(\"HelloWorldWebapp.war\", hostName);\n assertTrue(WebAppDeploymentUtil.isWebApplicationUnDeployed(\n backendURL, sessionCookie,\n \"HelloWorldWebapp.war\"), \"HelloWorldWebapp unDeployment failed\");\n }", "public void deleteDepartmentByDeptNo(int dept_no);", "public boolean delete(String authToken) throws IOException{\n\t\treturn delete(authToken, this.getWa_id());\n\t}", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "int deleteByExample(T00RolePostExample example);", "public void deleteTruthSet(long truthSetId) throws NameSystemException {\n validateCanDeleteName(truthSetId);\n\n getTruthSetDAO().delete(truthSetId);\n }", "void delete(String uuid);", "int deleteByExample(ProvidersExample example);", "@DELETE\n\t@Path(\"{id}\")\n\tpublic Response deleteApplication(@PathParam(\"id\") String id) {\n\t\tApplicationsDao.instance.delete(id);\n\t\treturn Response.noContent().build();\n\t}", "void deleteModule(Module module);", "public StatusObj deleteMovieFlexEntry(String uuid, String securityToken);" ]
[ "0.7130147", "0.66942734", "0.62207466", "0.5743487", "0.56425995", "0.5561848", "0.5490372", "0.54903316", "0.54388267", "0.5383607", "0.5359391", "0.53564763", "0.5352516", "0.5350622", "0.53470004", "0.53397274", "0.53373647", "0.53259194", "0.5312609", "0.53080875", "0.5288521", "0.52598417", "0.5236379", "0.52255213", "0.52247393", "0.51977247", "0.5194374", "0.51858175", "0.51820993", "0.5171317", "0.51603514", "0.5146071", "0.5130638", "0.51301587", "0.512697", "0.51195717", "0.5118473", "0.5114533", "0.5106241", "0.5102369", "0.51013106", "0.50994015", "0.5085735", "0.5082936", "0.50796723", "0.50757325", "0.50716925", "0.5065658", "0.5059638", "0.50359064", "0.50348413", "0.50326383", "0.50261116", "0.5024717", "0.50175434", "0.501576", "0.5011897", "0.50071263", "0.50035053", "0.5003426", "0.5000792", "0.49969128", "0.49894267", "0.4986", "0.49749672", "0.4974343", "0.49730197", "0.4971226", "0.49625283", "0.49573556", "0.49469894", "0.4945842", "0.49449766", "0.49429598", "0.49419674", "0.49404505", "0.4936487", "0.49267474", "0.49261707", "0.49250615", "0.49229267", "0.49189937", "0.49189323", "0.49185604", "0.49144703", "0.49113712", "0.49085042", "0.49062604", "0.49062604", "0.49062604", "0.49062604", "0.49062604", "0.49062604", "0.49061826", "0.490571", "0.4905417", "0.49050677", "0.49038038", "0.48990083", "0.48945132" ]
0.8345188
0
Scanner sc = new Scanner(System.in); System.out.println("Enter an array: "); int[] a = sc.nextInt();
public static void main(String[] args) { int[] a = {1,2,4,1,2};//4 = 100, 1 = 001{1^0 =1, 0^0=0, 0^1=1, 1^1=0} int result = a[0]; for(int i =1; i<a.length;i++) { result=result^a[i]; } System.out.println("single repeated elements is: "+result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nint a[]=new int[4];\r\nSystem.out.println(\"enter array values\" );\r\n\r\nScanner sc=new Scanner(System.in);\r\na[0]=sc.nextInt();\r\na[1]=sc.nextInt();\r\na[2]=sc.nextInt();\r\na[3]=sc.nextInt();\r\n\r\n\r\n\r\n\r\n\t}", "public static int[] input() {\n System.out.println(\"Enter size of array: \");\r\n Scanner sc = new Scanner(System.in);\r\n int n = sc.nextInt();\r\n int a[] = new int[n];\r\n for (int i = 0; i < n; i++) { //This forloop will help to store array \r\n a[i] = sc.nextInt();\r\n }\r\n return a;\r\n\r\n }", "private static Integer[] readInputFromUser(Scanner in) {\n\t\tInteger[] array = null;\n\t\t/**\n\t\t * Accept the quantity of the data along with actual data.\n\t\t */\n\t\tSystem.out.print(\"Please enter number of integers you want to input:\");\n\t\tint s = in.nextInt();\n\t\tarray = new Integer[s];\n\t\tSystem.out.print(\"Please enter Integers:\");\n\n\t\tfor (int i = 0; i < s; i++) {\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\t\tSystem.out.println(\"Input Array: \" + Arrays.toString(array));\n\t\treturn array;\n\t}", "public static int[] takeInput() {\n System.out.println(\"Enter size of arrays : \");\n int size = scn.nextInt();\n\n // declaring arrays \n int[] arrays = new int[size];\n\n // taking input from user\n for (int i = 0; i < arrays.length; i++) {\n System.out.println(\"Enter elements at \" + i);\n arrays[i] = scn.nextInt();\n }\n\n return arrays;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint[] array= {13};\n\t\t//array[1]=12;\n\t\t\n\t\tSystem.out.println(array.length);\n\n\t Scanner scan=new Scanner(System.in);\n\t System.out.println(\"How many element do you want to store inside an array\");\n\t \n\t int size =scan.nextInt();\n\t \n\t int[] numbers=new int[size];\n\t \n\t for(int i=0; i<numbers.length; i++ ) {\n\t \n\t\t numbers[i]=scan.nextInt();}\n\t \n\t \n {System.out.println(\"Display all elements from an array\");\t \n\t\t \n\t\t \n\t\t \n\t \n\n}}", "public static void main(String[] args) {\n System.out.println(\"Enter no of array elements\");\n Scanner s=new Scanner(System.in);\n int a=s.nextInt();\n int[] arr =new int[a];\n\n System.out.println(\"Enter array elements\");\n for(int i=0;i<arr.length;i++)\n {\n arr[i]=s.nextInt();\n }\n\n\n int sum=0;\n for(int i=0;i<a;i++)\n {\n sum=sum+arr[i];\n }\n System.out.println(\"Sum of array elements \"+sum);\n }", "public static void main(String args[]) {\n \n Scanner in=new Scanner(System.in);\n int s=in.nextInt();\n \n int arr[]=new int[s];\n \n for(int i=0;i<s;i++)\n {\n arr[i]=in.nextInt();\n }\n fun(s,arr);\n \n}", "public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n int as = in.nextInt();\n int arr[] = new int[as];\n for (int i = 0; i< as ; i++)\n {\n arr[i] = in.nextInt();\n }\n separate(as, arr);\n for (int i = 0; i< as ; i++)\n {\n System.out.print(arr[i] + \" \");\n }\n }", "public static void main(String[] args) throws Exception {\n Scanner scn=new Scanner (System.in);\r\n int n=scn.nextInt(); \r\n int[] arr=new int[n];\r\n for(int i=0;i<n;i++){\r\n arr[i]=scn.nextInt();\r\n }\r\n System.out.println(lis(arr));\r\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n \n // size of array\n int len = scanner.nextInt();\n int[] arr = new int[len];\n \n // elements of array\n for (int i = 0; i < arr.length; i++) {\n arr[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int num : arr) {\n sum += num;\n }\n System.out.println(sum);\n }", "int[] takeNumberFromUser() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter size of numbers\");\n\t\tint size = scan.nextInt();\n\t\tint[] input = new int[size];\n\t\tfor (int index = 0; index < input.length; index++) {\t\t//taking array element as input on console\n\t\t\tinput[index] = scan.nextInt();\n\t\t}\n\t\tscan.close();\n\t\treturn input; // returning input array\n\t}", "public static void main(String[] args) \r\n\t{\r\n\t\t\r\n\t\tScanner sc = new Scanner( System.in);\r\n\t\tSystem.out.println(\"Enter The Size\");\r\n\t\tint size = sc.nextInt();\r\n\t\tint array[]=new int[size];\r\n\t\t\r\n\t\tfor(int i=0;i<size;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter the value at\"+ (i+1)+\" \");\r\n\t\t\tarray[i]=sc.nextInt();\r\n\t\t}\r\n\t\tfor(int i=0;i<size;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(array[i]);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\nint n,k,i=0;\r\ntry\r\n{\r\n\tSystem.out.println(\"Enter the number of elements in the array\");\r\n\tn=sc.nextInt();\r\n\tSystem.out.println(\"enter the array elements\");\r\n\tint []a=new int[n];\r\n\tfor(i=0;i<n;i++)\r\n\t{\r\n\t\ta[i]=sc.nextInt();\r\n\t}\r\n\tSystem.out.println(\"Enter the index of the array element you want to access\");\r\n\tk=sc.nextInt();\r\n\tSystem.out.println(\"The array element at index k \"+a[k]);\r\nSystem.out.println(\"The array element successfully accessed\");\r\n}\r\ncatch(ArrayIndexOutOfBoundsException e)\r\n{\r\n\tSystem.out.println(e);\r\n}\r\ncatch(NumberFormatException e)\r\n{\r\n\tSystem.out.println(e);\r\n}\r\n\t}", "public static void main(String[] args) {\n\n\tScanner s = new Scanner(System.in);\n\tint n = s.nextInt();\n\tSystem.out.println(\"enter the number to find in array\");\n\tint num = s.nextInt();\n\tint a[] = new int[n]; \n\tfor(int i:a) {\t\t\t\t\t\t\t\t\t\n\t\tSystem.out.println(\"enter the a number\");\n\t i = s.nextInt(); // a[i] for traditional for loop\n\n}//for\n\t\n\t\n\t\n\tdisplay(a);\t\n\treverse(a);\n\t\n\ts.close();\n\t}", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t System.out.print(\"Enter the Number : \");\n int a=s.nextInt();\n int arr[]=new int[a];\n for(int i=0;i<a;i++)\n {\n \t arr[i]=s.nextInt();\n }\n \n System.out.print(\"Output : \"+(arr[0]+arr[1]));\n s.close();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tScanner s=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the number of elements you want to store\");\n\t\tint n= s.nextInt();\n\t\tint a[]=new int[10];\n\t\tint i;\n\t\tSystem.out.println(\"Enter numbers\");\n\t\tfor( i=0;i<=n;i++)\n\t\t{\n\t\t\t\n\t\t\ta[i]=s.nextInt();\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.print(\"numbers are\");\n\t\tfor(i=0;i<=n;i++)\n\t\t{\n\t\t\tSystem.out.println(a[i]);\n\t\t}\n\t}", "public static void ingresar(int[] x) {\n int i;\n Scanner entrada = new Scanner(System.in);\n for (i = 0; i < N; i++) {\n System.out.println(\"Ingrese un numero para la celda \" + i);\n x[i] = entrada.nextInt();\n \n }\n \n }", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = scn.nextInt();\n\t\t}\n\t\tSystem.out.println(val(arr));\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int n = in.nextInt();\n int[] arr = new int[n];\n for(int a_i=0; a_i < n; a_i++){\n arr[a_i] = in.nextInt();\n }\n\n for(int a0 = 0; a0 < n; a0++){\n if(arr[a0]==a){\n System.out.println(a0);\n break;\n }\n }\n }", "private int[] readArray(Scanner sc) {\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter the number of elements in array\");\r\n\t\ttry {\r\n\t\t\tint size = sc.nextInt();\r\n\t\t\r\n\t\t\twhile(size <= 0) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Please enter integer number of elements in array\");\r\n\t\t\t\tsize = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Please enter the elements in array\");\r\n\t\t\tint[] array = new int[size];\r\n\t\t\t\t\r\n\t\t\tfor(int index=0 ; index<size ; index++){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tarray[index] = sc.nextInt();\r\n\t\t\t}\r\n\t\t\treturn array;\t\r\n\t\t} catch(NumberFormatException exp) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(exp.getMessage());\r\n\t\t\treadArray(sc);\r\n\t\t} catch(Exception exp) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(exp.getMessage());\r\n\t\t\treadArray(sc);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void fillArray(int[] array)\r\n {\r\n //Create a local scanner object\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //Prompt user to enter the number of values within the array\r\n System.out.println(\"Enter \" + array.length + \" values\");\r\n \r\n //Loop through array and assign a value to each individual element\r\n for (int n=0; n < array.length; ++n) \r\n {\r\n \r\n System.out.println(\"Enter a value for element \" + n + \":\");\r\n \r\n array[n] = sc.nextInt();\r\n \r\n \r\n \r\n }\r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"enter the length of array\");\r\n\t\tint len=s.nextInt();\r\n\t\tSystem.out.println(\"array element\");\r\n\t\tint[] a=new int[len] ;\r\n\t\t//System.out.println(a);\r\n\t\tint ind=0;\r\n\t\tfor(int i=0;i<len;i++) {\r\n\t\t\ta[i]=s.nextInt();\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"enter the NUM\");\r\n\t\tint num=s.nextInt();\r\n\t\trepeat(a,len,num);\r\n\t\t\r\n\r\n}", "public static void main(String[] args) {\n\t\tScanner scannerObj = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a size of array :: \");\n\t\tint size = scannerObj.nextInt();\n\t\tint[] array = new int[size];\n\t\tSystem.out.println(\"Please enter the elements of array :: \"); \n\t\t\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tarray [i] = scannerObj.nextInt();\n\t\t}\n\t\tprintArray(array);\n\t\tmoveEven(array);\n\t\tprintArray(array);\n\n\t}", "public static int[] readArrayFromConsole() {\n\t\tScanner input = new Scanner(System.in);\n\n\t\t// Getting the Array size from the user\n\t\tSystem.out.print(\"How many numbers do you want to enter? \");\n\t\tint arraySize = input.nextInt();\n\n\t\tint[] rstArray = new int[arraySize];\n\n\t\tfor (int i = 0; i < arraySize; i++) {\n\t\t\tSystem.out.print(\"Enter value for position [\" + i + \"]: \");\n\t\t\trstArray[i] = input.nextInt();\n\t\t}\n\n\t\t// close the user input\n\t\tinput.close();\n\n\t\t// Display the result(rst) Array\n\t\treturn rstArray;\n\t}", "public static void main(String args[]){\n\t\t\tScanner scan = new Scanner(System.in);\r\n\t\t\tint t = 0;\r\n\t\t\twhile(t-->0){\r\n\t\t\t\tString s = scan.next();\r\n\t\t\t\tchar c = scan.next().charAt(0);\r\n\t\t\t\tint n = scan.nextInt();\r\n\t\t\t\tSystem.out.println(n);\r\n\t\t\t}\r\n\t\t\tInteger arr[] = new Integer[10];\r\n\t\t//\tArrays.fill(arr, 1);\r\n\t\t\tfor(int i=0;i<10;i++) arr[i] = i+1;\r\n\t\t//\tString s = String.valueOf(arr);\r\n\t\t\tSystem.out.println(Arrays.toString(arr));\r\n\t\t\tCollections.rotate(Arrays.asList(arr),2);\r\n\t\t\tSystem.out.println(Arrays.toString(arr));\r\n\t\t\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint[] iArr = new int[size];\n\t\tfor(int i=0; i<iArr.length; i++) {\n\t\t\tint first, second;\n\t\t\tfirst = sc.nextInt();\n\t\t\tsecond = sc.nextInt();\n\t\t\tSystem.out.println(first+second);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tScanner sc=new Scanner(System.in);\n\t\t int i,j,col,row;\n\t\t System.out.println(\"Enter the rows : \");\n\t\t row=sc.nextInt();\n\t\t \n\t\t System.out.println(\"Enter the cols : \");\n\t\t col=sc.nextInt();\n\t\t \n\t\t int[][] arr=new int[row][col];\n\t\t \n\t\t System.out.println(\"Enter the elements in the array : \");\n\t\t \n\t\t for(i=0;i<row;i++)\n\t\t {\n\t\t\t for(j=0;j<col;j++)\n\t\t\t {\n\t\t\t\t arr[i][j]=sc.nextInt();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(i=0;i<row;i++)\n\t\t {\n\t\t\t for(j=0;j<col;j++)\n\t\t\t {\n\t\t\t\t //arr[i][j]=sc.nextInt();\n\t\t\t\t\n\t\t\t\t System.out.print(arr[i][j]+\" \");\n\t\t\t\t\n\t\t\t }\n\t\t\t System.out.println();\n\t\t }\n\t}", "public int[] inputArrayElements(int arrayParameter[],int length){\r\n\t\t\t\t\tScanner scannerObject=new Scanner(System.in);\r\n\t\t\t\t\tfor(int index=0;index<length;index++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tarrayParameter[index]=scannerObject.nextInt();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tscannerObject.close();\r\n\t\t\t\t\treturn arrayParameter;\r\n\t\t\t\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int size = in.nextInt();\n int[] a = new int[100];\n for (int i = 0; i < size; i++) {\n int j = in.nextInt();\n a[j] = a[j] + 1;\n }\n\n for(int n : a){\n System.out.print(n+\" \");\n }\n System.out.println(\"\");\n }", "private void readFromConsole(){\n Scanner cin = new Scanner(System.in);\n\n if(cin.hasNext()){\n number = cin.nextInt();\n }\n array = new long[number];\n\n for(int num = 0; num < number; num++){\n if(cin.hasNext()){\n array[num] = cin.nextLong();\n }\n }\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the limit of the array\");\r\n\t\tint lm = sc.nextInt();\r\n\t\tint a[] =new int [lm];\r\n\t\tSystem.out.println(\"Enter the elements in the array\");\r\n\t\tfor(int i=0;i<lm;i++) {\r\n\t\t\t\r\n\t\t\t a[i] = sc.nextInt() ;\r\n\t\t}\r\n \r\n int b[] = a.clone();\r\n \r\n System.out.println(\"The elements in a array is :\");\r\n for(int i=0;i<a.length;i++)\r\n {\r\n \t System.out.println(a[i]+ \" \");\r\n }\r\n \r\n System.out.println(\"The elements in b array is :\");\r\n for(int i=0;i<b.length;i++)\r\n {\r\n \t System.out.println(b[i]+ \" \");\r\n }\r\n\t}", "public static void main(String[] args) {\n\t\tint[] a ;\n\t int size;\n\t \n\t System.out.println(\"Enter size of array\");\n\t Scanner obj = new Scanner(System.in);\n\t size=obj.nextInt();\n\t a=new int[size];\n\t System.out.println(\"Enter the values of array\");\n\t for(int i=0;i<a.length;i++)\n\t {\n\t Scanner obj1 = new Scanner(System.in);\n\t a[i]=obj1.nextInt();\n\t }\n\t System.out.println(\"Enter the number to find in array\");\n\t Scanner obj2 = new Scanner(System.in);\n\t int number=obj2.nextInt();\n\t int k=0;\n\t for (int i=0;i<a.length;i++)\n\t {\n\t if(a[i]==number) \n\t {\n\t System.out.println(number + \"found at location \" + i);\n\t k=1;\n\t }\n\t \n\t }\n\t if(k==0)\n\t {\n\t System.out.println(number + \" not found\");\n\t }\n\t \n\t}", "public static void main(String[] args) {\n\t\tint[] a = new int[5];\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"5 number: \");\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"5 number: \");\n\t\tsc = new Scanner(System.in);\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = Integer.parseInt(sc.nextLine());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"5 number: \");\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = Integer.valueOf(bf.readLine()).intValue();\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\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\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"5 number: \");\n\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = Integer.parseInt(bf.readLine());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\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\treturn;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tSystem.out.println(a[i]);\n\t\t}\n\n\t}", "public void readIntegerArray(int row, int col, Scanner sc) {\r\n\t\tint[][] b=new int[row][col];\r\n\t\tSystem.out.println(\"enter\"+row*col+\"elements\");\r\n\t\ttry{\r\n\t\t\tfor(int i=0;i<row;i++){\r\n\t\t\t\tfor(int j=0;j<col;j++){\r\n\t\t\t\t\tb[i][j]=sc.nextInt();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.out.println(\"Enter integer no only\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n \t try{\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n String input=br.readLine();\r\n int N=Integer.parseInt(input);\r\n input=br.readLine();\r\n String[] values=input.split(\" \");\r\n int ints[]=genArray(values);\r\n printArray(ints);\r\n }\r\n catch(Exception e){\r\n \r\n }\r\n }", "public static int[] getArr(){\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter five random numbers to place in array: \");\n String input = sc.nextLine();\n String[] stringArr = input.split(\" \");\n int maxSize = 5;\n //final int SIZE = stringArr.length;\n int[] intArr = new int[maxSize];\n\n //populate array in sequence//\n for (int i = 0; i < maxSize; i++){\n intArr[i] = Integer.parseInt(stringArr[i]);\n }\n sc.close();\n return intArr;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Entre com a sequência\");\n String string = input.next();\n int x[] = toArray(string);\n printArray(x);\n v(x);\n }", "public static int[] populateArray(int [] array) {\n int userInput;\n System.out.println(\"Enter 10 integers: \");\n for(int i = 0; i < array.length; i++){\n Scanner input = new Scanner(System.in);\n userInput = CheckInput.getInt();\n array[i] = userInput;\n }\n return array;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n int n = scanner.nextInt();\n int[] A = new int[n];\n for (int i = 0; i < n; i++) {\n A[i] = scanner.nextInt();\n }\n System.out.println(count(A, n));\n }\n }", "public static void main(String[] args) {\n\t\tScanner s= new Scanner(System.in);\n\t\tint a[]= new int[6];\n\t\tSystem.out.print(\"Enter number\");\n\t\tfor(int i=0; i<a.length; i=i+1)\n\t\t{\n\t\t\t\n\t\t\ta[i]=s.nextInt();\n\t\t\t\n\t\t}\n\t\t\n\t\tint sum=0;\n\t\n\t\t\n\t\tfor(int i=0; i<a.length; i=i+1)\n\t\t{\n\t\t\t\n\t\t\tsum=sum+a[i];\n\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"addition is \" +sum);\n\t}", "public static void main(String[] args) {\n\t\tint i;\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter number of elements:\");\n\t\tint size=sc.nextInt();\n\t\tSystem.out.println(size);\n\t\tint[] a=new int[size];\n\t\tfor(i=0;i<a.length;i++)\n\t\t{\n\t\t\tSystem.out.println(\"Please enter next element:\");\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tScannerArrayProblem4 arrayproblem4 = new ScannerArrayProblem4();\n\t\tarrayproblem4.findlargestsmallest(a);\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int s = in.nextInt();\n int[] ar = new int[s];\n for(int i=0;i<s;i++){\n ar[i]=in.nextInt();\n }\n// insertIntoSorted(ar);\n// insertionSortPart2(ar);\n System.out.println(countShifts(ar));\n }", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint size = scanner.nextInt();\n\t\tint arr[] = new int[size];\n\t\tfor(int i=0;i<size;i++)\n\t\t\tarr[i] = scanner.nextInt();\n\t\tinsertionSort(arr);\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int s = in.nextInt();\n int[] ar = new int[s];\n for(int i=0;i<s;i++){\n ar[i]=in.nextInt();\n }\n insertionSortPart2(ar);\n\n }", "public static void main(String[] args) {\r\n\t\tScanner scnr = new Scanner(System.in);\r\n\t\tint element = scnr.nextInt();\r\n\t\tint[] Myarr = new int[element];\r\n\t\tfor (int i = 0; i<element;i++) {\r\n\t\t\tMyarr[i] = scnr.nextInt();\r\n\t\t\t}\r\n\t\tsortArray(Myarr,element);\r\n\t\tfor (int each: Myarr){\r\n\t\t System.out.print(each+\" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "private static int[] getInputs(int n) {\n Scanner s = new Scanner(System.in);\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n System.out.print(i + \". element: \");\n arr[i] = s.nextInt();\n }\n // after inputing n elements, close the scanner\n s.close();\n return arr;\n }", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter size of array: \");\n\t\tint[] numbers = new int[input.nextInt()];\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\tSystem.out.println(\"Please enter number\");\n\t\t\tnumbers[i] = input.nextInt();\n\t\t}\n\t\tSystem.out.println(\"Please enter size of sub array: \");\n\t\tint[][] result = partitionArray(numbers, input.nextInt());\n\t\tSystem.out.println(Arrays.deepToString(result));\n\t}", "public static void main(String[] args) {\n\t\tint arraySize;\n\t\tscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the no of elements you want to read for Array:\");\n\t\tarraySize = scanner.nextInt();\n\t\tif(arraySize == 0) {\n\t\t\tSystem.out.println(\"You can't Read elements as Array Size is 0\");\n\t\t}else {\n\t\t\tnoArray = new int[arraySize];\n\t\t\tgetArrayElements();\n\t\t\tRemoveDuplicate();\n\t\t\tdisplayArrayElements();\n\t\t}\n\t\tscanner.close();\n\t}", "public static Integer[] acceptIntegerArrayFromUser(String[] args) {\n\n\t\tInteger[] array = null;\n\t\tScanner in = null;\n\t\ttry {\n\t\t\tif (args.length > 0) {\n\t\t\t\tarray = readInputArrayFromFile(array, args[0]);\n\t\t\t}\n\t\t\tif (array == null || array.length == 0) {\n\t\t\t\tarray = readInputFromUser(in);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (in != null) {\n\t\t\t\tin.close();\n\t\t\t}\n\t\t}\n\t\treturn array;\n\n\t}", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter array size and elements :\");\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tarr[i] = sc.nextInt();\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t}\n\t\tSystem.out.println(\"Min is :\" + min);\n\t\tSystem.out.println(\"Max is :\" + max);\n\t\tsc.close();\n\t}", "public static void main(String[] args) {\n Scanner kb=new Scanner(System.in);\n System.out.println(\"Enter the number of elements in array\");\n int n=kb.nextInt();\n int arr[]=new int[n];\n for(int i=0;i<n;i++)\n {\n System.out.println(\"Enter the number\");\n arr[i]=kb.nextInt();\n \n }\n \n System.out.println(\"Enter the amount of rotation\");\n int rotation= kb.nextInt();\n for(int i=rotation;i<n;i++)\n {\n System.out.println(arr[i]);\n }\n for(int i=0;i<rotation;i++)\n {\n System.out.println(arr[i]);\n }\n \n \n \n \n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\tSystem.out.println(\"Enter Number of Elelment in Array: \");\r\n\t\tint sizearr=Integer.parseInt(br.readLine());\r\n\t\t\r\n\t\tSystem.out.println(sizearr);\r\n\t\tSystem.out.println(\"Enter Number : \");\r\n\t\tint num=Integer.parseInt(br.readLine());\r\n\t\tSystem.out.println(\"Enter Number in Array : \");\r\n\t\tint arr []=new int[sizearr];\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i]=Integer.parseInt(br.readLine());\r\n\t\t}\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tif(arr[i]== num) {\r\n\t\t\t\tSystem.out.println(\"index\"+i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n\n for(int i = 0; i < n; i++)\n arr[i] = sc.nextInt();\n\n System.out.println(maxOfArray(arr,0));\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int N,i,k;\n System.out.println(\"enter array size\");\n N=sc.nextInt();\n int A[]=new int[N];\n System.out.println(\"enter array elements\");\n for(i=0;i<N;i++) {\n A[i]=sc.nextInt();\n }\n Arrays.sort(A);\n System.out.println(\"enter k\");\n k=sc.nextInt();\n System.out.println(\"kth smallest element is\"+A[k-1]);\n\t}", "public static void main(String[] args) {\n\t\tScanner kb = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Input the length of the array: \");\r\n\t\tint n = kb.nextInt();\r\n\t\tint A[] = new int[n],index = 0;\r\n\t\tboolean check = false;\r\n\t\tfor (int i = 0;i < n;i++) \r\n\t\t\t{\r\n\t\t\t\tA[i] = kb.nextInt();\r\n\t\t\t\tif ((A[i] == 10) && (!check)) index = i;\r\n\t\t\t}\r\n\t\tint B[] = Arrays.copyOf(A, index);\r\n\t\tSystem.out.println(Arrays.toString(B));\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[][]=new int[n][n];\n\t\tfor(int i=0;i<n;i++)\n\t\t\tfor(int j=0;j<n;j++)\n\t\t a[i][j]=s.nextInt();\n\t\t\n\t\ts.close();\n\t\t\n\t\trotate(a);\n\n\t}", "public static void main(String args[])\n {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int[] arr = new int[n];\n for(int i = 0;i<n;++i)\n {\n arr[i] = in.nextInt();\n }\n System.out.println(LIS(arr));\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Ingrese la opción deseard: \");\n\t\tScanner teclado = new Scanner(System.in);\n\t\tint vector [] = {11,8,33,14,5 };\n\t\tint elementoABuscar = teclado.nextInt();\n\t\tint posicion = 0;\n\t}", "@Test\n\tpublic void one()\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"enter the value of a\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"value of a is: \" +a);\n\t}", "public static void main(String[] args) {\nint[] array; //int array [];\r\narray=new int [4];\r\narray[0]=3;\r\narray[1]=332;\r\narray[2]=37;\r\narray[3]=45;\r\n//array[4]=2;\r\nSystem.out.println(\"2nd element:\"+array[1]);\r\nint [] arr;\r\narr=new int[4];\r\nfor(int i=0;i<array.length;i++)\r\n{\r\narr[i]=Integer.parseInt(args[i]);\r\n\r\n\r\nSystem.out.println(\" element:\"+arr[i]);\r\n}\r\n/*for(int var:arr)// enhanced for loop\r\n{\r\n\tSystem.out.println(var);\r\n}*/\r\n\t}", "public void takeInput() {\n Scanner sc = new Scanner(System.in);\n int polynomial[];\n System.out.println(\"Enter no. of inputs:\");\n int n = sc.nextInt();\n System.out.println(\"Enter polynomial coefficients:\\n(0 if no coefficient is present)\");\n polynomial = new int[n];\n System.out.println(\"Enter data: \");\n \n for (int i = 0; i < n; i++) {\n polynomial[i] = sc.nextInt();\n }\n \n setPolynomialCoefficientArray(polynomial);\n }", "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 static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString arr[]= {\"2\",\"22\",\"222\",\"3\",\"33\",\"333\",\"4\",\"44\",\"444\",\"5\",\"55\",\"555\",\"6\",\"66\",\"666\",\"7\",\"77\",\"777\",\"7777\",\"8\",\"88\",\"888\",\"9\",\"99\",\"999\",\"9999\"};\r\n\t\tString input=sc.next();\r\n\t\tSystem.out.println(printsequence(arr,input));\r\n\r\n}", "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\r\n System.out.println(\"Introduzca un entero: \");\r\n int a = scn.nextInt();\r\n System.out.println(\"El numero introducido es el: \" + a);\r\n String b = scn.nextLine();\r\n System.out.println(b);\r\n String c = scn.next();\r\n System.out.println(c);\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter size of string array\");\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tn=sc.nextInt();\r\n\t\tarr= new String[n];\r\n\t\tSystem.out.println(\"Enter elements of string array\");\r\n\t\t\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tarr[i]=sc.next();\r\n\t\t}\r\n\t\t\r\n\t\tSearchArray s=new SearchArray();\r\n\t\ts.search_array();\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint n=sc.nextInt();\r\n\t\tInteger[] a=new Integer[n];\r\n\t\tfor(int i=0;i<n;i++) {\r\n\t\t\ta[i]=sc.nextInt();\r\n\t\t}\r\n\t\tsecondsmallest(a);\r\n\t}", "public static void main(String[] args) {\r\n\t\tScanner sc =new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the total number of elements in an array\");\r\n\t\tint num=sc.nextInt();\r\n\t\tint arr[]=new int[num];\r\n\t\tfor(int i=0;i<num;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"enter \"+(i+1)+\"st element\");\r\n\t\t\tarr[i]=sc.nextInt();\r\n\t\t}\r\n\t\tint max = arr[0]; \r\n\t\t for (int i = 0; i < num; i++) { \r\n\t if(arr[i] > max) \r\n\t max = arr[i]; \r\n\t } \r\n\t\t System.out.println(\"Largest element present in given array: \" + max); \r\n\t\t int min = arr[0]; \r\n\t\t for (int i = 0; i < min; i++) { \r\n\t\t if(arr[i] < min) \r\n\t\t min = arr[i]; \r\n\t\t } \r\n\t\t System.out.println(\"Smallest element present in given array: \" + min); \r\n\t\t }", "public int[] getArray(int n){\r\n\t\tint[] array = new int[n];\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tarray[i] = sc.nextInt();\r\n\t\t\tif(array[i] < 0){\r\n\t\t\t\tSystem.out.print(\"Negative number is invalid, enter the number again\");\r\n\t\t\t\tarray[i] = sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\tsc.close();\r\n\t\treturn array;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tint n=ob.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\ta[i]=ob.nextInt();\n\t\t}\n\t\tselectionRecursive(a,0);\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tSystem.out.println(a[i]);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n Scanner scn=new Scanner(System.in);\n int size=scn.nextInt();\n int arr[]=new int[size];\n for(int i=0;i<size;i++)\n arr[i]=scn.nextInt();\n \n int x=scn.nextInt();\n //System.out.println(firstIndex(arr,0,x));\n System.out.println(firstIndexpre(arr,0,x));\n }", "public static void main (String [] args) {\n Scanner input = new Scanner(System.in);\r\n\r\n // Read in the array size\r\n System.err.println(\"How many numbers are there?\");\r\n int size = input.nextInt();\r\n\r\n // Read in the array elements\r\n System.err.println(\"Enter the numbers:\");\r\n int [] numbers = new int [size];\r\n for (int index = 0; index < size; index++) {\r\n numbers[index] = input.nextInt();\r\n }\r\n\r\n // TODO: Sort the array using Bubble Sort\r\n \r\n\r\n // Print out the sorted array\r\n System.err.println(\"Sorted Array:\");\r\n System.out.println(Arrays.toString(numbers));\r\n }", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please input the length of the array.\");\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\t\tint [] array = new int[num];\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tfor (i = 0; i < array.length; i++){\n\t\t\tSystem.out.println(\"Please input value for element \" +(i +1));\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint [] array2 = new int[num];\n\t\t\n\t\tfor (int j = 0; j < array.length; j++){\n\t\t\tarray2[(num - 1) - j] = array[j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"These are the contents of your array: \");\n\t\tfor (int k = 0; k < array.length; k++){\n\t\t\tSystem.out.print(array[k]);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"And these are the contents of your second array: \");\n\t\tfor (int l = 0; l < array2.length; l++){\n\t\t\tSystem.out.print(array2[l]);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint ar[]=new int[6],max=0;\n\t\t\n\t\tfor(int i=0;i<6;i++)\n\t{\tSystem.out.println(\"enter the elements to be iserted !\");\n\t\tar[i]=sc.nextInt();\n\t\t\n\t\n\t\tif(ar[i]>max)\n\t\n\t\tmax=ar[i];\t\n\t}\n\t\tSystem.out.println(max);\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int elem = scanner.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n while (scanner.hasNextInt()) {\n list.add(scanner.nextInt());\n }\n int[] array = new int[list.size()];\n for (int i = 0; i < array.length; i++) {\n array[i] = list.get(i);\n }\n System.out.println(binarySearch(array,elem));\n }", "public static void main(String[] args) {\n\t\tint[] a;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint k=sc.nextInt();\n\t\t\n\t\tif(k<0){\n\t\t\tSystem.out.println(\"Not Possible\");\n\t\t}else{\n\t\t\ta=new int[k];\n\t\t\tfor(int i=0;i<a.length;i++){\n\t\t\t\ta[i]=(int)Math.random();\n\t\t\t\t//a[i]=i*10+i;\n\t\t\t\tSystem.out.println(a[i]);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint[] arr = new int[5];\n\t\tint a = 0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t\ta += arr[i] * arr[i];\n\t\t}\n\n\t\ta = a % 10;\n\t\tSystem.out.println(a);\n\t}", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n, temp;\n\t\tSystem.out.println(\"Enter the number of elements in an array\");\n\t\tn = s.nextInt();\n\t\tSystem.out.println(\"Enter the elements of an array\");\n\t\tint a[] = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int j = i+1; j < n; j++) {\n\t\t\t\tif(a[i]<a[j]) {\n\t\t\t\t\ttemp = a[i];\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.print(a[i]+ \"\");\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner in = new Scanner (System.in);\r\n\t\tint n =in.nextInt();\r\n\t\tint a []=new int [n];\r\n\t\t\r\n\t\tfor (int i = 0;i <n ;i++) {\r\n\t\t\ta[i]=in.nextInt();\r\n\t\t}\r\n\t\tinsertionSort1(n, a);\r\n\t\t\r\n\t}", "public int arrayL() {\n int[] arrL = {1, 2, 3, 4, 5};\n Scanner scanL = new Scanner(System.in);\n int l = scanL.nextInt();\n try {\n System.out.println(arrL[scanL.nextInt()]);\n } catch (ArrayIndexOutOfBoundsException exception) {\n System.out.println(\"Inside catch, number too large\");\n }\n return arrL[l];\n }", "public static int[] converter(String[] a){\n int size = a.length;\n int[] integers = new int[size];\n for (int i = 0; i < size; i++) {\n integers[i] = Integer.parseInt(a[i]);\n }\n return integers;\n }", "public static void main(String[] args) {\n\r\n\t Scanner sc1= new Scanner(System.in);\r\n\t \r\n\t int i, size;\r\n\t \r\n\t System.out.println(\"Enter size of Array: \");\r\n\t size = sc1.nextInt();\r\n\t \r\n\t String[] arr= new String[size];\r\n\t \r\n\t System.out.println(\"Enter String elements of array: \");\r\n\t \r\n\t for(i=0;i<arr.length;i++)\r\n\t {\r\n\t\t arr[i]= sc1.next();\r\n\t\t \r\n\t }\r\n\t \r\n\t \r\n\t System.out.println(\"Display of String elements: \");\r\n\t \r\n\t for(i=0;i<arr.length;i++)\r\n\t {\r\n\t\t \r\n\t\t System.out.println(arr[i].toUpperCase());\r\n\t }\r\n\t \r\n\t\r\n\t\r\n\t\r\n\t}", "public static void main(String[] args) throws NumberFormatException, IOException \n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.println(\"enter the the size of array :\");\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint[] arr=new int[n];\n\t\tSystem.out.println(\"enter the elements in array \");\n\t\tfor(int i=0;i<arr.length;i++)\n\t\t{\n\t\t\tarr[i]=Integer.parseInt(br.readLine()); \n\t\t}\n\t\t//largestfs(arr);\n\t\tsmallestfs(arr);\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\ttry (Scanner in = new Scanner(System.in)) {\n\t\t\t// The first line of input contains the size of the array, n.\n\t\t\tint n = in.nextInt();\n\t\t\t// The second line contains n space-separated integers, the of which\n\t\t\t// contains .\n\t\t\tint[] A = new int[n];\n\t\t\tfor (int A_i = 0; A_i < n; A_i++) {\n\t\t\t\tA[A_i] = in.nextInt();\n\t\t\t}\n\n\t\t\tint result = smallestSizeSubsequence(n, A);\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t}", "public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int a[] = new int[n];\n for( int i = 0; i < n; i++ ){\n a[i] = scn.nextInt();\n }\n int d = scn.nextInt();\n for( int i = 0; i < n; i++){\n if( a[i] == d ){\n System.out.print(i);\n return;\n }\n }\n System.out.println(\"-1\");\n }", "public static int getInput() {\n Scanner in = new Scanner(System.in);\n\n return in.nextInt();\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.print(ArrayChallenge(new int[] { 5, 10, 15 }));\n\t}", "public static void main(String[] args) {\r\n Scanner s = new Scanner(System.in);\r\n int length = Integer.parseInt(s.nextLine());\r\n int[] arr = new int[length];\r\n for (int i=0; i<length; i++)\r\n {\r\n arr[i] = s.nextInt();\r\n }\r\n quickSort(arr, 0, length-1);\r\n// printArray(arr);\r\n }", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint num = scn.nextInt();\r\n\t\tint [] arr = new int[num];\r\n\t\tfor(int i = 0; i< num; i++)\r\n\t\t{\r\n\t\t\tarr[i] = scn.nextInt();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i< arr.length; i++)\r\n\t\t{\r\n\t\t\tfor(int k = i+1; k< arr.length; k++)\r\n\t\t\t{\r\n\t\t\t\tif(arr[i]== arr[k])\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(arr[k]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n\n int []a=new int[x];\n\n for(int i=0;i<x;i++)\n {\n a[i]=sc.nextInt();\n }\n\n sort(a);\n\n for(int i=0;i<x;i++)\n {\n System.out.print(a[i]);\n System.out.print(\" \");\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"enter the size of array\");\r\n\t\tScanner console = new Scanner(System.in);\r\n\t\tint n = console.nextInt();\r\n\t\tint arr[] = new int[n];\r\n\t\tfor (int x = 0; x < arr.length; x++) {\r\n\t\t\tSystem.out.println(\"Enter the value to be inserted into array\");\r\n\t\t\tarr[x] = console.nextInt();\r\n\t\t}\r\n\t\tconsole.close();\r\n\t\tfor(int i=0;i<n-1;i++){\r\n\t\t\tint min=i;\r\n\t\t\tfor(int j=i+1;j<n;j++){\r\n\t\t\t\tif (arr[j]<arr[min])\r\n\t\t\t\t{\r\n\t\t\t\t\tmin=j;\r\n\t\t\t\t\tint temp=arr[min];\r\n\t\t\t\t\tarr[min]=arr[i];\r\n\t\t\t\t\tarr[i]=temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int x:arr){\r\n\t\t\tSystem.out.print(x+\" \");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner kb = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Input the length of the array: \");\r\n\t\tint n = kb.nextInt();\r\n\t\tint A[] = new int[n];\r\n\t\tfor (int i = 0;i < n;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"A[\"+i+\"] = \");\r\n\t\t\tA[i] = kb.nextInt();\r\n\t\t}\r\n\t\tint Max = A[0], Min = A[0];\r\n\t\tfor (int i = 0;i < n;i++)\r\n\t\t{\r\n\t\t\tMax = (A[i] > Max)?A[i]:Max;\r\n\t\t\tMin = (A[i] < Min)?A[i]:Min;\r\n\t\t}\r\n\t\tSystem.out.println(\"Max = \"+Max);\r\n\t\tSystem.out.println(\"Min = \"+Min);\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n System.out.println(\"enter the max students\"); \n int len=sc.nextInt(); \n String[] students=new String[len]; \n System.out.println(\"enter the students\");\n for(int i=0;i<len;i++)\n {\n students[i]=sc.next();\n }\n for(String tem:students){\n \tSystem.out.println(tem);\n }\n sc.close();\n\t}", "public static void main(String[] args) throws Exception {\n int arreglo[] = new int [3];\n String nombres[] = new String[5];\n Scanner nom = new Scanner(System.in);\n arreglo[1] = 1;\n nombres[2] = \"Mau\";\n System.out.println(arreglo[1] + nombres[2]);\n\n for (int i = 0; i < 5; i++){\n System.out.println(\"Escribe tu nombre: \");\n nombres[i] = nom.nextLine();\n System.out.println(nombres[i]);\n }\n }", "int[] parseIntArray(String[] ar)\n {\n int[] int_ar = new int[ar.length];\n for (int i = 0; i < int_ar.length; i++)\n {\n int_ar[i] = Integer.parseInt(ar[i]);\n }\n return int_ar;\n }", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint ar[] = new int[size];\n\t\tfor (int i = 0; i < size; i++)\n\t\t\tar[i] = sc.nextInt();\n\t\tSystem.out.println(quicksort(ar));\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint k;\n\t\tScanner ob1=new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"enter array's size: \");\n\t\tint n=ob1.nextInt();\n\t\tint[] array=new int[n];\n\t\tSystem.out.println(\"enter array's elements: \");\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarray[i]=ob1.nextInt();\n\t\t\t\n\t\t\t\n\t\t}\n\t//\tSystem.out.println(array);\n\t\t\n\t\tint min_number=notCountains(array);\n\t\tSystem.out.println(\"min number is \"+min_number);\n\t\t\n\t\t\n\n\t}", "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 void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] arr = line.split(\" \");\n\n\t\tint a = Integer.valueOf(sc.nextLine());\n\t\tint b = Integer.valueOf(sc.nextLine());\n\t\tint c = Integer.valueOf(sc.nextLine());\n\n\t\tSystem.out.println(getVal(arr, a));\n\t\tSystem.out.println(getVal(arr, b));\n\t\tSystem.out.println(getVal(arr, c));\n\t}", "public static void main(String[] args) {\n\t\t\tint arr[];\n\t\t\tint i;\n\t\t\tint t;\n\t\t\t\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tSystem.out.println(\"Enter the array size:\");\n\t\t\tt= sc.nextInt();\n\n\t\t\tarr=new int [t];\n\t\t\t\n\t\t\tSystem.out.println(\"Enter \"+ t +\" numbers:\");\n\t\t\tfor(i=0;i<t;i++) {\n\t\t\t\t\n\t\t\t\tarr[i]= sc.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Array==\"+Arrays.toString(arr));\n\t\t\tArrays.sort(arr);\n\t\t\t\n\t\t\tSystem.out.println(\"Sorted Array==\"+Arrays.toString(arr));\n\n\t\t\tSystem.out.println(\"Max Number in array is=\"+(arr[t-1]));\n\n\t\t\tSystem.out.println(\"Second Max Number in array is=\"+(arr[t-2]));\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the size of the array\");\n\t\tint lenght = sc.nextInt();\n\t\tint [] myArray = new int[lenght];\n\t\tSystem.out.println(\"Enter the numbers of the array\");\n\t\tfor(int i=0; i<myArray.length; i++) {\n\t\t\tmyArray[i] = sc.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i=0; i<myArray.length; i++) {\n\t\t\tif(i %2 !=0) {\n\t\t\t\tsum += myArray[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}", "public static int [] getIntegers(int number) {\n\t\tScanner scanner =new Scanner(System.in);\n\t\tSystem.out.println(\"Enter \" +number+ \"integer value\");\n\t\tint[]values= new int[number];\n\t\tfor(int i=0; i<number; i++) {\n\tvalues[i]=scanner.nextInt();\t\n\t}\n\t\treturn values;\n\t}" ]
[ "0.83395183", "0.7975309", "0.7357023", "0.73482496", "0.734559", "0.7265019", "0.7177918", "0.71449894", "0.7104637", "0.70974433", "0.70575863", "0.69732267", "0.69663304", "0.68907106", "0.6850942", "0.6824482", "0.6794046", "0.6762701", "0.67397726", "0.67388606", "0.67285985", "0.66996455", "0.6652889", "0.6617096", "0.66160184", "0.6603035", "0.65910685", "0.6580582", "0.65482444", "0.6543212", "0.65354365", "0.65297985", "0.6520139", "0.6517513", "0.65047586", "0.6488917", "0.6472184", "0.64428943", "0.64196354", "0.6400247", "0.63832873", "0.63606966", "0.6359412", "0.63556165", "0.63500065", "0.6343791", "0.63003284", "0.627728", "0.62656987", "0.62246734", "0.62182945", "0.6213635", "0.62078863", "0.6202565", "0.619102", "0.61613303", "0.6159017", "0.6153053", "0.6151469", "0.6146279", "0.6123959", "0.61192805", "0.6117865", "0.61172765", "0.61118925", "0.61042565", "0.6102828", "0.6102304", "0.61002374", "0.6098211", "0.60910934", "0.60905194", "0.6067989", "0.6063094", "0.6056093", "0.60530704", "0.60455596", "0.6036526", "0.60328406", "0.60299194", "0.60227746", "0.60202503", "0.6019993", "0.60183465", "0.6010844", "0.6004946", "0.59915835", "0.5989003", "0.5985286", "0.5978259", "0.59728044", "0.5967598", "0.5965993", "0.5965797", "0.5963287", "0.5956053", "0.5955991", "0.595379", "0.593897", "0.5932898", "0.5932726" ]
0.0
-1
Interface redefining the same public non final methods as Object
private static interface WithObjectOverrides { public boolean equals(Object obj); public int hashCode(); public String toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void m21805a(Object obj);", "private static interface WithoutObjectOverrides {\n\n public boolean equals();\n\n public long hashCode(Object obj);\n\n public void toString(long foo);\n }", "void m21807c(Object obj);", "void m21809e(Object obj);", "void m21806b(Object obj);", "void m21808d(Object obj);", "default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }", "public abstract void mo1184a(Object obj);", "public abstract Object mo26777y();", "void mo67921a(Object obj);", "void mo3207a(Object obj);", "public abstract Object mo1771a();", "void mo6504by(Object obj);", "public abstract Object getUnderlyingObject();", "public interface BaseObject {\n}", "public abstract String mo83558a(Object obj);", "protected abstract Object transform(Object o);", "public abstract Object mo1185b();", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "public interface StandaloneObject {\n // marker\n}", "public interface C9067a {\n /* renamed from: a */\n void mo23497a(MediaSource mediaSource, Timeline timeline, Object obj);\n }", "public Object getObject() ;", "public interface Transformation {\n public static final Object NOTHING = new Object();\n public Object transform(Object o);\n}", "public void mo1774a(Object obj) {\n }", "@Override // m.h\n public String a(Object obj) {\n return obj.toString();\n }", "public interface dkj extends Cloneable, dkl {\n /* renamed from: a */\n dkj mo4367a(dkk dkk);\n\n /* renamed from: f */\n dkk mo4508f();\n\n /* renamed from: g */\n dkk mo4509g();\n}", "ObjectRealization createObjectRealization();", "public void setupConvenienceObjects();", "public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public abstract B zzt(Object obj);", "public Object getObject();", "public interface Customizable {\n //Add method to be implemented\n boolean add(Object obj);\n\n //Remove method to be implemented\n boolean remove(Object obj);\n}", "public interface xe {\n Object a(int i, Class cls);\n\n Object a(Class cls);\n\n void a();\n\n void a(int i);\n\n void a(Object obj);\n}", "public interface brr {\n void a(Object obj);\n}", "@Override\n public void updete(Object obj) {\n\n }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public ObjectUtils() {\n super();\n }", "public interface C7292c {\n /* renamed from: a */\n <T> T mo19025a(Object obj, Class<T> cls);\n }", "public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }", "public abstract T zzs(Object obj);", "private static Object ecmascript6(Object object) {\n return object;\n }", "public final void mo64929a(Object obj) {\n }", "public interface a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\n }", "boolean mo10605a(Object obj);", "@Override\n public void setObject(Object arg0)\n {\n \n }", "interface a {\n Object a();\n\n boolean b();\n\n List<Object> c();\n}", "public static void objectDemo() {\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface Actions extends EObject\n{\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public abstract INodo copy();", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "@Override\n protected void prot() {\n }", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "public interface C22932f {\n /* renamed from: a */\n void mo59932a(String str, JSONObject jSONObject);\n}", "public interface dhd {\n InputStream a(Object obj);\n\n Object a(InputStream inputStream);\n}", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public void a(Object obj) {\n }", "public interface DescribedObject \n{ \n /** Get a description for the object\n * @return a description */\n public String getDescription(); \n \n /** Subinterface for described objects which can change the description */\n public static interface Mutable extends DescribedObject\n { \n /** Set description\n * @param _desc description. */\n public void setDescription(String _desc);\n }\n}", "@Override\n public V remove(Object obj) {\n throw new UnsupportedOperationException();\n }", "public void set( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"set(Object obj) Not implemented.\" );\n\t\t}", "public interface UpdateObject {\n public void update(Object o);\n}", "public abstract Object clone();", "private static /* synthetic */ Object m59367b(Object obj) {\n return obj;\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public interface C11316t5 extends C11259p5, Cloneable {\n /* renamed from: j0 */\n C11316t5 mo29022j0();\n}", "public interface IStringObjectConverter {\n String getString(Object object) throws HopException;\n\n Object getObject(String string) throws HopException;\n\n class None implements IStringObjectConverter {\n @Override\n public String getString(Object object) {\n throw new RuntimeException(\"This is not intended to be used\");\n }\n\n @Override\n public Object getObject(String string) {\n throw new RuntimeException(\"This is not intended to be used\");\n }\n }\n}", "interface A {\n void a();\n}", "public interface SignatureObject {\n}", "Object getBase();", "public Object obj()\n\t{\n\t\treturn object;\n\t}", "public interface IDisplayObject\n{\n /**\n * METHOD: set the IDisplayObject position along x,y,z axes\n * @param x double giving the new position along x axis.\n * @param y double giving the new position along y axis.\n * @param z double giving the new position along z axis.\n */\n void position(double x, double y, double z);\n \n /**\n * METHOD: rotate the IDisplayObject about x,y,z axes\n * @param xOrientation double giving the new orientation about x axis.\n * @param yOrientation double giving the new orientation about y axis.\n * @param zOrientation double giving the new orientation about z axis.\n */\n void orientation(double xOrientation, double yOrientation, double zOrientation);\n \n \n}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "Objet getObjetAlloue();", "private void doSomething(Object object) {\n\n }", "public interface IJSCmdBase {\r\n\r\n public abstract void run();\r\n\r\n /** \\brief unMarshall\r\n * \r\n * \\details\r\n *\r\n * \\return Object\r\n *\r\n * @param pobjFile\r\n * @return */\r\n public abstract Object unMarshal(File pobjFile); // private Object\r\n // unMarshall\r\n\r\n /** \\brief marshal\r\n * \r\n * \\details\r\n *\r\n * \\return Object\r\n *\r\n * @param objO\r\n * @param objF */\r\n public abstract Object marshal(Object objO, File objF); // private\r\n // SchedulerObjectFactoryOptions\r\n // marshal\r\n\r\n public abstract String toXMLString(Object objO); // private\r\n // SchedulerObjectFactoryOptions\r\n // marshal\r\n\r\n public abstract String toXMLString(); // private\r\n // SchedulerObjectFactoryOptions\r\n // marshal\r\n\r\n}", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "@Override\n protected Object replaceObject(Object obj) throws IOException{\n\treturn d.defaultReplaceObject(obj);\n }", "public interface IExchangeableByJSON {\r\n\r\n\t/**\r\n\t * Function called when we want to convert the object to a JSON string.\r\n\t * \r\n\t * @return\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic String toJSON() throws JSONException;\r\n\r\n\r\n\t/**\r\n\t * Function called when we want to fill the object from its JSON\r\n\t * representation string.\r\n\t * \r\n\t * @param json\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic void fromJSON(String json) throws JSONException;\r\n\r\n}", "public interface Exposable\n{\n}", "Object create(Object source);", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public interface C11922a {\n void bvR();\n }", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "protected abstract void action(Object obj);", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public interface HealingObject {}" ]
[ "0.67904377", "0.67553854", "0.6691857", "0.66467434", "0.6584002", "0.6559287", "0.65508175", "0.65447235", "0.6507126", "0.6489615", "0.6407098", "0.6399558", "0.6253281", "0.6174729", "0.6146381", "0.61116475", "0.60544914", "0.6033562", "0.6000238", "0.5983345", "0.5977631", "0.5976172", "0.5968039", "0.5948779", "0.5920634", "0.5890087", "0.58878624", "0.58673793", "0.58562165", "0.5835017", "0.5835017", "0.5835017", "0.5835017", "0.58304477", "0.58265144", "0.580771", "0.5803055", "0.57999057", "0.57882315", "0.57739824", "0.5759586", "0.57551116", "0.57448345", "0.5742455", "0.57404584", "0.573405", "0.57250756", "0.57202506", "0.5702928", "0.5700077", "0.5697791", "0.5688663", "0.56718767", "0.5664714", "0.56590873", "0.5654366", "0.5652501", "0.5643674", "0.5633653", "0.56236154", "0.5608014", "0.55981714", "0.55963755", "0.5595005", "0.5594552", "0.5586646", "0.55795246", "0.5568557", "0.556416", "0.5561598", "0.5561589", "0.5559027", "0.55556744", "0.5536598", "0.5536016", "0.553377", "0.5532303", "0.55318725", "0.55317533", "0.55294174", "0.552497", "0.55217874", "0.55198956", "0.5516278", "0.55141324", "0.55138874", "0.5513815", "0.55126315", "0.55081534", "0.55031204", "0.5502966", "0.5499554", "0.5491215", "0.5485454", "0.5482092", "0.5476977", "0.5476515", "0.5476391", "0.54761684", "0.54753834" ]
0.65419674
8
Interface redefining similar methods than Object
private static interface WithoutObjectOverrides { public boolean equals(); public long hashCode(Object obj); public void toString(long foo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static interface WithObjectOverrides {\n\n public boolean equals(Object obj);\n\n public int hashCode();\n\n public String toString();\n }", "void m21805a(Object obj);", "void m21807c(Object obj);", "void m21809e(Object obj);", "void m21806b(Object obj);", "void mo67921a(Object obj);", "void m21808d(Object obj);", "public abstract void mo1184a(Object obj);", "default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }", "public interface xe {\n Object a(int i, Class cls);\n\n Object a(Class cls);\n\n void a();\n\n void a(int i);\n\n void a(Object obj);\n}", "public interface Customizable {\n //Add method to be implemented\n boolean add(Object obj);\n\n //Remove method to be implemented\n boolean remove(Object obj);\n}", "void mo3207a(Object obj);", "public interface a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\n }", "public abstract Object mo1771a();", "public abstract Object getUnderlyingObject();", "void mo6504by(Object obj);", "public abstract Object mo26777y();", "public interface BaseObject {\n}", "interface a {\n Object a();\n\n boolean b();\n\n List<Object> c();\n}", "protected abstract Object transform(Object o);", "public interface Customizable {\n\n /**\n * This method adds based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is added successfully, otherwise false\n */\n boolean add(Object obj);\n\n /**\n * This method removes based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is removed successfully, otherwise false\n */\n boolean remove(Object obj);\n}", "public interface C9067a {\n /* renamed from: a */\n void mo23497a(MediaSource mediaSource, Timeline timeline, Object obj);\n }", "public abstract String mo83558a(Object obj);", "public interface C7292c {\n /* renamed from: a */\n <T> T mo19025a(Object obj, Class<T> cls);\n }", "ObjectRealization createObjectRealization();", "public interface brr {\n void a(Object obj);\n}", "public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}", "public interface UpdateObject {\n public void update(Object o);\n}", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "@Override // m.h\n public String a(Object obj) {\n return obj.toString();\n }", "public void setupConvenienceObjects();", "public Object getObject() ;", "public interface dhd {\n InputStream a(Object obj);\n\n Object a(InputStream inputStream);\n}", "public interface dkj extends Cloneable, dkl {\n /* renamed from: a */\n dkj mo4367a(dkk dkk);\n\n /* renamed from: f */\n dkk mo4508f();\n\n /* renamed from: g */\n dkk mo4509g();\n}", "public void mo1774a(Object obj) {\n }", "public Object getObject();", "public interface DescribedObject \n{ \n /** Get a description for the object\n * @return a description */\n public String getDescription(); \n \n /** Subinterface for described objects which can change the description */\n public static interface Mutable extends DescribedObject\n { \n /** Set description\n * @param _desc description. */\n public void setDescription(String _desc);\n }\n}", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public interface Extendable {\n void extend();\n}", "public interface IExchangeableByJSON {\r\n\r\n\t/**\r\n\t * Function called when we want to convert the object to a JSON string.\r\n\t * \r\n\t * @return\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic String toJSON() throws JSONException;\r\n\r\n\r\n\t/**\r\n\t * Function called when we want to fill the object from its JSON\r\n\t * representation string.\r\n\t * \r\n\t * @param json\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic void fromJSON(String json) throws JSONException;\r\n\r\n}", "public abstract Object mo1185b();", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "public interface IDisplayObject\n{\n /**\n * METHOD: set the IDisplayObject position along x,y,z axes\n * @param x double giving the new position along x axis.\n * @param y double giving the new position along y axis.\n * @param z double giving the new position along z axis.\n */\n void position(double x, double y, double z);\n \n /**\n * METHOD: rotate the IDisplayObject about x,y,z axes\n * @param xOrientation double giving the new orientation about x axis.\n * @param yOrientation double giving the new orientation about y axis.\n * @param zOrientation double giving the new orientation about z axis.\n */\n void orientation(double xOrientation, double yOrientation, double zOrientation);\n \n \n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface ObjectInfoService {\n\n ObjectInfo getSubObjectInfo(SubObjectInfoPo subObjectInfoPo);\n\n int fixObject(SubObjectInfoPo objectInfoPo);\n}", "public interface Actions extends EObject\n{\n}", "@Override\n public void updete(Object obj) {\n\n }", "public interface InterfaceReplacement {\n\n /** The ever present clone method\n */\n public Object clone(); \n\n /** This method will insert the given individual into the population\n * by replacing a individual either from the population or the given\n * subset\n * @param indy The individual to insert\n * @param pop The population\n * @param sub The subset\n */\n public void insertIndividual(AbstractEAIndividual indy, Population pop, Population sub);\n}", "boolean mo10605a(Object obj);", "public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }", "interface a {\n int aadd();\n int sub();\n}", "public abstract B zzt(Object obj);", "public interface GeometricalObjectVisitor {\n\n\t/**\n\t * Visits the given line.\n\t * \n\t * @param line\n\t * to visit\n\t */\n\tpublic abstract void visit(Line line);\n\n\t/**\n\t * Visits the given circle.\n\t * \n\t * @param circle\n\t * to visit\n\t */\n\tpublic abstract void visit(Circle circle);\n\n\t/**\n\t * Visits the given filled circle.\n\t * \n\t * @param filledCircle\n\t * to visit\n\t */\n\tpublic abstract void visit(FilledCircle filledCircle);\n\n\tpublic abstract void visit(FilledPolygon filledPolygon);\n}", "public interface IStringObjectConverter {\n String getString(Object object) throws HopException;\n\n Object getObject(String string) throws HopException;\n\n class None implements IStringObjectConverter {\n @Override\n public String getString(Object object) {\n throw new RuntimeException(\"This is not intended to be used\");\n }\n\n @Override\n public Object getObject(String string) {\n throw new RuntimeException(\"This is not intended to be used\");\n }\n }\n}", "public abstract T zzs(Object obj);", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "public interface DistanceTo{\r\n\r\n\t/** Computes the distance between this object and the given object.\r\n\t * @param object to calculate distance to\r\n\t * @return returns the distance between this object and the given one*/\r\n\t\r\n\tpublic abstract double distanceTo (Object object);\r\n}", "Object getBase();", "public void a(Object obj) {\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface IRange extends EObject\n{\n}", "public interface i {\n int a();\n\n boolean b();\n\n void c();\n}", "public interface ObjectFilter<In, Out> {\n\n\t/**\n\t * Return an object of <code>Out</code> type initialized with the specified <code>In</code> object. \n\t * This object is displayed or is given to the next ObjectFilter of the chain. \n\t * @param value the specified object\n\t * @return an object of <code>Out</code> type or <code>null</code> (in this case, the filter chains ends) \n\t */\n public abstract Out apply(In value);\n \n}", "public interface LimiterObject extends Limiter {\n}", "public interface XMLObject {\n public XMLObject getXMLObject();\n}", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public interface Product extends Cloneable {\n\n void use(String s);\n Product createClone();\n}", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "@Override\n public void setObject(Object arg0)\n {\n \n }", "public interface Transformation {\n public static final Object NOTHING = new Object();\n public Object transform(Object o);\n}", "public interface C1061nc extends IInterface {\n /* renamed from: a */\n String mo2800a();\n\n /* renamed from: a */\n String mo2801a(String str);\n\n /* renamed from: a */\n void mo2802a(String str, boolean z);\n\n /* renamed from: a */\n boolean mo2803a(boolean z);\n}", "private static Object ecmascript6(Object object) {\n return object;\n }", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "interface A {\n void a();\n}", "interface I {}", "public static void objectDemo() {\n\t}", "public interface C22932f {\n /* renamed from: a */\n void mo59932a(String str, JSONObject jSONObject);\n}", "public interface MethodeBaseDeDonnee\n{\n public void insertion(Object object);\n public Object afficherObject(long id);\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface se {\n void a(List<POI> list);\n\n boolean a();\n\n void b();\n\n boolean c();\n\n List<POI> d();\n\n POI e();\n\n POI f();\n}", "private void doSomething(Object object) {\n\n }", "public interface Product {\n\n void methodSame();\n\n void methodDiff();\n}", "public interface SimapaCollection extends SimapaObject {\r\n}", "public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "interface HiPlus extends Hi {\n void Wow(String m);\n}", "public interface IScoreObject {\n\n /**\n * @return score of the object.\n */\n public int getScore();\n\n /**\n * Adds given value to the score of the object.\n *\n * @param score will be added to objects score.\n */\n public void addScore(int score);\n\n /**\n * Resets the score of the object, setting it to '0'.\n */\n public void resetScore();\n}", "Object create(Object source);", "public interface DrawingObject {\n\t// interface: blueprints but doesn't tell you how to do it\n\n\t/**\n\t * Draw the object.\n\t * \n\t * @param g\n\t */\n\tpublic void draw(Graphics g);\n\n\t/**\n\t * Called to start drawing a new object.\n\t * \n\t * @param p\n\t */\n\tpublic void start(Point p);\n\n\t/**\n\t * Called repeatedly while dragging a new object out to size (typically\n\t * called from within a mouseDragged() ).\n\t * \n\t * @param p\n\t */\n\tpublic void drag(Point p);\n\n\t/**\n\t * Called to move an object. Often called repeatedly inside a\n\t * mouseDragged().\n\t * \n\t * @param p\n\t */\n\tpublic void move(Point p);\n\n\t/**\n\t * Does the math to determine the number/position of points of star\n\t */\n\tpublic void doMath();\n\n\t/**\n\t * Set the bounding rectangle.\n\t * \n\t * @param b\n\t */\n\tpublic void setBounds(Rectangle b);\n\n\t/**\n\t * Determines if the point clicked is contained by the object.\n\t * \n\t * @param p\n\t * @return\n\t */\n\tpublic boolean contains(Point p);\n\n\t/**\n\t * Called to set the color of a shape\n\t */\n\tpublic void setColor(Color c);\n\n\t/**\n\t * Called to get the color of a shape\n\t * \n\t * @return\n\t */\n\tpublic Color getColor();\n}", "interface Interface{\n\tObject call(Object value);\n}", "Objet getObjetAlloue();", "public interface StandaloneObject {\n // marker\n}", "public org.python.Object __add__(org.python.Object other);", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}" ]
[ "0.68199843", "0.6666326", "0.64805025", "0.64350885", "0.6407251", "0.6389572", "0.6384142", "0.63304764", "0.6315847", "0.630101", "0.6299454", "0.6243186", "0.6231133", "0.6136135", "0.6125244", "0.61121464", "0.6079343", "0.605754", "0.6033987", "0.598942", "0.59871507", "0.5956876", "0.59490085", "0.5947092", "0.5941501", "0.5932583", "0.5928161", "0.59234875", "0.5890698", "0.5874637", "0.58632296", "0.5849588", "0.58219516", "0.5790055", "0.5778888", "0.5760706", "0.57604295", "0.57516634", "0.57516634", "0.57516634", "0.57516634", "0.57386154", "0.5729387", "0.57241106", "0.5723789", "0.5717858", "0.57144785", "0.57011175", "0.56971294", "0.5693886", "0.568584", "0.56666434", "0.56609017", "0.5653849", "0.5651534", "0.56494623", "0.56384754", "0.56384057", "0.56338", "0.56320614", "0.5598506", "0.5592044", "0.55914295", "0.5591014", "0.5583378", "0.55798036", "0.5561396", "0.5560821", "0.55406845", "0.55373573", "0.55327594", "0.5531867", "0.5528274", "0.5518644", "0.5510651", "0.55103064", "0.5507024", "0.5498064", "0.5497362", "0.5496306", "0.5495137", "0.549378", "0.54909", "0.5476093", "0.54710746", "0.546698", "0.5458814", "0.54579693", "0.54552287", "0.54534125", "0.5449541", "0.5444666", "0.5441085", "0.54391026", "0.54385614", "0.5434543", "0.5430702", "0.5430398", "0.54300517", "0.5421376" ]
0.666459
2
Simple interface defining a method
private static interface Base { public void foo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SimpleInterface {\n String interfaceMethod(Integer value);\n}", "public interface Hello{\n String res(String paramString) ;\n}", "public interface Interface {\n void doSomething();\n void somethingElse(String arg);\n}", "interface A9 {\r\n void test(int i, String s1); //test method is taking some argument\r\n}", "public interface IFruit {\n\n void say();\n}", "interface A {\n int summ(int x, int y);\n}", "public interface MyInterface {\n void getDate(String name);\n}", "interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}", "public interface test {\n void test();\n}", "public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}", "interface Interface{\n\tObject call(Object value);\n}", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "public interface c {\n String a(String str);\n}", "public interface IFlyAminal {\n void fly();\n}", "public interface a {\n void a(String str);\n }", "public interface Hello {\n\n String hello();\n}", "public interface Hello {\n String sayHello();\n}", "public interface AInterface {\n\n public void say();\n\n}", "public interface se {\n void a(List<POI> list);\n\n boolean a();\n\n void b();\n\n boolean c();\n\n List<POI> d();\n\n POI e();\n\n POI f();\n}", "public interface SayHelloInterface {\n\n String sayHello(String text);\n}", "public interface HelloOperations \n{\n String echoString (String mesg);\n}", "public interface ICalculator {\n\n int calculate(String exp);\n\n}", "interface A {\n void a();\n}", "interface Sayable{ \n void say(); \n}", "public interface SampleA {\n void operation1();\n void operation2();\n}", "interface Greeting {\n public void greet(Greeter greeter);\n}", "public interface Iperson {\n public void say(String str);\n}", "public interface Ave {\n\n public void voar();\n\n}", "public interface Operation {\n String description();\n void command();\n}", "abstract void method();", "public interface Service {\n void method1();\n void method2();\n}", "public interface FlyBehevour {\n void fly();\n}", "interface IFly {\n void fly();\n}", "public interface HelloWorld {\r\n\r\n void sayHello(String name);\r\n}", "public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}", "public interface Myfunc {\n void invok(Integer arr);\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}", "public void method_1()\n {\n System.out.println(\"Interface method.\");\n }", "public interface i {\n int a();\n\n boolean b();\n\n void c();\n}", "public interface ICalculator {\n String add(String num1, String num2);\n}", "public interface ch\n{\n\n public abstract void a(bv bv, p p, h h, long l, int i, int j, \n IMediaItem imediaitem);\n}", "public interface i\n{\n\n public abstract void a(long l, a a1);\n}", "public interface PayCalculator {\n\n /**\n * Calculate the payment for the specified hours and\n * rate.\n */\n public double calculatePayment (int hours);\n}", "public interface PerformOperation {\n\n\tpublic String performOperation(int i);\n}", "public interface Calculator {\n\n int add(int i, int j);\n\n\n int subtract(int i, int j);\n}", "public interface SimpleInterface {\n void f();\n}", "public interface A {\n void f();\n}", "public interface Operation {\n int operate(int args1, int args2);\n}", "private interface IPsi {\n public double f(int n);\n }", "@FunctionalInterface\npublic interface Line {\n\n int line(int m, int x, int c);\n\n default void eq() {\n\n }\n}", "public interface TipoJogador {\n\n /**\n * Informa para o jogador que uma tecla foi pressionada.\n * \n * @param t Tecla que foi pressionada.\n */\n public void informarTeclaPressionada( Tecla t );\n \n /**\n * Informa para o jogador que uma tecla foi solta.\n * \n * @param t Tecla que foi solta.\n */\n public void informarTeclaSolta( Tecla t );\n \n}", "public interface Sayable {\n void say();\n}", "@FunctionalInterface // or we can call it SAM\r\n interface ShowMe{\r\n\t\r\n\t void showOk();\r\n\t \r\n\tpublic default void one()\r\n\t {\r\n\t System.out.println(\"method one \");\r\n };\r\n \r\n public static void one1()\r\n {\r\n System.out.println(\"method one 1 \");\r\n };\r\n \r\n public default void one2()\r\n \t {\r\n \t System.out.println(\"method one2 \");\r\n };\r\n \r\n }", "public interface a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\n }", "public interface Pracujacy {\r\n void pracuj();\r\n}", "public interface HelloWorld {\n void sayHelloWorld();\n}", "public interface IFaci {\n}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "interface A {\n\t\tvoid displayA();\n\t}", "public interface ApiMethod\n{\n\tpublic void func(ApiContext ac) throws JSONException, LibException;\n}", "public interface Zrada\n{\n void accuse();\n}", "interface a {\n int aadd();\n int sub();\n}", "public interface OperationInterface {\n /**\n * performs an operation\n */\n String toString();\n}", "public interface Greeting {\n void sayHello(String name);\n}", "public interface IService {\n //1.被调用的服务中的方法\n public void BeCalledMethod();\n\n}", "public interface Animal {\n\n public void eat();\n public void travel();\n}", "public interface Calculate {\n int add(int a, int b);\n}", "public interface HappyMethods {\n\n boolean isHappy(Ticket ticket);\n\n}", "public void method() {\n\t\t\r\n\t\t\r\n\t\tnew Inter() {\t\t\t\t\t\t\t//实现Inter接口\r\n\t\t\tpublic void print() {\t\t\t\t//重写抽象方法\r\n\t\t\t\tSystem.out.println(\"print\");\r\n\t\t\t}\r\n\t\t}.print();\r\n\t\t\r\n\t\t\r\n\t}", "public interface Greeter {\n\t\n\tvoid sayHello();\n}", "public interface IInvocation {\n void invoke();\n}", "public interface Fly {\n void fly();\n}", "public interface MyInterface {\n public void countClick(String data);\n}", "public interface IDeneme {\n \n void dene();\n}", "public interface Operation {\n}", "public interface m {\n void a(boolean z);\n}", "public interface Employee{\n\n void takeCall();\n void endCall();\n}", "public interface AnInterface {\n void f();\n\n void g();\n\n void h();\n}", "public interface g {\n void a(int i, String str, boolean z);\n\n boolean a();\n\n void b();\n}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public void method(){}", "interface Interface1 {\n\n\tdefault void add() {\n\t\tSystem.out.println(\"Interface1 add method\");\n\t}\n\n\tdefault void display() {\n\t\tSystem.out.println(\"Interface1 display\");\n\t}\n\n\t//static methods can be invoked only using InterfaceName.methodName\n\tstatic void print() {\n\t\tSystem.out.println(\"Interface1 print\");\n\t}\n\n\tstatic void printV2() {\n\t\tSystem.out.println(\"Interface1 printV2\");\n\t}\n}", "public interface IPresenterTinTuc {\n void layDanhSachTinTuc(String duongDan);\n TrangTinTuc layDanhSachTinTucLoadMore(String duongDan);\n}", "public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}", "public interface Calculator {\n //add method\n double add(double x, double y);\n\n //subtract method\n double subtract(double x, double y);\n\n //mulpiply method\n double multiply(double x, double y);\n\n //Divide method\n double divide(double x, double y) throws IllegalArgumentException;\n}", "public interface Singer {\n\n void sing();\n\n}", "public interface IServicio {\n\n\tpublic String operacion();\n}", "public interface Functie {\n public int add(int a, int b);\n}", "public interface Flyable{\r\n\tString fly();\r\n}", "interface Interface1 {\n\tpublic void getA();\n\n\tpublic void printA();\n}", "public interface Experiment {\n void test1(String name);\n}", "public void my_method();", "public interface Customizable {\n\n /**\n * This method adds based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is added successfully, otherwise false\n */\n boolean add(Object obj);\n\n /**\n * This method removes based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is removed successfully, otherwise false\n */\n boolean remove(Object obj);\n}", "public interface IFan {\n void activate(int i);\n}", "public interface ISinger {\n void sing();\n}", "public interface Flyable {\n\t\n\t/**\n\t * A method to be used to launch \n\t */\n\tvoid launch();\n\t\n\tvoid land();\n}", "public interface IInteractorOperations {\n\n String concatenarNombre(String nombres, String apellidos);\n int calcularEdad(String fechaNacimiento);\n}", "public interface aqi {\n void a(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void b(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void q();\n\n void r();\n}", "public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}" ]
[ "0.72307867", "0.7075216", "0.69804907", "0.69731396", "0.68864244", "0.6858418", "0.6839983", "0.68380266", "0.68334275", "0.68297064", "0.6811499", "0.67913413", "0.67913413", "0.67770463", "0.67655027", "0.6751053", "0.6747763", "0.6721101", "0.6711332", "0.6701109", "0.66919076", "0.66845757", "0.667955", "0.6675293", "0.66525126", "0.6651715", "0.6650142", "0.66424537", "0.66422606", "0.6637823", "0.6629959", "0.66165227", "0.6606986", "0.6603358", "0.6599531", "0.6596935", "0.6593783", "0.6590428", "0.6587312", "0.65871507", "0.6580478", "0.65672344", "0.6565207", "0.65644145", "0.6563053", "0.65610915", "0.65550625", "0.65536183", "0.65490705", "0.65438396", "0.6537861", "0.65309465", "0.65307057", "0.65303886", "0.6527421", "0.6525833", "0.65191627", "0.6513839", "0.65082514", "0.65055156", "0.6503392", "0.65017354", "0.6500715", "0.64987135", "0.64884216", "0.6481649", "0.648023", "0.6477887", "0.6471581", "0.64708364", "0.6465628", "0.6464965", "0.6462352", "0.64609325", "0.6459989", "0.64599395", "0.64497083", "0.64456344", "0.64452064", "0.64387864", "0.64383703", "0.6437137", "0.64368916", "0.6436", "0.6433539", "0.64320964", "0.64311194", "0.64307773", "0.6429261", "0.64287937", "0.6422969", "0.64222497", "0.64117193", "0.6406948", "0.64040834", "0.6400859", "0.6400476", "0.6400359", "0.63995075", "0.6383237", "0.63822484" ]
0.0
-1
Simple interface overriding a non Object method
private static interface Derived extends Base { public void foo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "public default void defaultMethod(){\r\n System.out.println(\"This is a method from Other Interface and can be overriden.\");\r\n }", "public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public interface B extends A {\n void b();\n}", "@Override\n public boolean isInterface() { return false; }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface Extendable {\n void extend();\n}", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "@Override\n public void defaultMethod() {\n I4.super.defaultMethod();\n }", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "interface A {\n void a();\n}", "public interface FlyingAnimal extends Animal {\n @Override\n default String identifyMyself(){\n return \"I am an animal and I can fly\";\n }\n}", "interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}", "public interface MyInterface2 {\n default void hello(){\n System.out.println(\"hello again\");\n }\n}", "public interface ITeslaProduct extends IProduct {\n //@Override\n public abstract void makeProduct();\n}", "default void defaultMethod() {\n System.out.println(\"from InterfaceA, default method...\");\n }", "interface HiPlus extends Hi {\n void Wow(String m);\n}", "@Override\npublic String say_it() {\n\treturn \"hello world\";\n}", "private static interface Base {\n\n public void foo();\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public interface Interface {\n void doSomething();\n void somethingElse(String arg);\n}", "@Override\n protected void prot() {\n }", "public interface InterfaceReplacement {\n\n /** The ever present clone method\n */\n public Object clone(); \n\n /** This method will insert the given individual into the population\n * by replacing a individual either from the population or the given\n * subset\n * @param indy The individual to insert\n * @param pop The population\n * @param sub The subset\n */\n public void insertIndividual(AbstractEAIndividual indy, Population pop, Population sub);\n}", "abstract void method();", "public interface brr {\n void a(Object obj);\n}", "public interface b {\n void a();\n }", "public interface b {\n void a();\n }", "public interface AInterface {\n\n public void say();\n\n}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "interface I {}", "public interface IFruit {\n\n void say();\n}", "public void method() {\n\t\t\r\n\t\t\r\n\t\tnew Inter() {\t\t\t\t\t\t\t//实现Inter接口\r\n\t\t\tpublic void print() {\t\t\t\t//重写抽象方法\r\n\t\t\t\tSystem.out.println(\"print\");\r\n\t\t\t}\r\n\t\t}.print();\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public abstract void abstractMethodToImplement();", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "default void display1(){\n\t\tSystem.out.println(\"Default Method inside interface\");\n\t}", "public interface a extends IInterface {\n}", "interface Interface{\n\tObject call(Object value);\n}", "public interface IFlyAminal {\n void fly();\n}", "public interface A {\n void f();\n}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public interface BaseView extends IView {\r\n void onSuccess();\r\n\r\n void onFailure();\r\n}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public interface Customizable {\n\n /**\n * This method adds based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is added successfully, otherwise false\n */\n boolean add(Object obj);\n\n /**\n * This method removes based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is removed successfully, otherwise false\n */\n boolean remove(Object obj);\n}", "public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}", "public interface BaseView {\n\n void showTaost(String string);\n\n}", "interface InterfaceChild extends InterfaceParent {\n default String introduce() {\n return \"InterfaceChild\";\n }\n}", "public interface i\n{\n\n public abstract void a(long l, a a1);\n}", "public interface a {\n void a(String str);\n }", "private static interface WithoutObjectOverrides {\n\n public boolean equals();\n\n public long hashCode(Object obj);\n\n public void toString(long foo);\n }", "public interface b {\n int a();\n }", "public interface BaseIView {\n}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface SimpleInterface {\n String interfaceMethod(Integer value);\n}", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public void myMethod(){\n\t\t\tsuper.myMethod();\n\t\t\tSystem.out.println(\"Overriding method\");\n\t\t }", "@Override\n\tpublic void subtract() {\n\t\tSystem.out.println(\"This is an implementation of an interface\");\n\t}", "interface Sayable{ \n void say(); \n}", "@Override\npublic void sub(int a, int b) {\n\t\n}", "public interface a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\n }", "interface Sample {\n\tvoid method(String a);\n\t// New in Java 1.8 - default interface methods\n\tdefault void method_default() {\n\t System.out.println(\"Hello from default method!\");\n\t}\n }", "public interface WipableIngredient extends Ingredient {\n\n void wip();\n}", "public interface MyIView extends BaseIView{\n void onSuccess();\n void onError();\n}", "public interface IMy extends IA, IB{\n int a = 10;\n int []b = {1,2,3,4,5,6,7};\n\n void m();\n static void sm(){\n System.out.println(\"hi from static method\");\n }\n default void dm(){\n System.out.println(\"hi from default method\");\n }\n}", "public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}", "public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "public interface test {\n void test();\n}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public interface BaseObject {\n}", "public interface Overdrive {\n void useOverdrive();\n}", "public interface AbstractC0211Dj0 {\n void a(int i);\n}", "public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}", "public interface ISocketEchoServer extends ISocketServer\r\n{\r\n\r\n}", "public interface xe {\n Object a(int i, Class cls);\n\n Object a(Class cls);\n\n void a();\n\n void a(int i);\n\n void a(Object obj);\n}", "interface Interface1 {\n\tpublic void getA();\n\n\tpublic void printA();\n}", "public void override() {\n isOverridden = true;\n }", "private static interface WithObjectOverrides {\n\n public boolean equals(Object obj);\n\n public int hashCode();\n\n public String toString();\n }", "public interface AbstractC7617o0oOO {\n void OooO00o(View view);\n\n void OooO0O0(View view);\n\n void OooO0OO(View view);\n}", "public interface c {\n String a(String str);\n}", "public interface IRange extends EObject\n{\n}", "public interface Bird {\r\n String fly(Object var);\r\n\r\n}", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public interface s extends a {\n void a();\n\n void a(g gVar);\n\n void a(String str, boolean z);\n}", "public interface i {\n}", "public interface d {\n void a();\n}", "public interface AbstractC2883ha {\n boolean a();\n}", "public interface AbstractC0273Ek {\n void e();\n}", "@Override\r\n\tpublic void PrimitiveOperation2() {\n\t\tSystem.out.println(\"Concrete class B method 2 implemation\");\r\n\t}", "public interface Citizen {\n public abstract void sayHello();\n}", "interface I{\n\n public void m1();\n public void m2();\n default void m3(){\n System.out.println(\"Default methods in interface\");\n }\n}" ]
[ "0.70279235", "0.6958593", "0.6921177", "0.68621856", "0.6808435", "0.673126", "0.66685265", "0.661398", "0.6610416", "0.66028494", "0.66028494", "0.6596913", "0.6550795", "0.65016174", "0.64985853", "0.6498468", "0.64912564", "0.6484546", "0.64802176", "0.64439684", "0.64140856", "0.64087826", "0.64008325", "0.6387201", "0.6370582", "0.6359038", "0.6336634", "0.6332256", "0.6329248", "0.6328513", "0.6328513", "0.6311823", "0.63083667", "0.6295268", "0.629431", "0.62915874", "0.62856376", "0.62852275", "0.626551", "0.6253852", "0.62458235", "0.6236413", "0.6234384", "0.6233119", "0.62326396", "0.62214696", "0.6219836", "0.621072", "0.62071586", "0.62071586", "0.6205658", "0.6203246", "0.620277", "0.62013793", "0.6199213", "0.6195996", "0.61939335", "0.61921513", "0.6190546", "0.6179402", "0.61747503", "0.6174026", "0.61649007", "0.6164715", "0.6158808", "0.61492026", "0.6146211", "0.61380327", "0.6134788", "0.6133887", "0.6131433", "0.6130266", "0.6123271", "0.61231685", "0.61096287", "0.6100513", "0.60993034", "0.60993034", "0.6095876", "0.6093365", "0.6091002", "0.6089086", "0.6087549", "0.6085212", "0.60851765", "0.6084399", "0.60818243", "0.60787106", "0.60691273", "0.6065524", "0.60604936", "0.6059936", "0.6059302", "0.6058236", "0.6055392", "0.6053175", "0.60529476", "0.6050376", "0.6046077", "0.6043057" ]
0.62187463
47
Creates a new DegreeSortedCircleLayout object.
public DegreeSortedCircleLayout(UndoSupport undoSupport, CyTableManager tableMgr) { super(undoSupport, "degree-circle", "Degree Sorted Circle Layout", true); this.tableMgr = tableMgr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCircle() {\n\t\tlayout_Circle=new Circle[][] {{null, null, null, null, null, null, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, finishCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, pos80, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos7_1, pos70, pos71, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos6_2, pos6_1, pos60, pos61, pos62, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos5_3, pos5_2, pos5_1, pos50, pos51, pos52, pos53, null, null},\n\t\t\t \t\t\t\t\t\t {null, pos4_4, pos4_3, pos4_2, pos4_1, pos40, pos41, pos42, pos43, pos44, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos3_3, pos3_2, pos3_1, pos30, pos31, pos32, pos33, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos2_2, pos2_1, pos20, pos21, pos22, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos1_1, pos10, pos11, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, startCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, null, null, null, null, null, null}};\n\t}", "Degree createDegree();", "public CircleComponent()\n {\n circles = new ArrayList<>();\n circleCounter = 0;\n\n }", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "public Degree() {\n\t\tsuper();\n\t}", "public Circle(double radius){ // 2 constructor\n this.radius = radius;\n this.color = DEFAULT_COLOR;\n }", "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "public Circle(int x, int y, int r, Color c) {\n super(x-r,y-r);\n color = c;\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }", "public CircularLayoutComponent() {\n initComponents();\n setOpaque(true);\n setDoubleBuffered(true);\n segmentSizeSpinner.addChangeListener(this);\n targetMarginSpinner.addChangeListener(this);\n sourceMarginSpinner.addChangeListener(this);\n segmentMarginSpinner.addChangeListener(this);\n segmentAngleSpinner.addChangeListener(this);\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "public Circle(){}", "GraphLayout createGraphLayout();", "public Circle(Circle circle) {\n this.center = circle.center;\n this.radius = circle.radius;\n }", "public Circle() {\n super(new GeoCircle(), FeatureTypeEnum.GEO_CIRCLE);\n this.setFillStyle(null);\n }", "public Circle(int x, int y, int r) {\n super(x-r,y-r);\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "@SuppressWarnings(\"unchecked\")\n public GrafoDirigido(int numVertices) {\n numV = numVertices; \n numA = 0;\n elArray = new ListaConPI[numVertices]; \n for (int i = 0; i < numV; i++) {\n elArray[i] = new LEGListaConPI<Adyacente>();\n }\n }", "public Circle(){\n\t\t\n\t\tradius = 1.0;\n\t\tcolor =\"Red\";\n\t}", "public Circle() {\n this(0, 0, 1);\n }", "public Circle() {\n\t\tr=0.0; //by defalut set radius to something so we have a circle \n\t}", "NodeLayout createNodeLayout();", "public Circle(double r)\n {\n setRad(r);\n\n }", "public Circle(double radius) {\n super(new GeoCircle(), FeatureTypeEnum.GEO_CIRCLE);\n radius = makePositive(radius, \"Invalid radius. NaN\");\n\n if (radius >= MINIMUM_RADIUS) {\n this.getRenderable().setRadius(radius);\n } else {\n throw new IllegalArgumentException(\"Invalid radius. \" + radius + \" Minimum supported \" + MINIMUM_RADIUS);\n }\n this.setFillStyle(null);\n }", "public Circle(){ // 1 constructor\n this.radius = DEFAULT_RADIUS;\n this.color = DEFAULT_COLOR;\n }", "public Circle(double radius, Point center) {\r\n this.radius = radius;\r\n this.center = center;\r\n }", "public Circle(double r) {\n radius = r;\n color = \"red\";\n }", "private void newCircle()\n {\n setMinimumSize(null);\n\n //Generate a new circle\n panel.generateNewCircle();\n\n //Calculate the circle properties and setup the text area with their values\n generateTextArea();\n\n //Repack the frame to fit everything perfectly\n pack();\n\n setMinimumSize(getSize());\n }", "public Circle(double radius, String color){ // 3 constructor\n this.radius = radius;\n this.color = color;\n }", "public Circle(double r) {\n radius = r;\n color = \"red\";\n }", "public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}", "public Circle(int x, int y) {\n super(x-5,y-5);\n name = \"Circle\";\n width = 2*5;\n height = 2*5;\n radius = 5;\n }", "public JAngle(double angle) {\n GridBagLayout layout = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n c.anchor = GridBagConstraints.EAST;\n c.fill = GridBagConstraints.BOTH;\n setLayout(layout);\n c.gridy = 0;\n\n JLabel ldeg = null;\n int unit = Coordinates.angleUnit();\n double d;\n switch(unit) {\n case Coordinates.RADIAN:\n deg = new JTextField(12);\n ldeg = new JLabel(\"rad\");\n deg.setText(String.valueOf(Math.round(angle * 10000000000.0) /\n\t\t 10000000000.0));\n break;\n case Coordinates.DEGRE:\n deg = new JTextField(14);\n ldeg = new JLabel(\"aa\");\n deg.setText(String.valueOf(Math.round(180.0 * angle / Math.PI *\n\t\t\t\t\t 10000000000.0) / 10000000000.0));\n break;\n case Coordinates.DEGMN:\n case Coordinates.DEGMNSEC:\n deg = new JTextField(3);\n String sgn = \"\";\n if(angle < 0.0) {\n\tangle = -angle;\n\tsgn = \"-\";\n }\n angle = 180.0 * angle / Math.PI;\n deg.setText(sgn + String.valueOf((int) angle));\n deg.setHorizontalAlignment(JTextField.RIGHT);\n ldeg = new JLabel(\"aa\");\n break;\n }\n c.gridx = 0;\n c.weightx = 0.0;\n\n layout.setConstraints(deg, c);\n add(deg);\n c.gridx = 1;\n c.weightx = 0.0;\n layout.setConstraints(ldeg, c);\n add(ldeg);\n\n if(unit == Coordinates.DEGMN || unit == Coordinates.DEGMNSEC) {\n mn = new JTextField((unit == Coordinates.DEGMN) ? 8 : 2);\n mn.setHorizontalAlignment(JTextField.RIGHT);\n c.gridx = 2;\n c.weightx = 0.0;\n layout.setConstraints(mn, c);\n add(mn);\n JLabel lmn = new JLabel(\"'\");\n c.gridx = 3;\n c.weightx = 0.0;\n layout.setConstraints(lmn, c);\n add(lmn);\n angle -= (int) angle;\n angle *= 60.0;\n \n if(unit == Coordinates.DEGMNSEC) {\n\tmn.setText(String.valueOf((int) angle));\n\tangle -= (int) angle;\n\tangle *= 60.0;\n\tsec = new JTextField((unit == Coordinates.DEGMN) ? 5 : 6);\n\tsec.setHorizontalAlignment(JTextField.RIGHT);\n\tc.gridx = 4;\n\tc.weightx = 0.0;\n\tlayout.setConstraints(sec, c);\n\tadd(sec);\n\tJLabel lsec = new JLabel(\"\\\"\");\n\tc.gridx = 5;\n\tc.weightx = 0.0;\n\tlayout.setConstraints(lsec, c);\n\tadd(lsec);\n\tsec.setText(String.valueOf(Math.round(angle * 10000.0) / 10000.0));\n }\n else {\n\tmn.setText(String.valueOf(Math.round(angle * 1000000.0) / 1000000.0));\n }\n }\n }", "public Circle(double r, Point center) {\n this.r = r;\n this.center = center;\n }", "public ZPathLayoutManager() {\n\tthis(new Line2D.Double(0.0,0.0,1.0,1.0));\n }", "private void calcLayout2(final int vxId, final double[][] relativePositions, final Vector3d enclosingCircleCentre, final Vector3d originalNodePosition) {\n final Vector3d bend = new Vector3d(relativePositions[vxId][4], 0, 0);\n final Vector3d zeta = new Vector3d(relativePositions[vxId][2], relativePositions[vxId][3], 0);\n\n final Vector3d vect = Vector3d.subtract(originalNodePosition, enclosingCircleCentre);\n vect.normalize();\n final Vector3d vect3 = Vector3d.add(zeta, bend);\n vect3.normalize();\n\n final double cosAlpha = Vector3d.dotProduct(vect3, vect);\n final double sinAlpha = Vector3d.crossProduct(vect, vect3).getZ();\n\n final Vector3d rot1 = new Vector3d(cosAlpha, -sinAlpha, 0);\n final Vector3d rot2 = new Vector3d(sinAlpha, cosAlpha, 0);\n\n zeta.set(Vector3d.add(Vector3d.multiply(rot1, zeta.getX()), Vector3d.multiply(rot2, zeta.getY())));\n\n final float x = (float) (enclosingCircleCentre.getX() + zeta.getX());\n final float y = (float) (enclosingCircleCentre.getY() + zeta.getY());\n tree.setFloatValue(xId, vxId, x);\n tree.setFloatValue(yId, vxId, y);\n tree.setFloatValue(zId, vxId, 0);\n\n // If we could add a bend to the transaction, we'd do it here.\n // Make the recursive call to place the children of vxId.\n final int nOut = tree.getVertexTransactionCount(vxId, Graph.OUTGOING);\n for (int position = 0; position < nOut; position++) {\n final int txId = tree.getVertexTransaction(vxId, Graph.OUTGOING, position);\n final int outVxId = tree.getTransactionDestinationVertex(txId);\n\n Vector3d newpos = new Vector3d(relativePositions[outVxId][0], relativePositions[outVxId][1], 0);\n newpos = Vector3d.add(Vector3d.multiply(rot1, newpos.getX()), Vector3d.multiply(rot2, newpos.getY()));\n newpos.add(enclosingCircleCentre);\n calcLayout2(outVxId, relativePositions, newpos, Vector3d.add(enclosingCircleCentre, zeta));\n }\n }", "public Circle(double radio) {\n\n super(\"circle\");\n this.radio=radio;\n }", "public Circle()\r\n\t{\r\n\t\tradius = 0.0;\r\n\t}", "public Circle() {\n this( 1.0 ); \n }", "public GraphNode(int index, double centerX , double centerY){\n super();\n this.index = index;\n this.setText(String.valueOf(index));\n DirX = centerX;\n DirY = centerY;\n this.setLayoutX(centerX);\n this.setLayoutY(centerY);\n this.setStyle(\"-fx-background-color: #d0d0d0; -fx-font-size: 16; -fx-background-radius: 50 ; -fx-pref-height: 50 ; -fx-pref-width: 50\");\n }", "SimpleCircle() {\n\t\tradius=1;\n\t}", "SimpleCircle() {\n\t\tradius = 1;\n\t}", "public CirclePoint(int pnts, int x, int y, int r, double rotate, double rotatex, double rotatey, double scale) {\n this.pnts = pnts;\n int x_;\n int y_;\n pts = new Vector2D[pnts];\n for (int i = 0; i < pnts; i++) {\n // what is happening is the MU.rotate(), MU.rotatex(), MU.rotatey() and MU.zoom() each return a vector2D which are all multiplied together\n //to give a single point on a circle.\n //see MU.rotate(), MU.rotatex(), MU.rotatey() and MU.zoom() for details on the functions.\n //the x_ and y_ value will be a coordinate on the screen\n x_ = (int) (x + r * MU.rotate(i, pnts, rotate).getX() * MU.rotatex(rotatex).getX() * MU.rotatey(rotatey).getX() * MU.zoom(scale).getX());\n y_ = (int) (y + r * MU.rotate(i, pnts, rotate).getY() * MU.rotatex(rotatex).getY() * MU.rotatey(rotatey).getY() * MU.zoom(scale).getY());\n pts[i] = new Vector2D(x_, y_);\n }\n }", "public Circle(double radius,String c){\n\t\tradius = this.radius;\n\t\tcolor =c;\n\t}", "public DraggableCircle(LatLng center, double radius, float strokeWidth, int strokeColor, int fillColor) {\n this.radius = radius;\n centerMarker = mMap.addMarker(new MarkerOptions()\n .position(center)\n .draggable(true));\n radiusMarker = mMap.addMarker(new MarkerOptions()\n .position(toRadiusLatLng(center, radius))\n .draggable(true)\n .icon(BitmapDescriptorFactory.defaultMarker(\n BitmapDescriptorFactory.HUE_AZURE)));\n circle = mMap.addCircle(new CircleOptions()\n .center(center)\n .radius(radius)\n .strokeWidth(strokeWidth)\n .strokeColor(strokeColor)\n .fillColor(fillColor));\n\n }", "private void createCircle(double x, double y) {\r\n GOval circle = new GOval(x, y, DIAMETR, DIAMETR);\r\n circle.setFilled(true);\r\n circle.setFillColor(Color.BLACK);\r\n add(circle);\r\n }", "public Circle(double radius){\n this.radius = radius;\n }", "public PXRadialGradient() {\n center = new PointF();\n }", "public AngleDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n }", "public ShapeComponent drawCircle()\n\t{\n\t\tShapeComponent circleComponent = new ShapeComponent(radius*2, radius*2, \n\t\t\t\t\"circle\");\n\t\treturn circleComponent;\n\t}", "private void generateCircleCoords() {\n circleCoords = new float[(CIRCLE_PRECISION + 2) * COORDS_PER_VERTEX];\n\n circleCoords[0] = 0.0f; // origin x;\n circleCoords[1] = 0.0f; // origin y;\n circleCoords[2] = 0.0f; // origin z;\n\n float radRange = mMaxRads - mMinRads;\n float radsPerTriangle = (radRange / (float)CIRCLE_PRECISION);\n\n for (int x = 0; x < CIRCLE_PRECISION; x++) {\n // Shift up by 1 coordinate position since the 0 position is the origin\n circleCoords[(x + 1) * COORDS_PER_VERTEX] = radius * (float)Math.cos(mMinRads + (radsPerTriangle * (float)x)); // point x-coord\n circleCoords[((x + 1) * COORDS_PER_VERTEX) + 1] = radius * (float)Math.sin(mMinRads + (radsPerTriangle * (float) x)); // point y-coord\n circleCoords[((x + 1) * COORDS_PER_VERTEX) + 2] = 0.0f; // point z-coord\n }\n\n // the last set of coords should match the maxrads exactly\n // Shifted up by 1 since 0,1,2 is the origin\n circleCoords[(CIRCLE_PRECISION + 1) * COORDS_PER_VERTEX] = radius * (float)Math.cos(mMaxRads); // point x-coord\n circleCoords[((CIRCLE_PRECISION + 1) * COORDS_PER_VERTEX) + 1] = radius * (float)Math.sin(mMaxRads); // point y-coord\n circleCoords[((CIRCLE_PRECISION + 1) * COORDS_PER_VERTEX) + 2] = 0.0f; // point z-coord\n }", "public DraggableCircle(Marker center, Marker radius, float strokeWidth, int strokeColor, int fillColor){\n this.radius = toRadiusMeters(center.getPosition(), radius.getPosition());\n centerMarker = center;\n radiusMarker = radius;\n circle = mMap.addCircle(new CircleOptions()\n .center(center.getPosition())\n .radius(this.radius)\n .strokeWidth(strokeWidth)\n .strokeColor(strokeColor)\n .fillColor(fillColor));\n }", "public Circle(String color, double radius)\r\n {\r\n super(color);\r\n mRadius = radius;\r\n \r\n }", "public DiscMesh(float radius, int numVertices) {\n Validate.nonNegative(radius, \"radius\");\n Validate.inRange(\n numVertices, \"number of vertices\", 3, Integer.MAX_VALUE);\n\n setMode(Mode.TriangleFan);\n\n float[] normals = new float[numAxes * numVertices];\n float[] positions = new float[numAxes * numVertices];\n float[] texCoords = new float[2 * numVertices];\n\n for (int vi = 0; vi < numVertices; ++vi) {\n normals[numAxes * vi] = 0f;\n normals[numAxes * vi + 1] = 0f;\n normals[numAxes * vi + 2] = 1f;\n\n float theta = FastMath.TWO_PI * vi / numVertices;\n float sin = FastMath.sin(theta);\n float cos = FastMath.cos(theta);\n positions[numAxes * vi] = radius * cos;\n positions[numAxes * vi + 1] = radius * sin;\n positions[numAxes * vi + 2] = 0f;\n\n texCoords[2 * vi] = (1f + cos) / 2f;\n texCoords[2 * vi + 1] = (1f + sin) / 2f;\n }\n\n setBuffer(Type.Normal, numAxes, normals);\n setBuffer(Type.Position, numAxes, positions);\n setBuffer(Type.TexCoord, 2, texCoords);\n\n updateBound();\n setStatic();\n }", "public Circle(double radius) {\n super(\"white\", true);\n this.radius = radius;\n }", "public static Degree360 valueOf(Degree180 degree){\n\t\t\treturn new Degree360(degree.getDouble());\r\n\t}", "public Circle(double r) {\n this.r = r;\n this.center = new Point(0,0);\n }", "public Circle(int centerX, int centerY, int radius, Color color) {\n\t\tsuper();\n\t\tthis.centerX = centerX;\n\t\tthis.centerY = centerY;\n\t\tthis.radius = radius;\n\t\tthis.color = color;\n\t}", "public static Layout createFillLayout() {\n\t\tGeomUtil.LOG.warning(\n\t\t\t\t\"LayoutFactory.createFillLayout() method is deprecated. Use LayoutFactory.createOverlayLayout() method instead.\"); // NOI18N\n\t\treturn createOverlayLayout();\n\t}", "public Circle(float centerX, float centerY, float radius) {\n this.center = new Vector2(centerX, centerY);\n this.radius = radius;\n }", "public BTreeNode(BTreeNode<E> p, Comparator<E> c, int deg) {\n\t\tparent = p;\n\t\tcmp = c;\n\t\tdegree = deg;\n\t\tdata = new ArrayList<>(deg);\n\t\tchildren = new ArrayList<>(deg + 1);\n\t}", "public Pie(PersonList personList, String teamName)\n\t{\n\t\tthis();\n\t\tthis.teamName=teamName;\n\t\tArrayList<Person> personArrayList=personList.getPeople();\n\t\tfor (Person person: personArrayList)\n\t\t{\n\t\t\tageArray[person.getAge()]=ageArray[person.getAge()]+1;\n\t\t\t\n\t\t}\n\t\t//ageArray[100]=1;\n\t\tfor (int i=0; i<ageArray.length; i++)\n\t\t{\n\t\t\tif (!(ageArray[i]==0))\n\t\t\t{\n\t\t\t\tint number=ageArray[i];\n\t\t\t\tString aName=(\"\"+i);\n\t\t\t\tSector aSector=new Sector(aName, number);\n\t\t\t\tsectors.add(aSector);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Sector sector: sectors)\n\t\t{\n\t\t\tweightSum+=sector.getWeight();\n\t\t}\n\t\tfor(Sector sector: sectors)\n\t\t{\n\t\t\tsector.setAngleExtent(((double)sector.getWeight())/weightSum*360);\n\t\t\tsector.setColor(new Color((int)(Math.random() * 0x1000000)));\n\t\t}\n\t}", "public Circle(double centerx, double centery, double radius, Color c) {\n\t\tsuper(name, centerx, centery, radius + centerx, radius + centery, c);\n\t\tthis.radius = new Double(radius);\n\t}", "public Circle(SelectedColor color) {\n super(Name.Circle, color);\n\n Log.i(\"Circle\",\"Created a \" + color + \" Circle\");\n //Need getcolor() to pick random\n //Maybe keep all colors random at create time, then when we add them to data struc\n //we change one of the colors depending on \"correct shape\"\n }", "public CompleteGraph(int d, int n)\n {\n\t\tdiameter = d;\n\t\tint r = diameter/2;\n\t\tdouble x = r;\n\t\tdouble y = r;\n\t\tdouble theta = 2 * Math.PI / n;\n\t\tclearAll();\n\t\twhile (getNodes().size() < n ) {\n\t\t\tCircleNode c = new CircleNode(Color.WHITE);\n\t\t\tx = r*Math.sin(-1*(getNodes().size())*theta + Math.PI);\n\t\t\ty = r*Math.cos(-1*(getNodes().size())*theta + Math.PI);\n\t\t\tadd(c, new Point2D.Double(x + r, y + r));\n\t\t\tc.sendIndex( getNodes().size() - 1 );\n\t\t}\n\t\tconnectAll();\n\n }", "public Direction(int degrees)\n {\n dirInDegrees = degrees % FULL_CIRCLE;\n if ( dirInDegrees < 0 )\n dirInDegrees += FULL_CIRCLE;\n }", "Circle2D(double newX, double newY, double newRadius){\r\n\t\tthis.x = newX;\r\n\t\tthis.y = newY;\r\n\t\tthis.radius = newRadius;\r\n\t}", "public Circle(){\n }", "public Cone(String labelIn, double heightIn, double radiusIn)\r\n {\r\n setHeight(heightIn);\r\n setLabel(labelIn);\r\n setRadius(radiusIn);\r\n }", "public Circle(IGeoCircle renderable) {\n super(renderable, FeatureTypeEnum.GEO_CIRCLE);\n\n if(null == renderable) {\n throw new IllegalArgumentException(\"Encapsulated GeoCircle must be non-null\");\n }\n this.setRadius(makePositive(this.getRadius(), \"Invalid radius. NaN\"));\n\n if (this.getRadius() < MINIMUM_RADIUS) {\n throw new IllegalArgumentException(\"Invalid radius. \" + this.getRadius() + \" Minimum supported \" + MINIMUM_RADIUS);\n }\n }", "public Degree(String nameParam, String typeParam, String yearParam, String courseListParam, String commentParam) {\n degreeName_ = nameParam;\n degreeType_ = typeParam;\n catalogYear_ = yearParam;\n comment_ = commentParam;\n\n courseList_ = new TreeSet<>();\n Scanner sc = new Scanner(courseListParam);\n while (sc.hasNext()) {\n courseList_.add(sc.next());\n }\n }", "public Circle(Circle c){\n\t\tthis(c.radius,c.p);\n\t}", "public KdTree() \n\t {\n\t\t \n\t }", "public DecimalFormatObjectDescription(final Class className) {\n super(className, false);\n setParameterDefinition(\"localizedPattern\", String.class);\n setParameterDefinition(\"pattern\", String.class);\n setParameterDefinition(\"decimalFormatSymbols\", DecimalFormatSymbols.class);\n setParameterDefinition(\"decimalSeparatorAlwaysShown\", Boolean.TYPE);\n setParameterDefinition(\"groupingSize\", Integer.TYPE);\n setParameterDefinition(\"groupingUsed\", Boolean.TYPE);\n setParameterDefinition(\"maximumFractionDigits\", Integer.TYPE);\n setParameterDefinition(\"maximumIntegerDigits\", Integer.TYPE);\n setParameterDefinition(\"minimumFractionDigits\", Integer.TYPE);\n setParameterDefinition(\"minimumIntegerDigits\", Integer.TYPE);\n setParameterDefinition(\"multiplier\", Integer.TYPE);\n setParameterDefinition(\"negativePrefix\", String.class);\n setParameterDefinition(\"negativeSuffix\", String.class);\n// setParameterDefinition(\"parseBigDecimal\", Boolean.TYPE);\n setParameterDefinition(\"parseIntegerOnly\", Boolean.TYPE);\n setParameterDefinition(\"positivePrefix\", String.class);\n setParameterDefinition(\"positiveSuffix\", String.class);\n ignoreParameter(\"localizedPattern\");\n ignoreParameter(\"pattern\");\n }", "public Directory(Point origin, double radius, int owner) {\n\t\tsuper(origin, radius, PRODUCTION_SPEED, owner, new Arrow(owner));\n\t}", "public JXGraph() {\r\n this(0.0, 0.0, -1.0, 1.0, -1.0, 1.0, 0.2, 4, 0.2, 4);\r\n }", "private JPanel getJPanelAlphabetSize() {\r\n\t\tif (jPanelAlphabetSize == null) {\r\n\t\t\tjPanelAlphabetSize = new JPanel();\r\n\t\t\tjPanelAlphabetSize.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\t\tjPanelAlphabetSize.setLayout(new BorderLayout());\r\n\t\t\tjLabelAlphabetSize = new JLabel(\"Alphabet size: \");\r\n\t\t\tjLabelAlphabetSize.setToolTipText(\"number of distinct characters\");\r\n\t\t\tjLabelAlphabetSize.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\tSpinnerModel sModel = new SpinnerNumberModel(4, 2, 10, 1); // init, min, max, step\r\n\t\t\tjSpinnerAlphabetSize = new JSpinner(sModel);\r\n\t\t\tjSpinnerAlphabetSize.addChangeListener(this);\r\n\t\t\tJSpinner.DefaultEditor defEditor = (JSpinner.DefaultEditor) jSpinnerAlphabetSize.getEditor();\r\n\t\t\tJFormattedTextField ftf = defEditor.getTextField();\r\n\t\t\tftf.setColumns(4);\r\n\t\t\tInternationalFormatter intFormatter = (InternationalFormatter) ftf.getFormatter();\r\n\t\t\tDecimalFormat decimalFormat = (DecimalFormat) intFormatter.getFormat();\r\n\t\t\tdecimalFormat.applyPattern(\"#\"); // decimalFormat.applyPattern(\"#,##0.0\");\r\n\t\t\tjPanelAlphabetSize.add(jLabelAlphabetSize, BorderLayout.WEST);\r\n\t\t\tjPanelAlphabetSize.add(jSpinnerAlphabetSize, BorderLayout.CENTER);\r\n\t\t\tjSpinnerAlphabetSize.setEnabled(false);\r\n\t\t}\r\n\t\treturn jPanelAlphabetSize;\r\n\t}", "public Circle(double r)\r\n\t{\r\n\t\tradius=r;\r\n\t}", "public Circle(Vector2 center, float radius) {\n this.center = center;\n this.radius = radius;\n }", "public CloudLayouter (List<String> sortedClasses, Map<String, ProjectDependenciesAnalyzer.DependencyInfo> infos)\n {\n this.sortedClasses = sortedClasses;\n this.infos = infos;\n int horizontalBorderCount = computeHorizontalBorderClassCount ();\n int verticalBorderCount = computeVerticalBorderClassCount ();\n double relation = (double) horizontalBorderCount / (double) verticalBorderCount;\n int area = sortedClasses.size ();\n // area = width * height => width = area / height\n // width = relation * height\n // => relation * height = area / height => relation * height * height = area => height = sqrt (area / relation)\n int gridHeight = (int) Math.ceil (Math.sqrt (area / relation));\n int gridWidth = (int) Math.ceil ((double) area / (double) gridHeight);\n this.grid = new Grid (gridWidth, gridHeight);\n\n Collections.reverse (sortedClasses);\n placeClasses (extractCorners ());\n placeClasses (extractBorders ());\n placeClasses (sortedClasses);\n }", "public Circle(){\r\n\t \t// System.out.println(\"Default constructor dipanggil.\");\r\n\t \tjejari = 1;\r\n\t \tx = 5;\r\n\t \tbilObjekWujud++;\r\n\t }", "public Cylinder(double height, double radius, boolean Center) {\n\t\tsuper();\n\t\tthis.height = height;\n\t\tthis.radius = radius;\n\t\tthis.center = Center;\n\t}", "public Circle(Vector3d center, double radius) {\n this.x = center.x;\n this.y = center.y;\n this.z = center.z;\n this.radius = radius;\n pos = Vector3d.createVector3d(x, y, z);\n }", "private ArrayList<Figure> getCircleData(){\n\n ArrayList<Figure> getCircleData = new ArrayList<>();\n\n getCircleData.add(new Circle(\"First circle\", Color.GREEN, 2, 2));\n getCircleData.add(new Circle(\"Second circle\", Color.RED, 3, 3));\n getCircleData.add(new Circle(\"Third circle\", Color.YELLOW, 8, 8));\n getCircleData.add(new Circle(\"Fourth circle\", Color.BLUE, 7, 7));\n getCircleData.add(new Circle(\"Fifth circle\", Color.YELLOW, 8, 8));\n getCircleData.add(new Circle(\"Sixth circle\", Color.RED, 1, 1));\n getCircleData.add(new Circle(\"Seventh circle\", Color.BLUE, 4, 4));\n\n return getCircleData;\n\n }", "public Circle(double newRadius) {\n\t\tradius = newRadius;\t\t\t\n\t}", "public CalcLayout() {\n\t\tthis(0);\n\t}", "public void setDiameter(int diameter) {\n circleDiameter = diameter;\n\n }", "public Circle(double r) {\n this.r = r;\n }", "AngleDistinct createAngleDistinct();", "public Circle(double givenRadius)\n\t{\n\t\tradius = givenRadius;\n\t}", "public CircleCADTool() {\r\n }", "public KdTree() {\n }", "public Circle(double xValue, double yValue, double r) {\n origin = new Point(xValue, yValue);\n radius = r;\n }", "public Builder clearDegree() {\n \n degree_ = 0;\n onChanged();\n return this;\n }", "public GridPane gpCenter() {\r\n\r\n //Used to see lines for GridPane rows/colums for troubleshooting\r\n //gpSorts.setGridLinesVisible(true);\r\n GridPane gpEntries = new GridPane(); //Create GridPane instance\r\n\r\n //SetId\r\n gpEntries.setId(\"gp\");\r\n\r\n //Set the gaps and padding\r\n gpEntries.setHgap(5);\r\n gpEntries.setVgap(5);\r\n\r\n /**\r\n * Note the following when adding to GridPane\r\n * GridPane.setConstraints(node, columnIndex, rowIndex, columnspan,\r\n * rowspan); gpSorts.add(node, columnIndex, rowIndex);\r\n *\r\n * Add Label and TextField for name and age to top of\r\n * bpCenterLeft(BorderPane)\r\n */\r\n gpEntries.add(lblUserName, 0, 0);\r\n GridPane.setConstraints(lblUserName, 0, 0, 1, 1);\r\n\r\n gpEntries.add(txtUserName, 1, 0);\r\n GridPane.setConstraints(txtUserName, 1, 0, 1, 1);\r\n\r\n gpEntries.add(lblEmail, 0, 1);\r\n GridPane.setConstraints(lblEmail, 0, 1, 1, 1);\r\n\r\n gpEntries.add(txtEmail, 1, 1);\r\n GridPane.setConstraints(txtEmail, 1, 1, 1, 1);\r\n\r\n gpEntries.add(lblFirstName, 0, 2);\r\n GridPane.setConstraints(lblFirstName, 0, 2, 1, 1);\r\n\r\n gpEntries.add(txtFirstName, 1, 2);\r\n GridPane.setConstraints(txtFirstName, 1, 2, 1, 1);\r\n\r\n gpEntries.add(lblLastName, 0, 3);\r\n GridPane.setConstraints(lblLastName, 0, 3, 1, 1);\r\n\r\n gpEntries.add(txtLastName, 1, 3);\r\n GridPane.setConstraints(txtLastName, 1, 3, 1, 1);\r\n\r\n gpEntries.add(lblPassword, 0, 4);\r\n GridPane.setConstraints(lblPassword, 0, 4, 1, 1);\r\n\r\n gpEntries.add(txtPassword, 1, 4);\r\n GridPane.setConstraints(txtPassword, 1, 4, 1, 1);\r\n\r\n //Set last label to good width for all labels in GridPane (0, #)\r\n lblPassword.setPrefWidth(75);\r\n\r\n return gpEntries;\r\n\r\n }", "public PTreeCredalSet(PotentialInterval intervalSet){\n super(intervalSet.getVariables());\n ProbabilityTree pTree;\n pTree=intervalsToPTreeCredalSet(intervalSet);\n setTree(pTree);\n }", "public void addExcludeCircle(MapLocation center, float radius) {\n if (first == null) {\n return;\n }\n\n\n\n // If the first point is excluded, rotate until first point is not excluded\n Boundary current = first;\n Boundary prev = null;\n boolean firstIter = true;\n while (current != null) {\n // On first iter, test first point is valid\n if (firstIter) {\n if (current.begin.distanceTo(center) <= radius + bodyRadius) {\n // first point is excluded\n // TODO\n }\n }\n // Now, first point is valid\n\n switch (current.type) {\n case ARC: {\n ArcBoundary currentArc = (ArcBoundary)current;\n // get intersection points\n MapLocation[] intersections = getCircleIntersections(currentArc.begin, strideRadius,\n center, bodyRadius + radius);\n // Select intersection points on the current arc, in order\n MapLocation[] selectedIntersections = selectArcIntersections(currentArc, intersections);\n // Test each segment\n MapLocation segmentBegin = currentArc.begin;\n for (MapLocation segmentEnd : selectedIntersections) {\n MapLocation segmentMiddle = getArcSegmentMiddle(currentArc, segmentBegin, segmentEnd);\n if (segmentMiddle.distanceTo(center) <= radius + bodyRadius) {\n // this segment intersects\n }\n\n segmentBegin = segmentEnd;\n }\n\n }\n break;\n case LINE: {\n\n }\n break;\n }\n\n prev = current;\n current = current.next;\n firstIter = false;\n }\n }", "private GlyphLayout()\n/* */ {\n/* 507 */ this._gvdata = new GVData();\n/* 508 */ this._textRecord = new TextRecord();\n/* 509 */ this._scriptRuns = new ScriptRun();\n/* 510 */ this._fontRuns = new FontRunIterator();\n/* 511 */ this._erecords = new ArrayList(10);\n/* 512 */ this._pt = new Point2D.Float();\n/* 513 */ this._sd = new FontStrikeDesc();\n/* 514 */ this._mat = new float[4];\n/* */ }", "private Arc2D.Double getCircle(double cenX, double cenY, double radius) {\r\n\t\t// Create an arc centered on the passed coordinates, beginning and\r\n\t\t// ending at the same position and forming a closed loop full circle.\r\n\t\treturn getPie(cenX, cenY, radius, 0.0, 360.0);\r\n\t}", "private void createGUI() {\r\n\r\n cgRect modelSpace = new cgRect(0, 0, 11, 11);\r\n cgRect deviceSpace = new cgRect(0, 0, 600, 600);\r\n\r\n cgTransformation tr = new cgTransformation(modelSpace, deviceSpace, false, false);\r\n\r\n /**\r\n *\r\n */\r\n // The formatter of axis' labels will use default locale and pattern\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n // We will use \"fixed size\" axis renderer for all axes\r\n \r\n // 参数一:标签刻度长度大小 参数二:标签数字长度大小 参数三:数字和刻度之间的距离大小,长度为像素\r\n cgAxisRenderer ar = new cgFixedSizeAxisRenderer(5, 15, 50, nf);\r\n\r\n // ----------------------------------------------------\r\n // First axis - values match the model coordinates,\r\n // model origin is at 0.0\r\n // ----------------------------------------------------\r\n \r\n // 第三个参数为显示的数字数\r\n cgRect bbox1 = new cgRect(0, 0, 11, 1);\r\n TickGenerator tg1 = new NumericTickGenerator(1.0);\r\n cgAxisShape axis1 = new cgAxisShape(cgAxisShape.NORTH, bbox1, tg1, ar);\r\n\r\n cgShapeListLayer layer = new cgShapeListLayer();\r\n\r\n layer.addShape(axis1);\r\n\r\n /**\r\n *\r\n */\r\n // ----------------------------------------------------\r\n // Create grid using regular grid renderer\r\n // ----------------------------------------------------\r\n cgRect bbox = new cgRect(0, 0, 10, 10);\r\n TickGenerator htg = new NumericTickGenerator(1.0);\r\n TickGenerator vtg = new NumericTickGenerator(1.0);\r\n cgGridRenderer gr = new cgRegularGridRenderer();\r\n cgGridShape grid = new cgGridShape(bbox, htg, vtg, gr);\r\n\r\n // ----------------------------------------------------\r\n // Create view\r\n // ----------------------------------------------------\r\n// cgShapeListLayer layer = new cgShapeListLayer();\r\n// layer.addShape( grid );\r\n cgContainerModel model = new cgContainerModel();\r\n model.setBoundingBox(modelSpace);\r\n model.addLayer(layer);\r\n\r\n cgPlotView view = new cgPlotView(model, tr);\r\n\r\n // ----------------------------------------------------\r\n // Create plot\r\n // ----------------------------------------------------\r\n cgPlot plot = new cgPlot(view);\r\n\r\n plot.addScrollbar(cgGenericPlotLayout.SOUTH);\r\n plot.addScrollbar(cgGenericPlotLayout.EAST);\r\n\r\n getContentPane().add(plot);\r\n\r\n // ----------------------------------------------------\r\n // Set up listeners\r\n // ----------------------------------------------------\r\n // Set window listener\r\n addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n System.exit(0);\r\n }\r\n });\r\n }" ]
[ "0.5363023", "0.50648284", "0.49419928", "0.49302903", "0.4874179", "0.47826362", "0.47811618", "0.4769074", "0.47641703", "0.47622904", "0.47275093", "0.47194135", "0.47140932", "0.47048506", "0.47043782", "0.47030133", "0.46955553", "0.4695302", "0.46740004", "0.46669745", "0.46661806", "0.4628923", "0.46082273", "0.4605364", "0.4579168", "0.45736706", "0.45675305", "0.45595494", "0.4554869", "0.45414576", "0.45391518", "0.45315707", "0.45308396", "0.4527723", "0.45274237", "0.45256335", "0.45159346", "0.45109296", "0.45072445", "0.44978026", "0.4491678", "0.44901863", "0.44849014", "0.44833696", "0.44811228", "0.44769815", "0.4465407", "0.44635445", "0.44477656", "0.44376892", "0.4436012", "0.44349667", "0.4431619", "0.44271776", "0.44251734", "0.4421232", "0.44180632", "0.44151416", "0.44050092", "0.44046858", "0.43785474", "0.43639952", "0.4357835", "0.43578026", "0.43530327", "0.43526772", "0.43406275", "0.43396175", "0.43338406", "0.43183282", "0.4306723", "0.43057194", "0.43047625", "0.4298868", "0.42976102", "0.42975757", "0.42885473", "0.42846555", "0.4282011", "0.42589366", "0.4257036", "0.42466366", "0.4230472", "0.4218366", "0.42112204", "0.42109597", "0.42095974", "0.42091057", "0.42083147", "0.42039216", "0.4201189", "0.41890568", "0.4185962", "0.41770458", "0.4172349", "0.41557813", "0.4152892", "0.4147561", "0.41453403", "0.41451156" ]
0.70507133
0
TODO Autogenerated method stub
@Override public void afterReturning(Object arg0, Method arg1, Object[] arg2, Object arg3) throws Throwable { System.out.println("-------------------"); System.out.println("After method "); }
{ "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
Constructors Create a detached PaymentmethodRecord
public PaymentmethodRecord() { super(Paymentmethod.PAYMENTMETHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Payment(double amountPaid, int method, Timestamp date, int cardDetailsID, int invoiceID){\n this.recordID = recordID;\n this.amountPaid = amountPaid;\n this.method = method;\n this.date = date;\n this.cardDetailsID = cardDetailsID;\n this.invoiceID = invoiceID;\n }", "public PaymentmethodRecord(Integer paymentmethodid, Integer paymentid, String paymentmethod, BigDecimal paymentamount) {\n super(Paymentmethod.PAYMENTMETHOD);\n\n set(0, paymentmethodid);\n set(1, paymentid);\n set(2, paymentmethod);\n set(3, paymentamount);\n }", "public PaymentCard() {\n\t}", "public PaymentDetails () {\n\t}", "public PaymentMethod()\n {\n }", "public PaymentRecordKey() {\n super();\n }", "public PaymentDetailPojo() {\n }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "public Payment clone() {\n\t\tPayment clonedPayment = new Payment();\n\t\tclonedPayment.setIsReceivedPayment(this.isReceivedPayment);\n\t\tclonedPayment.setPaymentType(this.paymentType);\n\t\tclonedPayment.setPaymentCategory(this.paymentCategory);\n\t\tclonedPayment.setDescription(this.description);\n\t\tclonedPayment.setCurrencyCode(this.currencyCode);\n\t\tclonedPayment.setTotalAmount(this.totalAmount);\n\t\tclonedPayment.setPaymentMethodType(this.paymentMethodType);\n\t\tclonedPayment.setPayerPaymentMethodId(this.payerPaymentMethodId);\n\t\tclonedPayment.setPayeePaymentReceiveMethodId(this.payeePaymentReceiveMethodId);\n\t\tclonedPayment.setCheckNumber(this.checkNumber);\n\t\tclonedPayment.setPayerAccountId(this.payerAccountId);\n\t\tclonedPayment.setPayerAccountName(this.payerAccountName);\n\t\tclonedPayment.setPayerContactId(this.payerContactId);\n\t\tclonedPayment.setPayerContactName(this.payerContactName);\n\t\tclonedPayment.setPayerBillingAddressId(this.payerBillingAddressId);\n\t\tclonedPayment.setPayeeAccountId(this.payeeAccountId);\n\t\tclonedPayment.setPayeeAccountName(this.payeeAccountName);\n\t\tclonedPayment.setPayeeContactId(this.payeeContactId);\n\t\tclonedPayment.setPayeeContactName(this.payeeContactName);\n\t\tclonedPayment.setPayeeBillingAddressId(this.payeeBillingAddressId);\n\t\tclonedPayment.setDepartmentId(this.departmentId);\n\t\tclonedPayment.setCostCenterNumber(this.costCenterNumber);\n\t\tclonedPayment.setPrimaryPaymentReceiverEmpId(this.primaryPaymentReceiverEmpId);\n\t\tclonedPayment.setSecondaryPaymentReceiverEmpId(this.secondaryPaymentReceiverEmpId);\n\t\tclonedPayment.setPrimaryPaymentPayerEmpId(this.primaryPaymentPayerEmpId);\n\t\tclonedPayment.setSecondaryPaymentPayerEmpId(this.secondaryPaymentPayerEmpId);\n\t\tclonedPayment.setNotes(this.notes);\n\t\treturn clonedPayment;\n\t}", "public HLCPaymentDetails() { }", "public PersonRecord() {}", "public BoletoPaymentRequest() {\n\n }", "public VoucherPayment() {\r\n }", "public Builder clearSerializedPaymentDetails() {\n copyOnWrite();\n instance.clearSerializedPaymentDetails();\n return this;\n }", "private Payment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public StudentRecord() {}", "RecordInfo clone();", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "public FundingDetails() {\n super();\n }", "public @NotNull Bidder newBidder();", "public PaymentType builder()\n {\n return new PaymentType(this);\n }", "public OrderInventedRecord(Integer id, String orderSn, Integer sellerId, Integer memberId, String memberName, Byte orderState, Timestamp payTime, Byte paymentStatus, Byte invoiceStatus, String invoiceTitle, Byte invioceState, String invoiceType, BigDecimal moneyProduct, BigDecimal moneyOrder, BigDecimal moneyPaidBalance, BigDecimal moneyPaidReality, BigDecimal moneyGiftcardAmount, BigDecimal moneyCouponcode, BigDecimal moneyLowerAmount, BigDecimal moneyBack, Integer moneyIntegral, Integer lowerId, Integer giftcardId, Integer couponcodeId, String ip, String paymentName, String paymentCode, String mobile, String codeExchange, Byte isSuccess, String email, String zipCode, String remark, Timestamp finishTime, String tradeSn, String source, Byte isGiftCardOrder, Integer productCommentsId, Timestamp createTime, Timestamp updateTime) {\n super(OrderInvented.ORDER_INVENTED);\n\n set(0, id);\n set(1, orderSn);\n set(2, sellerId);\n set(3, memberId);\n set(4, memberName);\n set(5, orderState);\n set(6, payTime);\n set(7, paymentStatus);\n set(8, invoiceStatus);\n set(9, invoiceTitle);\n set(10, invioceState);\n set(11, invoiceType);\n set(12, moneyProduct);\n set(13, moneyOrder);\n set(14, moneyPaidBalance);\n set(15, moneyPaidReality);\n set(16, moneyGiftcardAmount);\n set(17, moneyCouponcode);\n set(18, moneyLowerAmount);\n set(19, moneyBack);\n set(20, moneyIntegral);\n set(21, lowerId);\n set(22, giftcardId);\n set(23, couponcodeId);\n set(24, ip);\n set(25, paymentName);\n set(26, paymentCode);\n set(27, mobile);\n set(28, codeExchange);\n set(29, isSuccess);\n set(30, email);\n set(31, zipCode);\n set(32, remark);\n set(33, finishTime);\n set(34, tradeSn);\n set(35, source);\n set(36, isGiftCardOrder);\n set(37, productCommentsId);\n set(38, createTime);\n set(39, updateTime);\n }", "OrderDTO create(OrderDTO orderDTO);", "public PaymentTransaction() {\n\t\tsuper(\"PAYMENT_TRANSACTION\", edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3);\n\t}", "public EmployeeRecord(){}", "public CashPayment()\n {\n super();\n }", "public TradeRecordStruct() {\n }", "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public PurchaseRequestAttachment() {\r\n }", "public AddPurchaseDetail() {\r\n super();\r\n }", "public PointRecord(){\n \n }", "public Payroll()\r\n\t{\r\n\t\t\r\n\t}", "protected Settlement() {\n // empty constructor\n }", "ShipmentItemBilling createShipmentItemBilling();", "public Merchant() {}", "public DBRecord(String encodedForm)\n\t{\n\t\tselected = false;\n\t\tbindings = new ChunkList<DBBinding>();\n\t\tloadFromEncodedForm(encodedForm);\n\t}", "public Payment fromDto(PaymentRequestDTO dto) {\n Category category = categoryService.findById(dto.getCategoryId());\n PaymentType paymentType = paymentTypeService.findById(dto.getPaymentTypeId());\n Person person = personService.findById(dto.getOwnerId());\n //TODO: make a global date format\n DateTimeFormatter dateFm = DateTimeFormatter.ofPattern(\"yyyy-MM-d\");\n Payment payment = new Payment(category, dto.getAmountCents())\n .transactionDate(LocalDate.parse(dto.getTransactionDate(), dateFm))\n .person(person)\n .paymentType(paymentType);\n return payment;\n }", "public DoctorRecord(Integer id, Integer age, Integer workTime, Byte sex, String name, String url, Byte duty, String hospitalCode, String certificateCode, String professionalCode, Date registerTime, String registerHospital, String mobile, Integer titleId, BigDecimal consultationPrice, String treatDisease, Byte status, Integer userId, Byte isDelete, Timestamp createTime, Timestamp updateTime, Timestamp onDutyTime, Byte isOnDuty, Byte canConsultation, Integer avgAnswerTime, Integer consultationNumber, BigDecimal avgCommentStar, Integer attentionNumber, String userToken, Timestamp authTime, BigDecimal consultationTotalMoney, Byte isFetch, String signature) {\n super(Doctor.DOCTOR);\n\n set(0, id);\n set(1, age);\n set(2, workTime);\n set(3, sex);\n set(4, name);\n set(5, url);\n set(6, duty);\n set(7, hospitalCode);\n set(8, certificateCode);\n set(9, professionalCode);\n set(10, registerTime);\n set(11, registerHospital);\n set(12, mobile);\n set(13, titleId);\n set(14, consultationPrice);\n set(15, treatDisease);\n set(16, status);\n set(17, userId);\n set(18, isDelete);\n set(19, createTime);\n set(20, updateTime);\n set(21, onDutyTime);\n set(22, isOnDuty);\n set(23, canConsultation);\n set(24, avgAnswerTime);\n set(25, consultationNumber);\n set(26, avgCommentStar);\n set(27, attentionNumber);\n set(28, userToken);\n set(29, authTime);\n set(30, consultationTotalMoney);\n set(31, isFetch);\n set(32, signature);\n }", "public InvoiceModel() {\n \n }", "private OrderPayment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PrescriptionDetailCreator() {\n detail=new PrescriptionDetail();\n\n }", "public ServiceOrderRecord(Integer orderId, Integer storeId, String orderSn, Integer userId, Byte orderStatus, String orderStatusName, String subscriber, String mobile, Integer serviceId, Integer technicianId, String technicianName, String serviceDate, String servicePeriod, String addMessage, String adminMessage, String verifyCode, String verifyAdmin, String payCode, String payName, String paySn, BigDecimal moneyPaid, BigDecimal discount, Integer couponId, BigDecimal orderAmount, Timestamp payTime, Timestamp cancelledTime, Timestamp finishedTime, String prepayId, Byte delFlag, Byte verifyType, String cancelReason, Byte type, Byte verifyPay, String aliTradeNo, Timestamp createTime, Timestamp updateTime, String memberCardNo, BigDecimal memberCardBalance, BigDecimal useAccount) {\n super(ServiceOrder.SERVICE_ORDER);\n\n set(0, orderId);\n set(1, storeId);\n set(2, orderSn);\n set(3, userId);\n set(4, orderStatus);\n set(5, orderStatusName);\n set(6, subscriber);\n set(7, mobile);\n set(8, serviceId);\n set(9, technicianId);\n set(10, technicianName);\n set(11, serviceDate);\n set(12, servicePeriod);\n set(13, addMessage);\n set(14, adminMessage);\n set(15, verifyCode);\n set(16, verifyAdmin);\n set(17, payCode);\n set(18, payName);\n set(19, paySn);\n set(20, moneyPaid);\n set(21, discount);\n set(22, couponId);\n set(23, orderAmount);\n set(24, payTime);\n set(25, cancelledTime);\n set(26, finishedTime);\n set(27, prepayId);\n set(28, delFlag);\n set(29, verifyType);\n set(30, cancelReason);\n set(31, type);\n set(32, verifyPay);\n set(33, aliTradeNo);\n set(34, createTime);\n set(35, updateTime);\n set(36, memberCardNo);\n set(37, memberCardBalance);\n set(38, useAccount);\n }", "protected void create(AttributeList attributeList) {\n super.create(attributeList);\n SequenceImpl seq =\n new SequenceImpl(\"PROMO_BONUS_SEQ\", getDBTransaction());\n this.setPromoBonusId(new DBSequence(seq.getSequenceNumber()));\n }", "public Builder clearPayment() { copyOnWrite();\n instance.clearPayment();\n return this;\n }", "public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }", "public CommAreaRecord() {\n\t}", "private ExchangeRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public InvoiceBalance()\n {\n }", "Message create(MessageInvoice invoice);", "static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }", "public SubscriptionRecord() {\n super(Subscription.SUBSCRIPTION);\n }", "public Payment(User to, User from, double cashAmount, String paymentName) {\n this.cashAmount = cashAmount;\n this.to = to;\n this.from = from;\n this.paymentName = paymentName;\n paymentID = rand.nextInt(max - min + 1) + min;\n }", "public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "public ARecord() {\n super(A.A);\n }", "@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateTransaction() {\n this.sourceId = Optional.empty();\n this.type = Optional.empty();\n this.description = Optional.empty();\n this.balance = Optional.empty();\n this.inputDate = Optional.empty();\n }", "int insertSelective(AccountPaymentMethodEntityWithBLOBs record);", "private ReviewRecord newInstanceWithPrimaryKey(String customerCode, Integer bookId) {\n\t\tReviewRecord review = new ReviewRecord ();\n review.setCustomerCode(customerCode); \n review.setBookId(bookId); \n\t\treturn review;\n\t}", "int insertSelective(PurchasePayment record);", "public DoctorRecord() {\n super(Doctor.DOCTOR);\n }", "@Override\n\tprotected Payment createTarget() {\n\t\treturn null;\n\t}", "int insert(PurchasePayment record);", "public CharacterPartyRecord() {\n super(CharacterParty.CHARACTER_PARTY);\n }", "public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }", "public SupplyOrder(SupplyOrder otherOrder){\n if(otherOrder!=null){\n this.orderID=otherOrder.getOrderID();\n this.setCustomerID(otherOrder.getCustomerID());\n this.setProductID(otherOrder.getProductID());\n this.setOrderDate(otherOrder.getOrderDate());\n this.setAmount(otherOrder.getAmount());\n }\n else{\n this.orderID=0;\n this.setCustomerID(\"\");\n this.setProductID(\"\");\n this.setOrderDate(new LocalDate());\n this.setAmount(0.0);\n }\n }", "void insert(PaymentTrade record);", "public Transaction() {\n }", "public PromotionVoucherModel()\n\t{\n\t\tsuper();\n\t}", "public ProductCode() {\n }", "public Reimbursement(){}", "private PaymentType(String payment) {\n this.payment = payment;\n }", "int insertSelective(Payment record);", "public Related() {\n }", "public Product() {\n\t}", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "public Bid() {}", "int insert(Payment record);", "public static NewPaymentPG newPaymentPG(PaymentPG prototype) {\n return new PaymentPGImpl(prototype);\n }", "public Merchant() {\n\n\t}", "public Partage() {\n }", "public XxGamMaPaymentReqVOImpl() {\n }", "public Long createRecord(Record object);", "protected PricingModel() {\n }", "public AvroPerson() {}", "public Relationship() {\r\n\t}", "public LateComingRecord() {\n\t\t}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public PayrollRecord(String employee, double pay) {\n employeeName = employee;\n currentPay = pay;\n }", "public FeeAccount ()\n {\n }", "int insert(AccountPaymentMethodEntityWithBLOBs record);", "public Transaction() {\n this(0, 0, null);\n }", "public CreditCard ()\r\n\t{\r\n\t\t\r\n\t}", "public Product() {}", "public PolicyDetailsRecord(Integer policyId, String insuranceType, String productName, String policyDetails, Integer personDetailsId, Integer policyTypeId, String pNumber) {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\n\t\tsetValue(0, policyId);\n\t\tsetValue(1, insuranceType);\n\t\tsetValue(2, productName);\n\t\tsetValue(3, policyDetails);\n\t\tsetValue(4, personDetailsId);\n\t\tsetValue(5, policyTypeId);\n\t\tsetValue(6, pNumber);\n\t}", "public Product() { }", "public Product() { }", "public ProfileBankAccount() {\r\n }", "public Bank() {\n\t\tsuper();\n\t}", "public static Payment createEntity(EntityManager em) {\n Payment payment = new Payment()\n .type(DEFAULT_TYPE)\n .cartName(DEFAULT_CART_NAME)\n .cardNumber(DEFAULT_CARD_NUMBER)\n .expiryMonth(DEFAULT_EXPIRY_MONTH)\n .expiryYear(DEFAULT_EXPIRY_YEAR)\n .cvc(DEFAULT_CVC)\n .holderName(DEFAULT_HOLDER_NAME);\n return payment;\n }" ]
[ "0.65164423", "0.63780266", "0.6094795", "0.6068855", "0.60629624", "0.6018625", "0.59409237", "0.58803046", "0.583397", "0.570147", "0.56778246", "0.5601248", "0.55922633", "0.5439253", "0.54266596", "0.5373185", "0.53729117", "0.53569674", "0.53407997", "0.5307374", "0.52982914", "0.5296835", "0.5261982", "0.52238303", "0.52148116", "0.5199277", "0.51860356", "0.51578075", "0.51295954", "0.51238275", "0.5120673", "0.5104424", "0.50914836", "0.50797457", "0.5075007", "0.507141", "0.5058844", "0.50526506", "0.5051251", "0.50505894", "0.504334", "0.50432783", "0.50330824", "0.50298417", "0.50134254", "0.5010932", "0.5004458", "0.5003213", "0.499984", "0.49982622", "0.49962762", "0.49944526", "0.49912795", "0.49844652", "0.4980641", "0.4975838", "0.49731442", "0.49665818", "0.49627757", "0.49565744", "0.4949451", "0.49446478", "0.49368986", "0.4929752", "0.49220052", "0.49124822", "0.4907062", "0.4900933", "0.48965925", "0.4882539", "0.4881207", "0.4868164", "0.48677352", "0.48617962", "0.48598897", "0.485634", "0.4835767", "0.48350155", "0.48302624", "0.48225406", "0.48187247", "0.48108694", "0.48044392", "0.48039365", "0.4801104", "0.47911212", "0.47892734", "0.47852093", "0.4784935", "0.4779741", "0.47722968", "0.47695428", "0.4769488", "0.47674784", "0.47656694", "0.4764498", "0.4764498", "0.47616816", "0.47610563", "0.47602087" ]
0.71120197
0
Create a detached, initialised PaymentmethodRecord
public PaymentmethodRecord(Integer paymentmethodid, Integer paymentid, String paymentmethod, BigDecimal paymentamount) { super(Paymentmethod.PAYMENTMETHOD); set(0, paymentmethodid); set(1, paymentid); set(2, paymentmethod); set(3, paymentamount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public Payment(double amountPaid, int method, Timestamp date, int cardDetailsID, int invoiceID){\n this.recordID = recordID;\n this.amountPaid = amountPaid;\n this.method = method;\n this.date = date;\n this.cardDetailsID = cardDetailsID;\n this.invoiceID = invoiceID;\n }", "public PaymentRecordKey() {\n super();\n }", "public PaymentCard() {\n\t}", "public PaymentMethod()\n {\n }", "public PaymentDetails () {\n\t}", "ShipmentItemBilling createShipmentItemBilling();", "public Payment clone() {\n\t\tPayment clonedPayment = new Payment();\n\t\tclonedPayment.setIsReceivedPayment(this.isReceivedPayment);\n\t\tclonedPayment.setPaymentType(this.paymentType);\n\t\tclonedPayment.setPaymentCategory(this.paymentCategory);\n\t\tclonedPayment.setDescription(this.description);\n\t\tclonedPayment.setCurrencyCode(this.currencyCode);\n\t\tclonedPayment.setTotalAmount(this.totalAmount);\n\t\tclonedPayment.setPaymentMethodType(this.paymentMethodType);\n\t\tclonedPayment.setPayerPaymentMethodId(this.payerPaymentMethodId);\n\t\tclonedPayment.setPayeePaymentReceiveMethodId(this.payeePaymentReceiveMethodId);\n\t\tclonedPayment.setCheckNumber(this.checkNumber);\n\t\tclonedPayment.setPayerAccountId(this.payerAccountId);\n\t\tclonedPayment.setPayerAccountName(this.payerAccountName);\n\t\tclonedPayment.setPayerContactId(this.payerContactId);\n\t\tclonedPayment.setPayerContactName(this.payerContactName);\n\t\tclonedPayment.setPayerBillingAddressId(this.payerBillingAddressId);\n\t\tclonedPayment.setPayeeAccountId(this.payeeAccountId);\n\t\tclonedPayment.setPayeeAccountName(this.payeeAccountName);\n\t\tclonedPayment.setPayeeContactId(this.payeeContactId);\n\t\tclonedPayment.setPayeeContactName(this.payeeContactName);\n\t\tclonedPayment.setPayeeBillingAddressId(this.payeeBillingAddressId);\n\t\tclonedPayment.setDepartmentId(this.departmentId);\n\t\tclonedPayment.setCostCenterNumber(this.costCenterNumber);\n\t\tclonedPayment.setPrimaryPaymentReceiverEmpId(this.primaryPaymentReceiverEmpId);\n\t\tclonedPayment.setSecondaryPaymentReceiverEmpId(this.secondaryPaymentReceiverEmpId);\n\t\tclonedPayment.setPrimaryPaymentPayerEmpId(this.primaryPaymentPayerEmpId);\n\t\tclonedPayment.setSecondaryPaymentPayerEmpId(this.secondaryPaymentPayerEmpId);\n\t\tclonedPayment.setNotes(this.notes);\n\t\treturn clonedPayment;\n\t}", "public Builder clearSerializedPaymentDetails() {\n copyOnWrite();\n instance.clearSerializedPaymentDetails();\n return this;\n }", "public PaymentDetailPojo() {\n }", "int insertSelective(AccountPaymentMethodEntityWithBLOBs record);", "public PersonRecord() {}", "int insert(PurchasePayment record);", "public @NotNull Bidder newBidder();", "@Override\n\tprotected Payment createTarget() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "int insertSelective(PurchasePayment record);", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "protected void create(AttributeList attributeList) {\n super.create(attributeList);\n SequenceImpl seq =\n new SequenceImpl(\"PROMO_BONUS_SEQ\", getDBTransaction());\n this.setPromoBonusId(new DBSequence(seq.getSequenceNumber()));\n }", "void insert(PaymentTrade record);", "int insert(Payment record);", "public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }", "int insertSelective(Payment record);", "int insert(AccountPaymentMethodEntityWithBLOBs record);", "public void resetNew() {\n setC_Payment_ID(0);\t\t//\tforces new Record\n set_ValueNoCheck(\"DocumentNo\", null);\n setDocAction(DOCACTION_Prepare);\n setDocStatus(DOCSTATUS_Drafted);\n setProcessed(false);\n setPosted(false);\n setIsReconciled(false);\n setIsAllocated(false);\n setIsOnline(false);\n setIsDelayedCapture(false);\n //\tsetC_BPartner_ID(0);\n setC_Invoice_ID(0);\n setC_Order_ID(0);\n setC_Charge_ID(0);\n setC_Project_ID(0);\n setIsPrepayment(false);\n }", "public HLCPaymentDetails() { }", "public PaymentType builder()\n {\n return new PaymentType(this);\n }", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "public abstract ExternalRecord createExternalRecord()\r\n\t\t\tthrows Exception;", "public static PostponeRecord createEntity(EntityManager em) {\n PostponeRecord postponeRecord = new PostponeRecord()\n .driverId(DEFAULT_DRIVER_ID)\n .vehicleId(DEFAULT_VEHICLE_ID)\n .companyId(DEFAULT_COMPANY_ID)\n .receiptNumber(DEFAULT_RECEIPT_NUMBER)\n .operationTime(DEFAULT_OPERATION_TIME)\n .plateNumber(DEFAULT_PLATE_NUMBER)\n .driverName(DEFAULT_DRIVER_NAME)\n .postponeData(DEFAULT_POSTPONE_DATA)\n .remark(DEFAULT_REMARK);\n return postponeRecord;\n }", "Message create(MessageInvoice invoice);", "public Long createRecord(Record object);", "RecordInfo clone();", "private Payment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public OrderInventedRecord(Integer id, String orderSn, Integer sellerId, Integer memberId, String memberName, Byte orderState, Timestamp payTime, Byte paymentStatus, Byte invoiceStatus, String invoiceTitle, Byte invioceState, String invoiceType, BigDecimal moneyProduct, BigDecimal moneyOrder, BigDecimal moneyPaidBalance, BigDecimal moneyPaidReality, BigDecimal moneyGiftcardAmount, BigDecimal moneyCouponcode, BigDecimal moneyLowerAmount, BigDecimal moneyBack, Integer moneyIntegral, Integer lowerId, Integer giftcardId, Integer couponcodeId, String ip, String paymentName, String paymentCode, String mobile, String codeExchange, Byte isSuccess, String email, String zipCode, String remark, Timestamp finishTime, String tradeSn, String source, Byte isGiftCardOrder, Integer productCommentsId, Timestamp createTime, Timestamp updateTime) {\n super(OrderInvented.ORDER_INVENTED);\n\n set(0, id);\n set(1, orderSn);\n set(2, sellerId);\n set(3, memberId);\n set(4, memberName);\n set(5, orderState);\n set(6, payTime);\n set(7, paymentStatus);\n set(8, invoiceStatus);\n set(9, invoiceTitle);\n set(10, invioceState);\n set(11, invoiceType);\n set(12, moneyProduct);\n set(13, moneyOrder);\n set(14, moneyPaidBalance);\n set(15, moneyPaidReality);\n set(16, moneyGiftcardAmount);\n set(17, moneyCouponcode);\n set(18, moneyLowerAmount);\n set(19, moneyBack);\n set(20, moneyIntegral);\n set(21, lowerId);\n set(22, giftcardId);\n set(23, couponcodeId);\n set(24, ip);\n set(25, paymentName);\n set(26, paymentCode);\n set(27, mobile);\n set(28, codeExchange);\n set(29, isSuccess);\n set(30, email);\n set(31, zipCode);\n set(32, remark);\n set(33, finishTime);\n set(34, tradeSn);\n set(35, source);\n set(36, isGiftCardOrder);\n set(37, productCommentsId);\n set(38, createTime);\n set(39, updateTime);\n }", "public VoucherPayment() {\r\n }", "public Builder clearPaymentPreimage() {\n \n paymentPreimage_ = getDefaultInstance().getPaymentPreimage();\n onChanged();\n return this;\n }", "public void create(Singer newRecord);", "public BoletoPaymentRequest() {\n\n }", "OrderDTO create(OrderDTO orderDTO);", "int insert(BusinessRepayment record);", "Account create();", "void create(Order order);", "public Builder clearPayment() { copyOnWrite();\n instance.clearPayment();\n return this;\n }", "int insert(RepaymentPlanInfoUn record);", "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Invoice create() {\r\n\t\treturn new Invoice();\r\n\t}", "int insertSelective(SsPaymentBillPerson record);", "public DBRecord(String encodedForm)\n\t{\n\t\tselected = false;\n\t\tbindings = new ChunkList<DBBinding>();\n\t\tloadFromEncodedForm(encodedForm);\n\t}", "int insertSelective(RepaymentPlanInfoUn record);", "public static Payment createEntity(EntityManager em) {\n Payment payment = new Payment()\n .type(DEFAULT_TYPE)\n .cartName(DEFAULT_CART_NAME)\n .cardNumber(DEFAULT_CARD_NUMBER)\n .expiryMonth(DEFAULT_EXPIRY_MONTH)\n .expiryYear(DEFAULT_EXPIRY_YEAR)\n .cvc(DEFAULT_CVC)\n .holderName(DEFAULT_HOLDER_NAME);\n return payment;\n }", "public DriverForCreateBuilder() {\r\n driverForCreate = new DriverForCreate();\r\n }", "public PrescriptionDetailCreator() {\n detail=new PrescriptionDetail();\n\n }", "public Invoice createInvoice(Order order);", "private ExchangeRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public TradeRecordStruct() {\n }", "RecordSet generatePremiumAccounting(Record inputRecord);", "Delivery createDelivery();", "public BookRecord() {\n super(Book.BOOK);\n }", "public Builder clearPaymentHash() {\n \n paymentHash_ = getDefaultInstance().getPaymentHash();\n onChanged();\n return this;\n }", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }", "int insert(SsPaymentBillPerson record);", "public DataRecord getEmptyCreationRecord() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getNewActionRecord(creation.getName(), currentRole,\r\n getLanguage(), null);\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.UNKNOWN_ACTION\", e);\r\n }\r\n }", "public StudentRecord() {}", "public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }", "private ReviewRecord newInstanceWithPrimaryKey(String customerCode, Integer bookId) {\n\t\tReviewRecord review = new ReviewRecord ();\n review.setCustomerCode(customerCode); \n review.setBookId(bookId); \n\t\treturn review;\n\t}", "public PaymentTransaction() {\n\t\tsuper(\"PAYMENT_TRANSACTION\", edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3);\n\t}", "public Payment saveNewPayment(PaymentFormInDTO dto){\n User user = userService.findDummyTestUser();\n Payment payment = new Payment();\n payment.setUser(user);\n PaymentForm mappedForm = beanMapper.map(dto, PaymentForm.class);\n PaymentForm savedForm = paymentFormRepository.save(mappedForm);\n payment.setForm(savedForm);\n payment.setCreationDate(LocalDateTime.now());\n if (dto.isAddToBasket()){\n payment.setStatus(PaymentStatus.CREATED);\n } else {\n payment.setStatus(PaymentStatus.COMPLETED);\n payment.setCompletedDate(LocalDateTime.now());\n }\n return paymentRepository.save(payment);\n }", "@Override\n public EntityDealer create(String dealerId) {\n EntityDealer entityDealer = new EntityDealerImpl();\n\n entityDealer.setNew(true);\n entityDealer.setPrimaryKey(dealerId);\n\n return entityDealer;\n }", "@PostMapping(\"/payments\")\n\tpublic Payment addPayment(@RequestBody Payment thePayment) {\n\t\t\n\t\tthePayment.setId(0);\n\t\t\n\t\tpaymentService.save(thePayment);\n\t\t\n\t\treturn thePayment;\n\t}", "public LateComingRecord() {\n\t\t}", "public PurchaseRequestAttachment() {\r\n }", "protected abstract DBObject getNewObject();", "@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateTransaction() {\n this.sourceId = Optional.empty();\n this.type = Optional.empty();\n this.description = Optional.empty();\n this.balance = Optional.empty();\n this.inputDate = Optional.empty();\n }", "public static NewPaymentPG newPaymentPG(PaymentPG prototype) {\n return new PaymentPGImpl(prototype);\n }", "MedicalRecord createMedicalRecord(HttpSession session, MedicalRecord medicalRecord);", "@Override\n public BankPatch createNewPatch() {\n return super.createNewPatch();\n }", "public void create(){}", "public Optional<Payment> savePayment(Payment payment);", "public Builder clearPaymentDetailsVersion() {\n copyOnWrite();\n instance.clearPaymentDetailsVersion();\n return this;\n }", "public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}", "public static void createPayment() throws IOException {\t\t\n\t\tDate date = new Date((long) random(100000000));\n\t\tString date2 = \"'19\" + date.getYear() + \"-\" + (random(12)+1) + \"-\" + (random(28)+1) + \"'\";\n\t\tint amount = random(10000);\n\t\t\n\t\twriter.write(\"INSERT INTO Payment (Id, Date, CCNum, amount) Values (\" + pid++ +\", \" \n\t\t\t\t+ date2 + \", '\" + CCnumbers.get(random(CCnumbers.size())) + \"', \" + amount + line);\n\t\twriter.flush();\n\t}", "Shipment createShipment();", "protected abstract Transaction createAndAdd();", "public Record makeReferenceRecord(RecordOwner recordOwner)\n {\n try {\n return (Record)this.getRecord().clone();\n } catch (CloneNotSupportedException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "void setPaymentMethod(PaymentMethod paymentMethod);", "void createRuntimeRecord(ScriptRuntimeDTO record) throws PersistenceException;", "public FundingDetails() {\n super();\n }", "static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }", "@Override\n\tpublic boolean createOrderBill(OrderBill orderBill) {\n\t\treturn false;\n\t}", "private Prize createPrizeForTest() {\r\n\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();\r\n em.getTransaction().begin();\r\n\r\n PrizeType prizeType = new PrizeType();\r\n prizeType.setDescription(\"desc\");\r\n prizeType.setPrizeTypeId(2L);\r\n em.persist(prizeType);\r\n\r\n Prize prize = new Prize();\r\n prize.setAmount(new Double(100));\r\n prize.setCreateDate(new Date());\r\n prize.setPlace(new Integer(1));\r\n prize.setType(prizeType);\r\n em.persist(prize);\r\n em.getTransaction().commit();\r\n em.close();\r\n\r\n return prize;\r\n }", "public Merchant() {}", "@Test(dataProvider=\"newPayment\")\n\tpublic void createPaymentTest(Long creditCardNumber, int secureCode, int zipcode, boolean expected) throws ClassNotFoundException, IOException, RegistrationException, SQLException {\n\t\tthePayment = new Payment(creditCardNumber, secureCode, zipcode);\n\t\tpaymentId = paymentDAO.createPayment(thePayment);\n\t\t// equivalent to isCreated = (actual != 0) ? true : false\n\t\tisCreated = (paymentId != 0);\n\t\tassertThat(isCreated , equalTo(expected));\n\t\t\n\t}", "@Override\n\tpublic int create(Proveedor r) {\n\t\treturn 0;\n\t}", "Booking createBooking(Booking newBooking) throws Exception;", "PaymentHandler createPaymentHandler();", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "protected Attribute createAttribute(DapAttribute dapattr) {\n return createAttribute(null, dapattr);\n }", "ShipmentAttribute createShipmentAttribute();" ]
[ "0.673309", "0.59535164", "0.57069796", "0.553134", "0.547601", "0.542447", "0.53953266", "0.5392375", "0.5353659", "0.52747464", "0.5252016", "0.52276653", "0.52124155", "0.52070653", "0.5197398", "0.5194695", "0.5169557", "0.51516736", "0.5149979", "0.51415884", "0.5130274", "0.5120193", "0.5114727", "0.5105066", "0.5101938", "0.5095614", "0.5086579", "0.50711673", "0.5067542", "0.504201", "0.50348306", "0.50275743", "0.5000896", "0.49722546", "0.49722347", "0.4971646", "0.49638298", "0.49606782", "0.49552014", "0.49468964", "0.49387226", "0.49120605", "0.4906177", "0.48960283", "0.4882904", "0.48681295", "0.48667595", "0.4853946", "0.48534778", "0.48486555", "0.4841727", "0.48338807", "0.4824494", "0.4821926", "0.48183802", "0.4817643", "0.4811256", "0.48104805", "0.4801983", "0.47993818", "0.47971967", "0.4791613", "0.4785214", "0.47832337", "0.47782984", "0.4776798", "0.4767039", "0.47614792", "0.47584674", "0.47537097", "0.4725246", "0.47224957", "0.47213578", "0.47160673", "0.47077578", "0.47053126", "0.4703162", "0.4700849", "0.46946087", "0.46938342", "0.4691752", "0.46893904", "0.4689061", "0.4683492", "0.46773237", "0.46768737", "0.46767238", "0.46756887", "0.46753174", "0.46729982", "0.46700338", "0.46660852", "0.46509323", "0.4650803", "0.46484935", "0.4643624", "0.4631451", "0.4626824", "0.4620792", "0.4620422" ]
0.58049047
2
Returns all the beans.xml from METAINF and WEBINF folders
private List<IFile> getAllBeansXmls() { List<IFile> beansXmls = new ArrayList<IFile>(); // From source folders Set<IFolder> sourceFolders = getSourceFoldersForProjectsSet(); for (IFolder source : sourceFolders) { IResource beansXml = source.findMember(new Path("/META-INF/beans.xml")); //$NON-NLS-1$ if(beansXml!=null && beansXml instanceof IFile) { beansXmls.add((IFile)beansXml); } } // From WEB-INF folder IVirtualComponent com = ComponentCore.createComponent(validatingProject); if(com!=null) { IVirtualFile beansXml = com.getRootFolder().getFile(new Path("/WEB-INF/beans.xml")); //$NON-NLS-1$ if(beansXml!=null && beansXml.getUnderlyingFile().isAccessible()) { beansXmls.add(beansXml.getUnderlyingFile()); } } return beansXmls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getApplicationContextResourcePaths();", "protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }", "private String getZkServers(ServletContext context){\n Configuration config = new Configuration();\n config.addResource(\"pxf-site.xml\");\n String zk_hosts = config.get(\"zookeeper\");\n if(LOG.isDebugEnabled())\n LOG.debug(\"zookeeper server is :\" + zk_hosts);\n\n return zk_hosts;\n }", "private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "public static void main(String[] args) throws Exception {\n \tString filename = \"boGen.conf.xml\";\n\n \ttry{\n\t\t\tSAXReader saxReader = new SAXReader();\n\t\t\tDocument document = saxReader.read(filename);\n\n\t\t\tList<Node> boList = document.selectNodes(\"//bo\");\n\n\t \tfor(Node bo : boList)\n\t \t{\n\t \t\tString boName = bo.selectSingleNode(\"@name\").getStringValue();\n\t\t String className = bo.selectSingleNode(\"@class\").getStringValue();\n\n\t\t Class<? extends BusinessObject> boClass = (Class<? extends BusinessObject>)Class.forName( className );\n\t\t PropertyDescriptor[] props = PropertyUtils.getPropertyDescriptors( boClass );\n\n\t\t StringBuffer sb = new StringBuffer( 4000 );\n\t\t sb.append( \"<beans xmlns=\\\"http://www.springframework.org/schema/beans\\\"\\r\\n\" +\n\t\t \t\t\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\\r\\n\" +\n\t\t \t\t\" xmlns:p=\\\"http://www.springframework.org/schema/p\\\"\\r\\n\" +\n\t\t \t\t\" xsi:schemaLocation=\\\"http://www.springframework.org/schema/beans\\r\\n\" +\n\t\t \t\t\" http://www.springframework.org/schema/beans/spring-beans-2.0.xsd\\\">\\r\\n\" +\n\t\t \t\t\"\\r\\n\" +\n\t\t \t\t\" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"\\\" parent=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-parentBean\\\" />\\r\\n\" +\n\t\t \t\t\"\\r\\n\" +\n\t\t \t\t\" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-parentBean\\\" abstract=\\\"true\\\" parent=\\\"BusinessObjectEntry\\\"\\r\\n\" +\n\t\t \t\t\" p:businessObjectClass=\\\"\" );\n\t\t sb.append( boClass.getName() );\n\t\t sb.append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:titleAttribute=\\\"\" );\n\t\t sb.append( \"FILL ME IN\" );\n\t\t sb.append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:objectLabel=\\\"\" );\n\t\t sb.append( camelCaseToString( boClass.getSimpleName() ) );\n\t\t sb.append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:inquiryDefinition-ref=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-inquiryDefinition\\\"\\r\\n\" );\n\t\t sb.append( \" p:lookupDefinition-ref=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-lookupDefinition\\\" >\\r\\n\" );\n\t\t sb.append( \" <property name=\\\"attributes\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append( \" <ref bean=\\\"\" ).append( boClass.getSimpleName() ).append( '-' );\n\t\t sb.append( p.getName() );\n\t\t sb.append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\"\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\n\t\t if ( p.getName().equals( \"versionNumber\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"AttributeReferenceDummy-versionNumber\" ) );\n\n\t\t } /*else if ( p.getName().endsWith(\"chartOfAccountsCode\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"Chart-chartOfAccountsCode\" ) );\n\n\t\t } else if ( p.getName().endsWith(\"organizationCode\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"Org-organizationCode\" ) );\n\n\t\t } else if ( p.getName().endsWith(\"accountNumber\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"Account-accountNumber\" ) );\n\n\t\t } else if ( p.getName().equals(\"active\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"GenericAttributes-activeIndicator\" ) );\n\n\t\t } else if ( p.getName().equals(\"codeAndDescription\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBeanWithLabel(boClass, p.getName(), \"CommonField-CodeAndDescription\", camelCaseToString(boClass.getSimpleName()) ) );\n\n\t\t } else if ( p.getPropertyType() == Boolean.TYPE ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"GenericAttributes-genericBoolean\" ) );\n\n\t\t } else if ( p.getPropertyType() == Date.class && !p.getName().equals(\"lastUpdateDate\")) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBeanWithLabel(boClass, p.getName(), \"GenericAttributes-genericDate\", camelCaseToString(p.getName()) ) );\n\n\t\t } else if( p.getName().equals(\"lastUpdateDate\")) {\n\t\t \tsb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBeanWithLabel(boClass, p.getName(), \"GenericAttributes-genericTimestamp\", camelCaseToString(p.getName()) ) );\n\t\t }\n\t\t */else {\n\t\t // attribute bean\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t // attribute parent bean\n\t\t sb.append( \" <bean id=\\\"\" ).append( boClass.getSimpleName() ).append( '-' );\n\t\t sb.append( p.getName() ).append( \"-parentBean\\\" parent=\\\"AttributeDefinition\\\" abstract=\\\"true\\\"\\r\\n\" );\n\t\t sb.append( \" p:name=\\\"\" ).append( p.getName() ).append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:forceUppercase=\\\"false\\\"\\r\\n\" );\n\t\t sb.append( \" p:label=\\\"\" ).append( camelCaseToString(p.getName()) ).append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:shortLabel=\\\"\" ).append( camelCaseToString(p.getName()) ).append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:maxLength=\\\"10\\\"\\r\\n\" );\n\t\t sb.append( \" p:required=\\\"false\\\" >\\r\\n\" );\n\t\t sb.append( \" <property name=\\\"validationPattern\\\" >\\r\\n\" +\n\t\t \" <bean parent=\\\"AnyCharacterValidationPattern\\\"\\r\\n\" +\n\t\t \" p:allowWhitespace=\\\"true\\\" />\\r\\n\" +\n\t\t \" </property>\\r\\n\" +\n\t\t \" <property name=\\\"control\\\" >\\r\\n\");\n\t\t if(p.getName().equals(\"lastUpdateDate\"))\t{\n\t\t \tsb.append( \" <bean parent=\\\"HiddenControlDefinition\\\" />\\r\\n\");\n\t\t }\n\t\t else if (p.getName().equals(\"lastUpdateId\"))\t{\n\t\t \tsb.append( \" <bean parent=\\\"HiddenControlDefinition\\\" />\\r\\n\");\n\t\t }\n\t\t else {\n\t\t \tsb.append( \" <bean parent=\\\"TextControlDefinition\\\"\\r\\n\" +\n\t\t \t\" p:size=\\\"10\\\" />\\r\\n\");\n\t\t }\n\t\t sb.append( \" </property>\\r\\n\" +\n\t\t \" </bean>\\r\\n\" );\n\n\t\t }\n\t\t sb.append( \"\\r\\n\" );\n\t\t }\n\t\t }\n\t\t // inquiry definition\n\t\t sb.append(\"<!-- Business Object Inquiry Definition -->\\r\\n\");\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( getSimpleParentBeanReference( boClass, \"inquiryDefinition\" ) );\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( \" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-inquiryDefinition-parentBean\\\" abstract=\\\"true\\\" parent=\\\"InquiryDefinition\\\"\\r\\n\" +\n\t\t \t\t\" p:title=\\\"\" );\n\t\t sb.append( camelCaseToString(boClass.getSimpleName() ) );\n\t\t sb.append( \" Inquiry\\\" >\\r\\n\" +\n\t\t \t\t\" <property name=\\\"inquirySections\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" +\n\t\t \t\t\" <bean parent=\\\"InquirySectionDefinition\\\"\\r\\n\" +\n\t\t \t\t\" p:title=\\\"\" );\n\t\t sb.append( camelCaseToString(boClass.getSimpleName() ) );\n\t\t sb.append( \" Attributes\\\"\\r\\n\" +\n\t\t \t\t\" p:numberOfColumns=\\\"1\\\" >\\r\\n\" +\n\t\t \t\t\" <property name=\\\"inquiryFields\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append(\" <bean parent=\\\"FieldDefinition\\\" p:attributeName=\\\"\" );\n\t\t sb.append( p.getName() ).append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\"\\r\\n\" );\n\n\t\t sb.append(\"<!-- Business Object Lookup Definition -->\");\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( getSimpleParentBeanReference( boClass, \"lookupDefinition\" ) );\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( \" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-lookupDefinition-parentBean\\\" abstract=\\\"true\\\" parent=\\\"LookupDefinition\\\"\\r\\n\" +\n\t\t \" p:title=\\\"\" );\n\t\t sb.append( camelCaseToString(boClass.getSimpleName() ) );\n\t\t sb.append( \" Lookup\\\" \\r\\n\" );\n\t\t sb.append( \" >\\r\\n\" );\n\t\t sb.append( \" <property name=\\\"defaultSort\\\" >\\r\\n\" +\n\t\t \t\t\" <bean parent=\\\"SortDefinition\\\">\\r\\n\" +\n\t\t \t\t\" <property name=\\\"attributeNames\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" +\n\t\t \t\t\" <value>FILL ME IN</value>\\r\\n\" +\n\t\t \t\t\" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" <property name=\\\"sortAscending\\\" value=\\\"true\\\" />\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" <property name=\\\"lookupFields\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append(\" <bean parent=\\\"FieldDefinition\\\" p:attributeName=\\\"\" );\n\t\t sb.append( p.getName() ).append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" <property name=\\\"resultFields\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append(\" <bean parent=\\\"FieldDefinition\\\" p:attributeName=\\\"\" );\n\t\t sb.append( p.getName() ).append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" );\n\t\t sb.append( \"\\r\\n</beans>\" );\n\n\t\t FileWriter outputfile = null;\n\t\t try\n\t\t {\n\t\t \toutputfile = new FileWriter(getOutputFilePath(className, false) + boName + \".xml\");\n\t\t \toutputfile.write(sb.toString());\n\t\t }\n\t\t catch(IOException e)\n\t\t {\n\t\t \tSystem.err.println(\"Error writing bean data to file.\");\n\t\t }\n\t\t finally {\n\t\t \toutputfile.close();\n\t\t }\n\t \t}\n \t}\n \tcatch(DocumentException e)\n \t{\n \t\tSystem.err.println(\"Error parsing xml document.\");\n \t}\n }", "private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }", "AppConfiguration getApplicationList()\n throws SAXException, IOException;", "@RequestMapping(\"/web/**\")\n\tpublic String allFolders() {\n\t System.out.println(\"In /web/**\");\n\t return \"success\";\n\t}", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "private static ArrayList<File> getLocalRootHiveXmlDirectories(\n Context ctx,\n NwdDb db) {\n\n HiveRoot localRoot = UtilsHive.getLocalHiveRoot(ctx, db);\n\n return getFoldersForHiveRoot(localRoot, true, false);\n }", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "@Override\n public void scan() throws Exception {\n if (getContexts() == null) {\n throw new IllegalArgumentException(\"No HandlerContainer\");\n }\n\n Resource r = Resource.newResource(getWebAppDir());\n if (!r.exists()) {\n throw new IllegalArgumentException(\"No such webapps resource \" + r);\n }\n\n if (!r.isDirectory()) {\n throw new IllegalArgumentException(\"Not directory webapps resource \" + r);\n }\n\n String[] files = r.list();\n\n files:\n for (int f = 0; (files != null) && (f < files.length); f++) {\n String context = files[f];\n\n if (context.equalsIgnoreCase(\"CVS/\") || context.equalsIgnoreCase(\"CVS\") || context.startsWith(\".\")) {\n continue;\n }\n\n Resource app = r.addPath(r.encode(context));\n\n if (context.toLowerCase().endsWith(\".war\") || context.toLowerCase().endsWith(\".jar\")) {\n context = context.substring(0, context.length() - 4);\n Resource unpacked = r.addPath(context);\n\n if ((unpacked != null) && unpacked.exists() && unpacked.isDirectory()) {\n Log.debug(context + \" already exists.\");\n continue;\n }\n } else if (!app.isDirectory()) {\n Log.debug(app + \" Not directory\");\n continue;\n }\n\n if (context.equalsIgnoreCase(\"root\") || context.equalsIgnoreCase(\"root/\")) {\n context = URIUtil.SLASH;\n } else {\n context = \"/\" + context;\n }\n if (context.endsWith(\"/\") && (context.length() > 0)) {\n context = context.substring(0, context.length() - 1);\n }\n\n // Check the context path has not already been added or the webapp\n // itself is not already deployed\n if (!getAllowDuplicates()) {\n Handler[] installed = getContexts().getChildHandlersByClass(ContextHandler.class);\n for (int i = 0; i < installed.length; i++) {\n ContextHandler c = (ContextHandler) installed[i];\n\n if (context.equals(c.getContextPath())) {\n if (Log.isDebugEnabled()) {\n Log.debug(context + \" Context were equal; duplicate!\");\n }\n continue files;\n }\n\n String path;\n if (c instanceof WebAppContext) {\n path = Resource.newResource(((WebAppContext) c).getWar()).getFile().getAbsolutePath();\n } else {\n path = c.getBaseResource().getFile().getAbsolutePath();\n }\n\n if ((path != null) && path.equals(app.getFile().getAbsolutePath())) {\n if (Log.isDebugEnabled()) {\n Log.debug(path + \" Paths were equal; duplicate!\");\n }\n continue files;\n }\n\n }\n }\n\n // create a webapp\n WebAppContext wah = null;\n HandlerCollection contexts = getContexts();\n if ((contexts instanceof ContextHandlerCollection)\n && WebAppContext.class.isAssignableFrom(((ContextHandlerCollection) contexts).getContextClass())) {\n try {\n wah = (WebAppContext) ((ContextHandlerCollection) contexts).getContextClass().newInstance();\n } catch (Exception e) {\n throw new Error(e);\n }\n } else {\n wah = new WebAppContext();\n }\n\n // configure it\n wah.setContextPath(context);\n\n if (getConfigurationClasses() != null) {\n wah.setConfigurationClasses(getConfigurationClasses());\n }\n\n if (getDefaultsDescriptor() != null) {\n wah.setDefaultsDescriptor(getDefaultsDescriptor());\n }\n wah.setExtractWAR(isExtract());\n wah.setWar(app.toString());\n wah.setParentLoaderPriority(isParentLoaderPriority());\n\n Enumeration<?> names = _attributes.getAttributeNames();\n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n wah.setAttribute(name, _attributes.getAttribute(name));\n }\n\n // add it\n Log.debug(\"AndroidWebAppDeployer: prepared \" + app.toString());\n contexts.addHandler(wah);\n _deployed.add(wah);\n //jetty-7.3.0 onwards need to start explicitly due to different startup time ordering\n wah.start();\n }\n }", "private static List<File> rootFiles(final File metaDir) throws IOException {\n File containerFile = new File(metaDir, \"container.xml\");\n if(!containerFile.exists()) {\n throw new IOException(\"Missing 'META-INF/container.xml'\");\n }\n\n List<File> rootFiles = Lists.newArrayListWithExpectedSize(2);\n try(FileInputStream fis = new FileInputStream(containerFile)) {\n Document doc = Jsoup.parse(fis, Charsets.UTF_8.name(), \"\", Parser.xmlParser());\n Elements elements = doc.select(\"rootfile[full-path]\");\n for(Element element : elements) {\n String path = element.attr(\"full-path\").trim();\n if(path.isEmpty()) {\n continue;\n } else if(path.startsWith(\"/\")) {\n path = path.substring(1);\n }\n File rootFile = new File(metaDir.getParent(), path);\n if(!rootFile.exists()) {\n throw new IOException(String.format(\"Missing file, '%s'\", rootFile.getAbsolutePath()));\n }\n rootFiles.add(rootFile);\n }\n }\n\n return rootFiles;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ServiceBean> getService_Requests() \r\n {\r\n \tlogger.info(\"========================== Getting ALL service requests for the admin home page... =================================\");\r\n\t\t\r\n \tList<ServiceBean> beanList = null;\r\n \t\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = null;\r\n\t\tList<String> scalarPropsList = null;\r\n\t\t\r\n\t\tscalarPropsList = SQLUtil.parseSQLScalarProperties(GET_ALL_SERVICE_REQUESTS_ADMIN_SQL_SCALAR);\r\n\t\t\t\r\n\t\t\tif (scalarPropsList != null)\r\n\t\t\t{\r\n\t\t\t\tquery = SQLUtil.buildSQLQuery(session, scalarPropsList, GET_ALL_SERVICE_REQUESTS_ADMIN_SQL);\r\n\t\t\t\tquery.setResultTransformer(Transformers.aliasToBean(ServiceBean.class));\r\n\t\t\t\t\r\n\t\t\t\tbeanList = (List<ServiceBean>) query.list();\r\n\t\t\t}\r\n\t\t\t\r\n\t\treturn beanList;\r\n }", "@Override\n\tpublic List<Config_Entity> get_all_config() {\n\t\treturn config.get_all_config();\n\t}", "public List<?> getBeans(List<String> ids) {\n//\t\tlogger.debug(\"recibo un pedido de beans\");\n\t\tList<?> beans=gerenteParticulas.getBeans(ids);\n//\t\tlogger.debug(\"entrego beans\");\n\t\treturn beans;\n\t}", "@Override\n protected Class<?>[] getServletConfigClasses() {\n return new Class<?>[]{WebConfig.class};\n }", "protected abstract List<GithubParser> getBeans();", "public static void main(String[] args)\n {\n ApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie=context.getBean(\"movie\",Movie.class);\n movie.displayActor();\n\n // intialize XmlBeanFactory with beanx.xml\n BeanFactory beanFactory=new XmlBeanFactory(new ClassPathResource(\"beans.xml\"));\n Movie movie1=(Movie) beanFactory.getBean(\"movie\");\n movie1.displayActor();\n // intialize BeanDefinitionRegistry and BeanDefinitionReader with beanx.xml\n DefaultListableBeanFactory factory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry registry=new GenericApplicationContext(factory);\n BeanDefinitionReader reader = new XmlBeanDefinitionReader(registry);\n reader.loadBeanDefinitions(\"beans.xml\");\n Movie picture1 = (Movie) factory.getBean(\"movie\");\n picture1.displayActor();\n\n\n }", "public static Set<Class<? extends Entity>> getEntityBeans() {\r\n\t\tfinal Set<Class<? extends Entity>> entityClasses=new HashSet<>();\r\n\t\tfinal ClassLoader cl=Thread.currentThread().getContextClassLoader();\r\n\t\tfinal URL packageURL=cl.getResource(\r\n\t\t\t\tENTITY_BEANS_PACKAGE.replace(\".\", \"/\")+\"package-info.class\");\r\n\t\ttry {\r\n\t\t\tfinal File[] entityFiles=new File(packageURL.toURI()).getParentFile().listFiles(new FilenameFilter() {\r\n\t\t\t\t@Override public boolean accept(final File dir, final String name) {\r\n\t\t\t\t\treturn name.endsWith(\".class\"); \r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfor(final File f:entityFiles) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfinal Class<?> cls=cl.loadClass(getPackageClass(f));\r\n\t\t\t\t\tif(Entity.class.isAssignableFrom(cls)) entityClasses.add((Class<? extends Entity>) cls);\r\n\t\t\t\t} catch (ClassNotFoundException e) {//skip class if search failed\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t}\r\n\t\t\r\n\t\treturn entityClasses;\r\n\t}", "@GET\r\n @Produces({MediaType.APPLICATION_XML})\r\n public Set<Document> findAll() throws InternalServerErrorException{\r\n LOGGER.info(\"Peticion de todos los documentos\");\r\n Set<Document> collection = null;\r\n try {\r\n collection = ejb.getDocumentList();\r\n } catch (GetCollectionException ex) {\r\n LOGGER.warning(\"ERROR en la obtencion de la lista de documentos\");\r\n throw new InternalServerErrorException();\r\n }\r\n LOGGER.info(\"Respuesta de obtencion de lista de documentos\");\r\n return collection;\r\n }", "private static ImmutableList<Class<?>> applicationEntities() {\n List<String> paths = new ArrayList<>(List.of(PREFIX_STRING));\n if (additionalPaths != null) {\n paths.addAll(additionalPaths);\n }\n\n final List<Class<?>> collect = paths\n .stream()\n .map(path -> {\n logger.info(\"Scanning {} for Hibernate entities\", path);\n final Reflections reflections = new Reflections(path);\n final Set<Class<?>> entities = reflections.getTypesAnnotatedWith(Entity.class);\n logger.info(\"Found {} Hibernate entities\", entities.getClass());\n if (logger.isDebugEnabled()) {\n entities.forEach((entity) -> logger.debug(\"Registered {}.\", entity.getName()));\n }\n return entities;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n return ImmutableList.copyOf(collect);\n }", "private static List<MonitoredApplication> initMonitoredApplications(final Properties props, final Logger logger) throws Exception {\n\n List<MonitoredApplication> monitoredApps = Lists.newArrayListWithExpectedSize(16);\n File monitoredAppDir = getSystemFile(\"monitoredAppDir\", props, false);\n\n if(monitoredAppDir != null) {\n File[] propFiles = monitoredAppDir.listFiles();\n\n if(propFiles != null) {\n for(File propFile : propFiles) {\n if(propFile.isDirectory()) continue;\n Properties endpointProps = new Properties();\n try {\n byte[] propBytes = Files.toByteArray(propFile);\n endpointProps.load(new ByteArrayInputStream(propBytes));\n if(endpointProps.getProperty(\"index\") != null) {\n monitoredApps.add(new MonitoredApplication(endpointProps));\n }\n } catch(IOException ioe) {\n logger.warn(\"Problem loading monitored app '\" + propFile.getAbsolutePath() + \"'\", ioe);\n }\n }\n }\n }\n\n return monitoredApps;\n }", "String getApplicationContextPath();", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public interface BeanDefinitionReader {\n int loadBeanDefinitions(String location);\n int loadBeanDefinitions(String... locations);\n\n int loadBeanDefinitions(Resource resource);\n int loadBeanDefinitions(Resource... resource);\n}", "public static List<DocumentUploader> getDocumentUploaders() {\n\t\tif (documentUploaders == null) {\n\t\t\tdocumentUploaders = new ArrayList<DocumentUploader>();\n\t\t\tLOG.debug(\"Loading UploadDocuments...\");\n\t\t\ttry {\n\t\t\t\tfor (DocumentUploader documentUploader : ServiceLoader.load(DocumentUploader.class)) {\n\t\t\t\t\tLOG.debug(\"Loaded: %s\", documentUploader.getTitle());\n\t\t\t\t\tdocumentUploaders.add(documentUploader);\n\t\t\t }\n\t\t\t}\n\t\t\tcatch (ServiceConfigurationError ex) {\n\t\t\t\tLOG.error(\"ServiceConfigurationError: %s\", ex);\n\t\t\t}\n\t\t}\n\t\treturn documentUploaders;\n\t}", "public UniqueResourcesAndLocations() {\n this.context = new ClassPathXmlApplicationContext(\"spring-dao.xml\");\n this.jtemp = (JdbcTemplate)context.getBean(\"jt\");\n\t}", "public ArrayList<File> allXmlFiles(File dir)\n\t{\n\n\t\tString xmlfile = null;\n\t\tArrayList<File> files1 = new ArrayList<>();\n\n\t\tList<File> files = (List<File>) FileUtils.listFiles(\n\t\t\t\tdir, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE);\n\t\tfor(File file : files)\n\t\t{\n\t\t\txmlfile = file.getName();\n\t\t\tif(xmlfile.endsWith(\".xml\")||xmlfile.endsWith(\".XML\"))\n\t\t\t{\n\t\t\t\tfiles1.add(file);\n\t\t\t}\n\n\t\t}\n\t\treturn files1;\n\t}", "public Map getWebServiceModules() {\n Map map = new HashMap();\n\n // admin config context\n ConfigContext configCtx = AdminService.getAdminService().\n getAdminContext().getAdminConfigContext();\n\n CacheMgr mgr = CacheMgr.getInstance();\n\n // j2ee application\n Map apps = mgr.getJ2eeApplications();\n Collection aValues = apps.values();\n for (Iterator iter=aValues.iterator(); iter.hasNext();) {\n J2eeApplication app = (J2eeApplication) iter.next();\n\n // ejb bundles\n List ejbBundles = app.getEjbBundles();\n if (ejbBundles != null) {\n for (Iterator itr=ejbBundles.iterator(); itr.hasNext();) {\n String ejb = (String) itr.next();\n try {\n Map m = getEjbBundleInfo(configCtx, app.getName(), ejb);\n map.put(m.get(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n }\n\n // web bundles \n List webBundles = app.getWebBundles();\n if (webBundles != null) {\n for (Iterator itr=webBundles.iterator(); itr.hasNext();) {\n String web = (String) itr.next();\n try {\n Map m = getWebBundleInfo(configCtx, app.getName(), web);\n map.put(m.get(WebServiceInfoProvider.\n SUN_WEB_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n }\n }\n\n // stand alone ejb module\n Map ejbs = mgr.getEjbModules();\n Collection eValues = ejbs.values();\n for (Iterator iter=eValues.iterator(); iter.hasNext();) {\n String ejbMod = (String) iter.next();\n try {\n Map m = getEjbModuleInfo(configCtx, ejbMod);\n map.put(m.get(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n\n // stand alone web module\n Map webs = mgr.getWebModules();\n Collection wValues = webs.values();\n for (Iterator iter=wValues.iterator(); iter.hasNext();) {\n String webMod = (String) iter.next();\n\n try {\n Map m = getWebModuleInfo(configCtx, webMod);\n map.put(m.get(WebServiceInfoProvider.\n SUN_WEB_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n\n return map;\n }", "@Override\n public SmarterMap fetchConf() {\n SmarterMap result = new SmarterMap();\n\n List<File> files = new LinkedList<>();\n File conf = new File(path);\n if (conf.isDirectory()) {\n for (File f : conf.listFiles()) {\n if (f.getName().endsWith(\".json\") || f.getName().endsWith(\".yaml\") || f.getName().endsWith(\".yml\")) {\n files.add(f);\n }\n }\n } else {\n files.add(conf);\n }\n\n for (File f : files) {\n if (f.isFile()) {\n String confFileName = f.getName().replaceAll(\"\\\\.[^.]*$\", \"\");\n SmarterMap c = Fwissr.parseConfFile(f);\n mergeConf(result, c, confFileName.split(\"\\\\.\"), TOP_LEVEL_CONF_FILES.contains(confFileName));\n }\n }\n\n return result;\n }", "@Override\n protected Class<?>[] getServletConfigClasses() {\n return new Class[]{WebConfig.class};\n }", "public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}", "public static List<AppConfig> getAllConfig(String token){\n\t\treturn null;\n\t}", "public List<MBean> getAllMbeans() {\n\n\t\tList<MBean> mbeans = new ArrayList<MBean>();\n\n\t\tfor (Map.Entry<String, List<MBean>> entry : mbeanMap.entrySet()) {\n\t\t\tList<MBean> entryMbeans = entry.getValue();\n\t\t\tif (entryMbeans != null) {\n\t\t\t\tmbeans.addAll(entryMbeans);\n\t\t\t}\n\t\t}\n\n\t\treturn Collections.unmodifiableList(mbeans);\n\t}", "private static void boot() {\n\t\tEJB3StandaloneBootstrap.boot(null);\r\n\r\n\t\t// Deploy custom stateless beans (datasource, mostly)\r\n\t\tEJB3StandaloneBootstrap.deployXmlResource(\"META-INF/superStar-beans.xml\");\r\n\r\n\t\t// Deploy all EJBs found on classpath (slow, scans all)\r\n\t\t// EJB3StandaloneBootstrap.scanClasspath();\r\n\r\n\t\t// Deploy all EJBs found on classpath (fast, scans only build\r\n\t\t// directory)\r\n\t\t// This is a relative location, matching the substring end of one of\r\n\t\t// java.class.path locations!\r\n\t\t// Print out System.getProperty(\"java.class.path\") to understand\r\n\t\t// this...\r\n\t\tEJB3StandaloneBootstrap.scanClasspath(\"SuperStar/build\".replace(\"/\", File.separator));\r\n\t}", "Collection<String> readConfigs();", "@Override\n\tprotected Class<?>[] getServletConfigClasses() {\n\t\treturn new Class[] { WebConfiguration.class };\n\t}", "List<String> getConfigFilePaths();", "public int getkBeans() {\n\t\t\treturn kBeans;\n\t\t}", "public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);", "public static void main(String args[]){\n ApplicationContext context=new ClassPathXmlApplicationContext(\"bean.xml\");\n Movie movie=context.getBean(\"movie\", Movie.class);\n movie.movieDisplay();\n\n BeanFactory beanfactory=new XmlBeanFactory(new ClassPathResource(\"bean.xml\"));\n //getBean() returns instance\n Movie movie1=beanfactory.getBean(\"movie\", Movie.class);\n movie1.movieDisplay();\n\n DefaultListableBeanFactory defaultListableBeanFactory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry beanDefinitionRegistry=new GenericApplicationContext(defaultListableBeanFactory);\n BeanDefinitionReader beanDefintionReader=new XmlBeanDefinitionReader(beanDefinitionRegistry);\n beanDefintionReader.loadBeanDefinitions(\"bean.xml\");\n Movie movie2=defaultListableBeanFactory.getBean(\"movie\",Movie.class);\n movie2.movieDisplay();\n }", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList getServiceConfigurationList();", "public ApplicationConfig initialize() throws IOException {\n\t\tClassLoader classLoader = TCCLUtil.getThreadContextClassLoaderOrDefault(getClass());\n\n\t\t// Obtain a ResourceReader that is compatible with a startup ExternalContext\n\t\tResourceReader resourceReader = newResourceReader();\n\n\t\t// Obtain a SAX Parser Factory.\n\t\tSAXParserFactory saxParserFactory = ConcurrentSAXParserFactory.newInstance();\n\t\tsaxParserFactory.setValidating(false);\n\t\tsaxParserFactory.setNamespaceAware(true);\n\n\t\ttry {\n\n\t\t\t// Obtain a SAX Parser from the factory.\n\t\t\tSAXParser saxParser = saxParserFactory.newSAXParser();\n\n\t\t\t// Scan all the web.xml and web-fragment.xml descriptors in the classpath.\n\t\t\tWebConfigScanner webConfigScanner = newWebConfigScanner(classLoader, resourceReader, saxParser,\n\t\t\t\t\tresolveEntities);\n\t\t\tWebConfig webConfig = webConfigScanner.scan();\n\n\t\t\t// Scan all the faces-config.xml descriptors in the classpath.\n\t\t\tFacesConfigScanner facesConfigScanner = newFacesConfigScanner(classLoader, resourceReader, saxParser,\n\t\t\t\t\tresolveEntities, webConfig);\n\t\t\tFacesConfig facesConfig = facesConfigScanner.scan();\n\n\t\t\treturn new ApplicationConfigImpl(contextPath, facesConfig, webConfig);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new IOException(e);\n\t\t}\n\t}", "public interface BeanDefinitionReader {\n\n void loadBeanDefinitions(String location) throws Exception;\n\n}", "public interface BeanDefinitionReader {\n\n void loadBeanDefinitions(String location) throws Exception;\n}", "@Test\n public void testBeanFactoryCreateBean() {\n ClassPathResource resource = new ClassPathResource(\"spring-bean.xml\");\n XmlBeanFactory factory = new XmlBeanFactory(resource);\n //\n System.out.println(\"begin get bean.\");\n factory.getBean(\"bean\");\n System.out.println(\"end get bean.\");\n }", "@Test\n public void testGetClassesInPackage() throws Exception\n {\n\n WarMachine machine = TestHelpers.createWarMachine(WarNames.SERVLET);\n\n Set<String> clist1 = machine.getClassesInPackage(\"com.example.servlet\", false);\n assertEquals(\"number of classes in WEB-INF, non-recursive\", 1, clist1.size());\n assertTrue(\"searching for file in WEB-INF, non-recursive\", clist1.contains(\"com.example.servlet.SomeServlet\"));\n\n Set<String> clist2 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", false);\n assertEquals(\"number of classes in JAR, non-recursive\", 13, clist2.size());\n assertTrue(\"searching for classes in JAR, non-recursive\", clist2.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n\n Set<String> clist3 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", true);\n assertEquals(\"number of classes in JAR, recursive\", 17, clist3.size());\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.function.Constants\"));\n }", "@Override\n protected InputSource getGlobalWebXmlSource() {\n //FIXME : should use the config repository to find the resource\n return new InputSource(PeergreenContextConfig.class.getResource(\"/tomcat7-web.xml\").toExternalForm());\n }", "BeanFactory getBeanFactory();", "public static WebArchive baseDeployment() {\n return baseDeployment(new BeansXml(BeanDiscoveryMode.ALL), DEFAULT_WEB_XML);\n }", "@Override\r\n\tprotected Class<?>[] getServletConfigClasses() {\n\t\treturn new Class<?>[]{MvcConfig.class};\r\n\t}", "private List<String> getSubModulesForEar(com.sun.enterprise.deployment.Application application) {\n List<String> moduleInfoList = new ArrayList<String>();\n for (ModuleDescriptor moduleDesc : application.getModules()) { \n String moduleInfo = moduleDesc.getArchiveUri() + \":\" + \n moduleDesc.getModuleType(); \n if (moduleDesc.getModuleType().equals(XModuleType.WAR)) {\n moduleInfo = moduleInfo + \":\" + moduleDesc.getContextRoot(); \n }\n moduleInfoList.add(moduleInfo);\n }\n return moduleInfoList;\n }", "public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }", "public static void main(String[] args) {\n\t\tResource rs = new FileSystemResource(\"src/main/resources/beans.xml\");\n\t\tBeanFactory bF = new XmlBeanFactory(rs);\n\t\tStudent s1 = (Student) bF.getBean(\"student1\");\n\t\tSystem.out.println(s1);\n\t\tStudent s2 = (Student) bF.getBean(\"student2\");\n\t\tSystem.out.println(s2);\n\t}", "@Bean\n public Jaxb2Marshaller marshaller() {\n Jaxb2Marshaller marshaller = new Jaxb2Marshaller();\n // this package must match the package in the <generatePackage>\n // specified in pom.xml\n marshaller.setContextPath(CONTEXT_PATH);\n return marshaller;\n }", "public List<EntryPointDefinition> getAppEntryPointDefinitions(ApplicationBean appBean) throws JahiaException {\r\n // get the portlet registry\r\n PortletRegistryService portletRegistryService = PlutoServices.getServices().getPortletRegistryService();\r\n List<EntryPointDefinition> result = new ArrayList<EntryPointDefinition>();\r\n\r\n // get all portlet of the application bean\r\n try {\r\n List<? extends PortletDefinition> portletList = portletRegistryService.getPortletApplication(appBean.getContext()).getPortlets();\r\n for (PortletDefinition portlet : portletList) {\r\n PortletEntryPointDefinition portletEntryPointDefinition = new PortletEntryPointDefinition(appBean.getID(), appBean.getContext(), portlet);\r\n result.add(portletEntryPointDefinition);\r\n }\r\n } catch (PortletContainerException e) {\r\n logger.error(e.getMessage());\r\n }\r\n\r\n return result;\r\n }", "@Override\n\tprotected Class<?>[] getRootConfigClasses() {\n\t\treturn new Class[] {};\n\t}", "protected abstract String getXmppConfigResources();", "public String getSearchForConfigElements()\n {\n return searchForConfigElements;\n }", "public List<Configuration> getAll();", "public static void main(String args[]) {\r\n\t\tApplicationContext appContext=new ClassPathXmlApplicationContext(\"beans.xml\");\r\n\t\tEmployeeBean emp1=(EmployeeBean) appContext.getBean(\"Employee\");\r\n\t\tSystem.out.println(emp1.getName());\r\n\t}", "private static Hashtable<? super String, Object> getApplicationResources() throws NamingException {\n\n ClassLoader cl = helper.getContextClassLoader();\n\n synchronized (propertiesCache) {\n Hashtable<? super String, Object> result = propertiesCache.get(cl);\n if (result != null) {\n return result;\n }\n\n try {\n NamingEnumeration<InputStream> resources = helper.getResources(cl, APP_RESOURCE_FILE_NAME);\n try {\n while (resources.hasMore()) {\n Properties props = new Properties();\n InputStream istream = resources.next();\n try {\n props.load(istream);\n } finally {\n istream.close();\n }\n\n if (result == null) {\n result = props;\n } else {\n mergeTables(result, props);\n }\n }\n } finally {\n while (resources.hasMore()) {\n resources.next().close();\n }\n }\n\n // Merge in properties from file in <java.home>/lib.\n InputStream istream = helper.getJavaHomeLibStream(JRELIB_PROPERTY_FILE_NAME);\n if (istream != null) {\n try {\n Properties props = new Properties();\n props.load(istream);\n\n if (result == null) {\n result = props;\n } else {\n mergeTables(result, props);\n }\n } finally {\n istream.close();\n }\n }\n\n } catch (IOException e) {\n NamingException ne = new ConfigurationException(\"Error reading application resource file\");\n ne.setRootCause(e);\n throw ne;\n }\n if (result == null) {\n result = new Hashtable<>(11);\n }\n propertiesCache.put(cl, result);\n return result;\n }\n }", "private Document getDocumentInClassPath()throws Exception{\r\n\t\t\r\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\tDocument doc = builder.parse(ServiceLoader.class.getResourceAsStream(\"/\"+FILE_NAME));\r\n\t\t\r\n\t\treturn doc;\r\n\t}", "public List<String> checkFiles() {\n List<String> instances = new ArrayList<String>();\n if (StringUtils.isBlank(getPathOffset())) return instances;\n File[] directories = listFiles(new File(getPathOffset()), \"gcm_\");\n for (File dir : directories) {\n File[] files = listFiles(new File(dir.toString() + \"\\\\logs\"), \"GcmWebServices\");\n for (File file : files)\n instances.add(file.toString());\n }\n return instances;\n }", "@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n @Path(\"ServicioMonto/list\")\r\n public ArrayList<ServicioMonto> getXmlc() throws Exception {\n ArrayList<ServicioMonto> lista=new ArrayList<ServicioMonto>();\r\n lista=ServicioMonto.servicio_monto();\r\n return lista;\r\n }", "public static void main( String[] args )\n {\n \tApplicationContext context=new FileSystemXmlApplicationContext(\"beans.xml\");\n \tTraveller traveller=(Traveller)context.getBean(\"traveller\"); //SPRING CONTAINER\n \tSystem.out.println(traveller.getTravelDetails());\n\n }", "public List<WebComponent> getWebResources() {\r\n\t\treturn wcDao.getWebResources();\r\n\t}", "private Collection<File> getInputFiles(String docRoot) {\r\n File dir = new File(docRoot);\r\n if (testXMLDir == null || !dir.isDirectory() || !dir.canRead()) {\r\n throw new RuntimeException(\"unable to read from this directory: \" + testXMLDir);\r\n }\r\n Collection<File> xmlFiles = new ArrayList<File>();\r\n xmlFiles = listFileNames(dir,xmlFiles);\r\n return xmlFiles;\r\n }", "private void getModules() throws BuildException {\n FilenameFilter fltr = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n return name.endsWith(\".war\");\n }\n };\n\n if (warDir == null) {\n throw new BuildException(\"No wardir supplied\");\n }\n\n String[] warnames = warDir.list(fltr);\n\n if (warnames == null) {\n throw new BuildException(\"No wars found at \" + warDir);\n }\n\n for (int wi = 0; wi < warnames.length; wi++) {\n wars.add(warnames[wi]);\n }\n\n for (FileSet fs: filesets) {\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n String[] dsFiles = ds.getIncludedFiles();\n\n for (int dsi = 0; dsi < dsFiles.length; dsi++) {\n String fname = dsFiles[dsi];\n\n if (fname.endsWith(\".jar\")) {\n jars.add(fname);\n } else if (fname.endsWith(\".war\")) {\n wars.add(fname);\n }\n }\n }\n }", "public Set getCompleteMbeans(MBeanServerConnection mbeanConnection) {\r\n\t\tSet beans = null;\r\n\t\ttry {\r\n\t\t\tbeans = mbeanConnection.queryNames(null, null);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Not able to get complete beans {} \", e);\r\n\t\t}\r\n\t\treturn beans;\r\n\t}", "public static void main(String[] args) {\n\t\tResource resource = new FileSystemResource(\"src/main/resources/beanContainer.xml\");\t\t// 경로 지정해서 설정\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\n\t\t\n\t\tHello obj = (Hello)factory.getBean(\"hello\");\n\t\tobj.printMsg();\n\t\t\n\t\tHello obj2 = (Hello)factory.getBean(\"hello2\");\n\t\tobj2.printMsg();\n\t\t\n\t\tHello obj3 = (Hello)factory.getBean(\"hello\");\n\t\tobj3.printMsg();\n\t\t\n\t\tSystem.out.println(obj);\n\t\tSystem.out.println(obj2);\n\t\tSystem.out.println(obj3);\n\t}", "public List<File> getClasspathElements() {\n\t\tthis.parseSystemClasspath();\n\t return classpathElements;\n\t}", "public Set<Class<?>> getScanClasses();", "@Override\n\tprotected Class<?>[] getServletConfigClasses() {\n\t\treturn new Class[] {WebSocketConfigSTOMP.class};\n\t}", "@Override\r\n\tprotected Class<?>[] getServletConfigClasses() {\r\n\t\treturn new Class<?>[] { MVCConfig.class };\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private static List<Appliance> parseApplianceConfiguration() {\n List<Appliance> appliances = new ArrayList<>();\n SAXReader reader = new SAXReader();\n try {\n Document document = reader.read(new File(ConfigUtil.getConfigFilesDir() +\n File.separator + CONFIG_FILE));\n // Get the root node (appliances)\n Element root = document.getRootElement();\n // Get each sub-node (appliance) for the root\n List<Element> nodes = root.elements();\n for (Element node : nodes) {\n appliances.add(parseAppliance(node));\n }\n } catch (DocumentException e) {\n logger.warn(\"Error at parsing {}.\", CONFIG_FILE);\n }\n\n return appliances;\n }", "public abstract List<String> scanAllClassNames();", "public ProductBeans() {\n \n services = BeanHelper.getService();\n list = services.listOfProducts();\n\n }", "private boolean springConfigExist(WebModule webModule) {\n FileObject dd = webModule.getDeploymentDescriptor();\n if (dd == null) {\n return false;\n }\n try {\n\n WebApp webApp = DDProvider.getDefault().getDDRoot(dd);\n InitParam[] parameters = webApp.getContextParam();\n for (InitParam param : parameters) {\n if (param.getParamName().startsWith(CONTEXT_CONFIG_LOCATION)) {\n return true;\n }\n }\n } catch (IOException e) {\n Logger.getLogger(\"global\").log(Level.INFO, null, e);\n }\n return false;\n }", "java.util.List<java.lang.String>\n getBootclasspathList();", "public static void main(String[] args) {\n\t\t\r\n\t\tApplicationContext factory = new ClassPathXmlApplicationContext(new String[]{\r\n\t\t\t\t\"config/userservice01.xml\", \"config/userservice02.xml\"\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user01 = (User)factory.getBean(\"user05\");\r\n\t\tSystem.out.println(user01);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user02 = (User)factory.getBean(\"user06\");\r\n\t\tSystem.out.println(user02);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user03 = (User)factory.getBean(\"user07\");\r\n\t\tSystem.out.println(user03);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user04 = (User)factory.getBean(\"user08\");\r\n\t\tSystem.out.println(user04);\r\n\t\t\r\n\t}", "private DiaryApplication getApp() {\n ServletContext application = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);\n synchronized (application) {\n DiaryApplication diaryApp = (DiaryApplication) application.getAttribute(\"diaryApp\");\n if (diaryApp == null) {\n try {\n diaryApp = new DiaryApplication();\n diaryApp.setAllPath(application.getRealPath(\"WEB-INF/bookings.xml\"), application.getRealPath(\"WEB-INF/students.xml\"), application.getRealPath(\"WEB-INF/tutors.xml\"));\n application.setAttribute(\"diaryApp\", diaryApp);\n } catch (JAXBException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return diaryApp;\n }\n }", "public Collection<Configuration> findAll() {\n\t\treturn this.configurationRepository.findAll();\n\t}", "private Set<String> getELNamesByResource(IPath resourcePath) {\r\n \t\tSet<IBean> beans = cdiProject.getBeans(resourcePath);\r\n \t\tif(beans.isEmpty()) {\r\n \t\t\treturn Collections.emptySet();\r\n \t\t}\r\n \t\tSet<String> result = new HashSet<String>();\r\n \t\tfor (IBean bean : beans) {\r\n \t\t\tString name = bean.getName();\r\n \t\t\tif(name!=null) {\r\n \t\t\t\tresult.add(name);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn result;\r\n \t}", "public List<FileManagerFile> getFiles() throws Exception {\n\n if (files == null) { // defer loading files list until requested.\n cacheFoldersFiles();\n }\n return files;\n }", "@Override\n\tprotected Class<?>[] getServletConfigClasses() {\n\t\treturn null;\n\t}", "@Override\n\tprotected Class<?>[] getServletConfigClasses() {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext contexto= new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t \r\n\t\tdirectorEmpleado Juan=contexto.getBean(\"miEmpleado\",directorEmpleado.class);\r\n\t\tSystem.out.println(Juan.getTareas());\r\n\t\tSystem.out.println(Juan.getInforme());\r\n\t\tSystem.out.println(Juan.getEmail());\r\n\t\tSystem.out.println(Juan.getNombreEmpresa());\r\n\t\t\r\n\t\t/*secretarioEmpleado Maria=contexto.getBean(\"miSecretarioEmpleado\",secretarioEmpleado.class);\r\n\t\tSystem.out.println(Maria.getTareas());\r\n\t\tSystem.out.println(Maria.getInforme());\r\n\t\tSystem.out.println(\"Email= \"+Maria.getEmail());\r\n\t\tSystem.out.println(\"Nombre Empresa= \"+Maria.getNombreEmpresa());*/\r\n\t\t\r\n\t\tcontexto.close();\r\n\t}", "public XStream getConfigEntriesXstream() {\n XStream xstream = new XStream(new DomDriver(\"UTF-8\"));\n xstream.alias(\"configEntries\", List.class);\n\n ClassAliasingMapper mapper = new ClassAliasingMapper(xstream.getMapper());\n mapper.addClassAlias(\"configEntry\", ConfigEntry.class);\n xstream.registerConverter(new CollectionConverter(mapper));\n\n return xstream;\n }", "java.util.List<java.lang.String>\n getBootclasspathList();", "private void readEntityDeploymentInitial() {\n for (Class<?> entityClass : bootupClasses.getEntities()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n Class<?> embeddedIdType = info.getEmbeddedIdType();\n if (embeddedIdType != null) {\n embeddedIdTypes.add(embeddedIdType);\n }\n }\n for (Class<?> entityClass : bootupClasses.getEmbeddables()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n if (embeddedIdTypes.contains(entityClass)) {\n // register embeddedId types early - scalar properties only\n // and needed for creating BeanTables (id properties)\n registerEmbeddedBean(info);\n } else {\n // delay register of other embedded beans until after\n // the BeanTables have been created to support ManyToOne\n embeddedBeans.add(info);\n }\n }\n }", "public static BeanManager lookupBeanManager() {\n BeanManager beanManager = getCDIBeanManager(\"java:comp\");\n if (beanManager == null) {\n beanManager = getCDIBeanManager(\"java:comp/env\");\n }\n if (beanManager == null) {\n beanManager = getOSGICDIBeanManager();\n }\n return beanManager;\n }", "public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }", "public ObjectName[] getUPNPServiceMBeans() {\n return UPNPServiceMBeans;\n }", "List<Class<?>> getManagedClasses();", "@GET\n @Produces(MediaType.APPLICATION_XML)\n public ArrayList<Kunde> getAlleKunden(){\n return alleKunden.getAlleKunden();\n }", "public static void main(String[] args) {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"complex-config.xml\");\n Complex complex = applicationContext.getBean(\"complexBean\",Complex.class);\n System.out.println(complex.getList());\n System.out.println(complex.getSet());\n System.out.println(complex.getMap());\n\n }" ]
[ "0.56285936", "0.5427661", "0.5407111", "0.53690976", "0.51371425", "0.51326346", "0.5055798", "0.49995622", "0.49916294", "0.4926374", "0.49137104", "0.4883161", "0.48239297", "0.48023188", "0.4796875", "0.47960955", "0.47901404", "0.4762826", "0.4745541", "0.47343913", "0.47242638", "0.4720943", "0.47173828", "0.47018686", "0.46900687", "0.4680608", "0.4679073", "0.46549234", "0.46540174", "0.46534503", "0.46520808", "0.4644967", "0.46419585", "0.46325827", "0.46268272", "0.46221128", "0.46145844", "0.46039233", "0.4601521", "0.46007654", "0.45848978", "0.45756248", "0.456927", "0.456908", "0.4566671", "0.45644665", "0.45632586", "0.4551479", "0.45486486", "0.4547366", "0.45358574", "0.4535383", "0.4533404", "0.45232922", "0.45224717", "0.45218444", "0.45125893", "0.45058846", "0.45048314", "0.45022583", "0.44961795", "0.4493002", "0.44926673", "0.44849154", "0.4477685", "0.44771066", "0.44740382", "0.44697344", "0.44687146", "0.44641164", "0.4463484", "0.4458722", "0.44581014", "0.44563353", "0.44542342", "0.44472063", "0.44455305", "0.443009", "0.44299173", "0.44271857", "0.44271642", "0.4424883", "0.4424262", "0.44139537", "0.44104943", "0.4407774", "0.43985787", "0.43921116", "0.4387734", "0.4387734", "0.43848532", "0.43838805", "0.43812892", "0.43801138", "0.43796617", "0.43788174", "0.4378585", "0.43772933", "0.43759292", "0.437521" ]
0.7615378
0
Validates a bean EL name.
private void validateBeanName(IBean bean) { String name = bean.getName(); if(name!=null && !name.startsWith("/")) { // Collect all relations between the bean and other CDI elements. getValidationContext().addVariableNameForELValidation(name); getValidationContext().addLinkedCoreResource(name, bean.getSourcePath(), true); /* * 5.3.1. Ambiguous EL names * - All unresolvable ambiguous EL names are detected by the container when the application is initialized. * Suppose two beans are both available for injection in a certain war, and either: * • the two beans have the same EL name and the name is not resolvable, or */ Set<IBean> beans = cdiProject.getBeans(name, true); if(beans.size()>1 && beans.contains(bean)) { ITextSourceReference reference = bean.getNameLocation(); if(reference==null) { reference = CDIUtil.getNamedDeclaration(bean); } StringBuffer sb = new StringBuffer(bean.getSimpleJavaName()); for (IBean iBean : beans) { if(bean!=iBean) { sb.append(", ").append(iBean.getSimpleJavaName()); } } addError(MessageFormat.format(CDIValidationMessages.DUPLCICATE_EL_NAME, sb.toString()), CDIPreferences.AMBIGUOUS_EL_NAMES, reference, bean.getResource()); } else { /* * • the EL name of one bean is of the form x.y, where y is a valid bean EL name, and x is the EL name of the other bean, * the container automatically detects the problem and treats it as a deployment problem. */ if(name.indexOf('.')>0) { StringTokenizer st = new StringTokenizer(name, ".", false); StringBuffer xName = new StringBuffer(); while(st.hasMoreTokens()) { if(xName.length()>0) { xName.append('.'); } xName.append(st.nextToken()); if(st.hasMoreTokens()) { String xNameAsString = xName.toString(); Set<IBean> xBeans = cdiProject.getBeans(xNameAsString, true); if(!xBeans.isEmpty()) { String yName = name.substring(xNameAsString.length()+1); IStatus status = JavaConventions.validateJavaTypeName(yName, CompilerOptions.VERSION_1_6, CompilerOptions.VERSION_1_6); if (status.getSeverity() != IStatus.ERROR) { ITextSourceReference reference = bean.getNameLocation(); if(reference==null) { reference = CDIUtil.getNamedDeclaration(bean); } addError(MessageFormat.format(CDIValidationMessages.UNRESOLVABLE_EL_NAME, name, yName, xNameAsString, xBeans.iterator().next().getSimpleJavaName()), CDIPreferences.AMBIGUOUS_EL_NAMES, reference, bean.getResource()); break; } } } } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNameValid(String name) {\n\n }", "public boolean checkGoodName(Object bean, ValidatorAction va, Field field,\r\n\t\t\tActionMessages messages, HttpServletRequest request) {\r\n\r\n\t\tMemberForm memForm = (MemberForm)bean;\r\n\t\tString username = memForm.getMemberUserName();\r\n\r\n\r\n\t\ttry {\r\n\t\t\tStringUtil.checkGoodName(username);\r\n\t\t} catch (BadInputException e) {\r\n\t\t\tmessages.add(field.getKey(), Resources.getActionMessage(request,\r\n\t\t\t\t\tva, field));\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\r\n\t\tString unActivatePattern = sysProp.getValue(\"DEFAULT_USERNAME_PATTERN\");\r\n\r\n\t\tboolean validName = true;\r\n\t\tStringTokenizer st = new StringTokenizer(unActivatePattern, \",\");\r\n\t\twhile (st.hasMoreTokens()) {\r\n\t\t\tif (username.startsWith(st.nextToken())) {\r\n\t\t\t\tvalidName = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!validName) {\r\n\t\t\tmessages.add(field.getKey(), Resources.getActionMessage(request,\r\n\t\t\t\t\tva, field));\r\n\t\t}\r\n\r\n\t\treturn messages.isEmpty();\r\n\t}", "public boolean isValidDirectiveName ( String name );", "private static boolean validName(String name) {\n return name != null && !name.strip().isBlank();\n }", "public static boolean isNameValid(String name) {\r\n return name.matches(\"^[a-zA-Z ]+$\");\r\n }", "public static boolean isValidName(String name) {\r\n\t\treturn (name != null && name.matches(\"[a-zA-Z_0-9.-]+\"));\r\n\t}", "public static boolean validateName(String name){\n return name.matches(NAME_PATTERN);\n }", "private boolean isValidName(String name)\n {\n String reg = \"^[a-zA-Z]+$\";\n return name.matches(reg);\n }", "public boolean nameValidation(String name) {\n\t char[] chars = name.toCharArray();\n\t int tempNum = 0;\n\t for (char c : chars) {\n\t tempNum += 1;\n\t \tif(!Character.isLetter(c)) {\n\t return false;\n\t }\n\t }\n\t if (tempNum == 0)\n\t \treturn false;\n\n\t return true;\n\t}", "@Override\n\tpublic boolean isValid(String name, ConstraintValidatorContext arg1) {\n\t\tSystem.out.println(\"自定义注解校验:\"+name);\n\t\tif(name.length()<=maxLen&&name.length()>=minLen){\n\t\t\tSystem.out.println(\"自定义注解校验通过:\"+name);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean nameValidation(String username){\n return !(username.isEmpty() || !username.matches(\"[a-zA-Z0-9_-]+\"));\n }", "boolean isNameRequired();", "public boolean validateName(String name)\n\t{\n\n\t\tif (name.matches(\"[a-zA-Z]+\"))\n\n\t\t\treturn true;\n\n\t\tmyName = DEFAULT_NAME;\n\t\treturn false;\n\t}", "public boolean isValidName(String proposedName);", "public static boolean checkName(String name) {\r\n\t\tboolean result = false;\r\n\t\tif (check(name) && name.matches(CommandParameter.REG_EXP_NAME)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic void validateUserName(String name) throws UserException {\n\t\t\n\t}", "public InputValidator validateName_v() {\r\n \t\treturn new InputValidator(new InputValidator.CustomValidator() {\r\n \t\t\t@Override\r\n \t\t\tpublic boolean validate(String originalValue, String proposedValue) {\r\n \t\t\t\tif (! proposedValue.matches(\"[a-zA-Z_][-a-zA-Z0-9_.]*\"))\r\n \t\t\t\t\treturn false;\t// not a decent name\r\n \t\t\t\tif (proposedValue.equals(originalValue))\r\n \t\t\t\t\treturn true;\t// current name is OK\r\n \t\t\t\t// Anything else must be unique among the node names\r\n \t\t\t\treturn network.lookupNode(proposedValue, false) == null;\r\n \t\t\t}\r\n \t\t});\r\n \t}", "public boolean checkName(String name)\n {\n return true;\n }", "public boolean isValidName(String name) {\n\t\tif (name == null)\n\t\t\treturn false;\n\t\tif (name.matches(\".*[A-Z].*[a-zA-Z0-9]\"))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private void checkBeanDefinition() throws JellyTagException\n {\n int count = countAttributes(BEAN_DEFINITION_ATTRS);\n\n if (count > 1)\n {\n throw new JellyTagException(\n \"Exactly one of the attributes must be used: \"\n + \"class, ref, beanName, beanClass!\");\n }\n if (count < 1 && !isOptional() && getDefaultClass() == null)\n {\n throw new MissingAttributeException(ATTR_CLASS);\n }\n }", "private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }", "public FormValidation doCheckEnvironmentVariableName(\n\t\t\t\t@QueryParameter String value) {\n\t\t\tlogger.debug(\"### DescriptorImpl::doCheckEnvironmentVariableName\");\n\t\t\tif (value.isEmpty())\n\t\t\t\treturn FormValidation.error(\"Please set a name\");\n\t\t\tif (value.length() < 4)\n\t\t\t\treturn FormValidation.warning(\"Isn't the name too short?\");\n\t\t\treturn FormValidation.ok();\n\t\t}", "public static boolean isSafeIdentifierName(String name, int fromIndex) {\n int i = fromIndex;\n for (; i < name.length(); i++) {\n char c = name.charAt(i);\n if (!(c == '$' || c == '@' || c == ':')) {\n break;\n }\n }\n for (; i < name.length(); i++) {\n char c = name.charAt(i);\n if (!((c >= 'a' && c <= 'z') || (c == '_') ||\n (c >= 'A' && c <= 'Z') ||\n (c >= '0' && c <= '9') ||\n (c == '?') || (c == '=') || (c == '!'))) { // Method suffixes; only allowed on the last line\n\n if (isOperator(name)) {\n return true;\n }\n\n return false;\n }\n }\n\n return true;\n }", "private boolean employeeNameValid(EmployeeDto newEmpDto) {\n\t\tint nameLen = (newEmpDto.getFirstName().length() + newEmpDto.getLastName().length());\n\t\treturn (nameLen >= 2) ? true : false;\n\t}", "@Autowired\n\t\n\t@Override\n\tpublic boolean isValid(String value, ConstraintValidatorContext context) {\n\t\treturn false;\n\t}", "private void validateSubscriptionName(String subscriptionName) throws SubscriptionValidationException {\n String regex = \"^[A-Za-z0-9_]+$\";\n if (subscriptionName == null) {\n throw new SubscriptionValidationException(\"Required field SubscriptionName has not been set\");\n } else if (!Pattern.matches(regex, subscriptionName)) {\n throw new SubscriptionValidationException(\"Wrong format of SubscriptionName: \" + subscriptionName);\n }\n }", "private boolean isName() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tupdateToken();\n\t\t\tif(isExpression())\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\tisValid = true;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "private void checkNameValidation(String name) throws noStudentNameException{\n\t\tif (name.isEmpty()){\n\t\t\tthrow new noStudentNameException(\"Student Name Cannot be Empty!\");\n\t\t}\n\t}", "public void testIllegalPeriodInName() throws Exception\r\n {\r\n try\r\n {\r\n new ComponentDirective( \r\n \"fred.blogs\", m_activation, m_collection, m_lifestyle, m_classname, \r\n m_categories, m_context, null, null );\r\n fail( \"Did not throw an IllegalArgumentException for a name with a period.\" ); \r\n }\r\n catch( IllegalArgumentException e )\r\n {\r\n // ok\r\n }\r\n }", "public static boolean checkName(String name) {\n\t\tMatcher matcher = NAME_PATTERN.matcher(name);\n\t\treturn matcher.find();\n\t}", "public static boolean isValidName(String name) {\n if (name.length() == 0)\n return false;\n char ch = name.charAt(0);\n if( isNameStart(ch) == false)\n return false;\n for (int i = 1; i < name.length(); i++ ) {\n ch = name.charAt(i);\n if( isName( ch ) == false ){\n return false;\n }\n }\n return true;\n }", "public boolean isValidName(String name)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n if ( (name == null) ||\r\n (name.equals(\"\")) ||\r\n Character.isUpperCase(name.charAt(0)) ||\r\n containsSubString(name, TIGHT_BINDING) ||\r\n containsSubString(name, LOOSE_BINDING) ||\r\n containsSubString(name, SINGLE_MATCH) ||\r\n containsSubString(name, \"/\") ||\r\n containsSubString(name, \" \") ||\r\n containsSubString(name, \"\\t\") ||\r\n containsSubString(name, \"\\n\") ||\r\n name.equals(UNIQUE_NAME) )\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "public static boolean isValidNmtoken(String nmtoken) {\n if (nmtoken.length() == 0)\n return false;\n for (int i = 0; i < nmtoken.length(); i++ ) {\n char ch = nmtoken.charAt(i);\n if( ! isName( ch ) ){\n return false;\n }\n }\n return true;\n }", "public static boolean isValidColorName(String colorName)\r\n {\r\n if (null == colorName)\r\n {\r\n return false;\r\n }\r\n String str = colorName.toLowerCase();\r\n\r\n return (isSpecialColorName(str) || ColorName.lookup(str) != null || COLOR_RE.test(str));\r\n }", "@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }", "public static boolean validateName(String name) throws EmptyFieldException, InvalidNameException {\r\n\t\tboolean isValid = false;\r\n\t\tif (!name.trim().isEmpty()) {\r\n\t\t\tisValid = checkName(name);\r\n\t\t} else {\r\n\t\t\tthrow new EmptyFieldException(\"empty field\");\r\n\t\t}\r\n\r\n\t\treturn isValid;\r\n\t}", "@Test\n public void testIsValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"toto\";\n boolean result = service.isValidName(name);\n assertEquals(true, result);\n }", "public static boolean isValid(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name is missing\");\n }\n\n boolean slash = false;\n for (int i = 0; i < name.length(); i++) {\n char ch = name.charAt(i);\n if (ch <= ' ' || ch >= 127 || ch == '(' || ch == ')' || ch == '<' || ch == '>' ||\n ch == '@' || ch == ',' || ch == ';' || ch == ':' || ch == '\\\\' || ch == '\"' ||\n ch == '[' || ch == ']' || ch == '?' || ch == '=') {\n return false;\n } else if (ch == '/') {\n if (slash || i == 0 || i + 1 == name.length()) {\n return false;\n }\n slash = true;\n }\n }\n return slash;\n }", "public void validateUserName(String name) {\n\t\ttry {\n\t\t\tAssert.assertTrue(userName.getText().equalsIgnoreCase(\"Hi \"+name),\"Username is correctly displayed\");\n\t\t\tLog.addMessage(\"Username correctly displayed\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Validation of User Login is failed\");\n\t\t\tLog.addMessage(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to validate User Login\");\n\t\t}\n\t}", "static void validateHeaderName(String headerName) {\n //Check to see if the name is null\n if (headerName == null) {\n throw new NullPointerException(\"Header names cannot be null\");\n }\n //Go through each of the characters in the name\n for (int index = 0; index < headerName.length(); index++) {\n //Actually get the character\n char character = headerName.charAt(index);\n\n //Check to see if the character is not an ASCII character\n if (character > 127) {\n throw new IllegalArgumentException(\n \"Header name cannot contain non-ASCII characters: \" + headerName);\n }\n\n //Check for prohibited characters.\n switch (character) {\n case '\\t':\n case '\\n':\n case 0x0b:\n case '\\f':\n case '\\r':\n case ' ':\n case ',':\n case ';':\n case '=':\n throw new IllegalArgumentException(\n \"Header name cannot contain the following prohibited characters: \"\n + \"=,;: \\\\t\\\\r\\\\n\\\\v\\\\f: \" + headerName);\n default:\n }\n }\n }", "public static boolean isNameValid(Context context, String name) {\n if (name.isEmpty()) {\n Toast.makeText(context, \"Name field cannot be empty\", Toast.LENGTH_LONG);\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean checkRoleName(String role_name) {\n\t\treturn false;\n\t}", "@Nullable\n protected final String getBeanName() {\n return this.beanName;\n }", "public static boolean isValidXmlElementName(String name) {\n return REGEX_VALID_XML_ELEMENT_NAME.matcher(name).matches();\n }", "public static boolean isValidName(String name) {\n\t\tif (name == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn name.length() > 3;\n\t}", "private static String beanName(Object bean) {\r\n\t\tString fullClassName = bean.getClass().getName();\r\n\t\tString classNameTemp = fullClassName.substring(fullClassName\r\n\t\t\t\t.lastIndexOf(\".\") + 1, fullClassName.length());\r\n\t\treturn classNameTemp.substring(0, 1) + classNameTemp.substring(1);\r\n\t}", "public void setInvalidName(String invalidName) {\n this.invalidName = invalidName;\n }", "public static boolean isValidNameFormat( String source )\n {\n int minNameLength = 3;\n\n return (source != null) && (source.length() >= minNameLength);\n }", "public boolean validateUserName(String name)\n\t{\n\t\tif (username.getText().length() < MIN_USERNAME_LENGTH)\n\t\t{\n\t\t\tsetWarning(\"username too short\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!name.matches(\"^[a-zA-Z0-9]*$\"))\n\t\t{\n\t\t\tsetWarning(\"invalid username\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean isValidName(String str) {\n if (str != null && str.trim().equals(str) && str.matches(\"^[a-zA-Z ]*$\")){\n return true;\n }\n\n return false;\n }", "private boolean checkNameChar(String name) {\n\t\tString patternStr = \"[a-zA-Z]+\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(name);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}", "public static boolean isValid(String name) {\n\t\tif ((name == null) || name.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private static boolean nameIsValid(String name) {\n if (name.length() < 4 || name.length() > 11)\n return false;\n\n for (int i = 0; i < name.length(); i++) {\n int charIndex = name.charAt(i);\n\n // Each character can only be a letter or number\n if (charIndex < 48 || (charIndex > 57 && charIndex < 65) || (charIndex > 90 && charIndex < 97) || charIndex > 122)\n return false;\n }\n\n return true;\n }", "public boolean nameIsValid() {\n return bikeName.length() > 0 && bikeName.length() < MAX_TITLE_LENGTH;\n }", "@Override\n public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n ActionErrors errors = new ActionErrors();\n if (getName() == null || getName().length() < 1) {\n errors.add(\"name\", new ActionMessage(\"error.name.required\"));\n // TODO: add 'error.name.required' key to your resources\n }\n return errors;\n }", "@Test\n public void testIsEmptyValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"\";\n boolean result = service.isValidName(name);\n assertEquals(false, result);\n }", "public static boolean isValidName(String name) {\n if (name.matches(pattern)) {\n return true;\n } else {\n return false;\n }\n }", "public final static boolean validationByName(String name) {\n return getScopeTypeByName(name) != null;\n }", "public void setName(String nameExpr) throws JspException {\n this.nameExpr = nameExpr;\n }", "private static void checkTokenName(String namedOutput) {\r\n\t\tif (namedOutput == null || namedOutput.length() == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Name cannot be NULL or emtpy\");\r\n\t\t}\r\n\t\tfor (char ch : namedOutput.toCharArray()) {\r\n\t\t\tif ((ch >= 'A') && (ch <= 'Z')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((ch >= 'a') && (ch <= 'z')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((ch >= '0') && (ch <= '9')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Name cannot be have a '\" + ch + \"' char\");\r\n\t\t}\r\n\t}", "public void check( Name name ) throws ParseException\n\t{\n\t\tif (map.containsKey( name.name ))\n\t\t\tthrow new ParseException( String.format(\n\t\t\t\t\"duplicate name (%s) at line %d\", name.name, name.token.beginLine ) );\n\t}", "private void validationNom(String nameGroup) throws FormValidationException {\n\t\tif (nameGroup != null && nameGroup.length() < 3) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t}\n\n\t\t// TODO checker si le nom exist pas ds la bdd\n\t\t// else if (){\n\t\t//\n\t\t// }\n\t}", "@Test\n public void testIsNullValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = null;\n boolean result = service.isValidName(name);\n assertEquals(false, result);\n }", "public void testIllegalFowardSlashInName() throws Exception\r\n {\r\n try\r\n {\r\n new ComponentDirective( \r\n \"fred/blogs\", m_activation, m_collection, m_lifestyle, m_classname, \r\n m_categories, m_context, null, null );\r\n fail( \"Did not throw an IllegalArgumentException for a name with a '/'.\" ); \r\n }\r\n catch( IllegalArgumentException e )\r\n {\r\n // ok\r\n }\r\n }", "private void validateManagedBean(IClassBean bean) {\r\n \t\tIAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tIAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\tif (decorator != null && interceptor != null) {\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, decorator, bean.getResource());\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, interceptor, bean.getResource());\r\n \t\t}\r\n \r\n \t\tIAnnotationDeclaration declaration = CDIUtil.getDifferentScopeDeclarationThanDepentend(bean);\r\n \t\tif (declaration != null) {\r\n \t\t\tIType type = bean.getBeanClass();\r\n \t\t\ttry {\r\n \t\t\t\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a public field declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tIField[] fields = type.getFields();\r\n \t\t\t\tfor (IField field : fields) {\r\n \t\t\t\t\tif (Flags.isPublic(field.getFlags()) && !Flags.isStatic(field.getFlags())) {\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_PUBLIC_FIELD, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tdeclaration, bean.getResource());\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\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a parameterized bean class declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tString[] typeVariables = type.getTypeParameterSignatures();\r\n \t\t\t\tif (typeVariables.length > 0) {\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_GENERIC_TYPE, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\tdeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 3.1.4. Specializing a managed bean\r\n \t\t * - managed bean class annotated @Specializes does not directly extend the bean class of another managed bean\r\n \t\t */\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();\r\n \t\tif (specializesDeclaration != null) {\r\n \t\t\tsaveAllSuperTypesAsLinkedResources(bean);\r\n \t\t\ttry {\r\n \t\t\t\tIBean sBean = bean.getSpecializedBean();\r\n \t\t\t\tif (sBean != null) {\r\n \t\t\t\t\tif (sBean instanceof ISessionBean || sBean.getAnnotation(CDIConstants.STATELESS_ANNOTATION_TYPE_NAME) != null\r\n \t\t\t\t\t\t\t|| sBean.getAnnotation(CDIConstants.SINGLETON_ANNOTATION_TYPE_NAME) != null) {\r\n \t\t\t\t\t\t// The specializing bean directly extends an enterprise bean class\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t// Validate the specializing bean extends a non simple bean\r\n \t\t\t\t\t\tboolean hasDefaultConstructor = true;\r\n \t\t\t\t\t\tIMethod[] methods = sBean.getBeanClass().getMethods();\r\n \t\t\t\t\t\tfor (IMethod method : methods) {\r\n \t\t\t\t\t\t\tif (method.isConstructor()) {\r\n \t\t\t\t\t\t\t\tif (Flags.isPublic(method.getFlags()) && method.getParameterNames().length == 0) {\r\n \t\t\t\t\t\t\t\t\thasDefaultConstructor = true;\r\n \t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\thasDefaultConstructor = false;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!hasDefaultConstructor) {\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// The specializing bean extends nothing\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 9.3. Binding an interceptor to a bean\r\n \t\t * - managed bean has a class level interceptor binding and is declared final or has a non-static, non-private, final method\r\n \t\t * - non-static, non-private, final method of a managed bean has a method level interceptor binding\r\n \t\t */\r\n \t\ttry {\r\n \t\t\tSet<IInterceptorBinding> bindings = bean.getInterceptorBindings();\r\n \t\t\tif(!bindings.isEmpty()) {\r\n \t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t} else {\r\n \t\t\t\t\tIMethod[] methods = bean.getBeanClass().getMethods();\r\n \t\t\t\t\tfor (int i = 0; i < methods.length; i++) {\r\n \t\t\t\t\t\tint flags = methods[i].getFlags();\r\n \t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(methods[i].getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\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} else {\r\n \t\t\t\tSet<IBeanMethod> beanMethods = bean.getAllMethods();\r\n \t\t\t\tfor (IBeanMethod method : beanMethods) {\r\n \t\t\t\t\tif(!method.getInterceptorBindings().isEmpty()) {\r\n \t\t\t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tIMethod sourceMethod = method.getMethod();\r\n \t\t\t\t\t\t\tint flags = sourceMethod.getFlags();\r\n \t\t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(sourceMethod.getNameRange());\r\n \t\t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (JavaModelException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t}\r\n \t}", "public void validateUserName(FacesContext context, UIComponent validate, Object value){\n\t\tcheckHibernateAnnotations(context, validate, value);\t\t\t\t\n\t\tString username=(String)value;\n\t\tif (!isUsernameAvailable(username)) {\n\t\t\tFacesMessage msg = new FacesMessage(\"ice username already taken\");\n\t\t\tcontext.addMessage(validate.getClientId(context), msg);\n\t\t\tusernameValid=false;\n\t\t}else usernameValid=true;\n\t}", "@Test\n\tpublic void caseNameWithWrongLength() {\n\t\tString caseName = \"le\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t\tfail();\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}", "@NotNull\n public String getName() {\n return \"Validate Input..\";//InspectionsBundle.message(\"inspection.comparing.references.use.quickfix\");\n\n }", "public void testIllegalCommaInName() throws Exception\r\n {\r\n try\r\n {\r\n new ComponentDirective( \r\n \"fred,blogs\", m_activation, m_collection, m_lifestyle, m_classname, \r\n m_categories, m_context, null, null );\r\n fail( \"Did not throw an IllegalArgumentException for a name with a comma.\" ); \r\n }\r\n catch( IllegalArgumentException e )\r\n {\r\n // ok\r\n }\r\n }", "public boolean getDisableNameValidation() {\n return disableNameValidation;\n }", "public static boolean isNotBlank(Object bean) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, IntrospectionException {\r\n\t\treturn !isBlank(bean);\r\n\t}", "public void validateAlias(String lang) {\n boolean valid = false;\n if (StringUtils.isNotBlank(this.alias)) {\n Pattern p = Pattern.compile(\"^[\\\\w-]{3,15}$\", Pattern.UNICODE_CHARACTER_CLASS);\n Matcher m = p.matcher(this.alias);\n valid = m.matches();\n }\n if (!valid) throw new ValidateException(new ErrorEntity(ErrorCode.INVALID, lang));\n }", "public String getBeanName() {\r\n\t\treturn beanName;\r\n\t}", "public static void checkWithoutSpaces(String name)throws SpaceNotAllowedException{\n \n if(name.contains(\" \")) throw new SpaceNotAllowedException(\"The spaces in the name of entity are not allowed!\");\n }", "@SuppressWarnings(\"rawtypes\")\n public static boolean isPropName(String varName) {\n if (varName == null)\n return false;\n varName = varName.toUpperCase().trim();\n for (Class<? extends Enum> c : CMProps.PROP_CLASSES) {\n if (CMath.s_valueOf(c, varName) != null)\n return true;\n }\n return false;\n }", "@Override\n protected void checkElementNameUnique(Element element)\n {\n }", "public static boolean isNameValid(String string) {\n if (isBlankOrNull(string)) return false;\n if (string.length() > 45) return false;\n\n return string.matches(\"[a-zA-Z0-9]*\");\n }", "private static final void assertName(final WadlElementName name, final XMLStreamReader reader) {\n if (!match(name, reader)) {\n throw new AssertionError(reader.getLocalName());\n }\n }", "public boolean isValidateLastName(String lastName) {\n if (lastName.trim().equals(\"\"))\n return false;\n else\n return lastName.matches(\"[a-zA-Z]*\");\n }", "private boolean validNames(String whiteName, String blackName){\n return whiteName.length() > 0 && blackName.length() > 0 &&\n !whiteName.equalsIgnoreCase(blackName);\n }", "public String getInvalidName() {\n return invalidName;\n }", "public Object findBean(String beanName) {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\treturn context.getApplication().evaluateExpressionGet(context, \"#{\" + beanName + \"}\", Object.class);\n\t}", "public boolean checkName(String name)\n {\n boolean value = true;\n if(name.length() < 3 || name.length() > 15)\n {\n System.out.println(\"Name must be between 3 and 15 characters\");\n value = false;\n }\n return value;\n }", "@Test\n public void labelIsNotWithInvalidPattern() {\n String[] invalidLabels = StringUtil.INVALID_USERNAME;\n for (String label : invalidLabels) {\n propertyIsNot(label, descriptionS, CodeI18N.FIELD_PATTERN_INCORRECT_USERNAME,\n \"label property does not fulfill the username pattern restrictions\");\n }\n }", "public boolean isTopicNameValid(String topicName) {\n return !StringUtils.isEmpty(topicName) &&\n !topicName.contains(\"+\") &&\n !topicName.contains(\"#\") &&\n (this.topicNamePattern == null || this.topicNamePattern.matcher(topicName).matches());\n }", "public void testGetNonExistentBean(){\r\n try {\r\n springBeanProvider.getBean(\"thisBeanDoesntExist\");\r\n fail(\"The bean doesnt exist and must throw an NosuchBeanDefinition exception\");\r\n } catch (NoSuchBeanDefinitionException e){\r\n // do nothing\r\n }\r\n }", "static public boolean validateName(String proposedName, boolean allowSpace)\n {\n Pattern p;\n if (allowSpace)\n p = Pattern.compile(\"[A-Z][A-Z0-9_. -]*\", Pattern.CASE_INSENSITIVE);\n else\n p = Pattern.compile(\"[A-Z][A-Z0-9_.-]*\", Pattern.CASE_INSENSITIVE);\n \n return (p.matcher(proposedName).matches());\n\n }", "public boolean validateLastName() {\n\t\treturn this.getLastName().length() > 0 && this.getLastName().length() <= 20;\n\t}", "public void setValidatorName(String name) {\r\n\t\t_validatorName = name;\r\n\t}", "private boolean checkName(String name) {\n if (!name.equals(\"\")) {\n //Check si le nom est déjà utilisé\n return myDbA.checkName(name);\n }\n return false;\n }", "@Override\n\tpublic void setBeanName(String beanName) {\n\t\tSystem.out.println(\"Bean Name:\"+beanName);\n\t\t\n\t}", "@ARule(\n\t\t\tdate = \"9/14/2006\",\t\t\n\t\t\tdesc = \"Check the target variable NCName\",\n\t\t\tauthor = \"[email protected]\",\n\t\t\terrors=\"BPELC__UNSET_ATTRIBUTE,General.NCName_Bad\"\n\t\t)\t\n\tpublic void rule_CheckName_1 () {\t\t\t\t\t\n\t\t// Must be a valid NCName ...\n\t\tcheckNCName(mNode, ncName, AT_LINK_NAME );\t\t\t\n\t}", "boolean validateLastName(String Last_name) {\n\t\treturn true;\n\n\t}", "static private Object lookup(PageContext pageContext, String name, \r\n String scope, String pageParam, Properties prop) throws JspException {\r\n\r\n Object bean = null;\r\n if (scope == null)\r\n bean = pageContext.findAttribute(name);\r\n else if (scope.equalsIgnoreCase(pageParam))\r\n bean = pageContext.getAttribute(name, PageContext.PAGE_SCOPE);\r\n else if (scope.equalsIgnoreCase(\"request\"))\r\n bean = pageContext.getAttribute(name, PageContext.REQUEST_SCOPE);\r\n else if (scope.equalsIgnoreCase(\"session\"))\r\n bean = pageContext.getAttribute(name, PageContext.SESSION_SCOPE);\r\n else if (scope.equalsIgnoreCase(\"application\"))\r\n bean = pageContext.getAttribute(name, PageContext.APPLICATION_SCOPE);\r\n else {\r\n Object[] objs = { name, scope };\r\n String msg = MessageFormat.format(prop.getProperty(\"error.msg.cant_find_bean\"), objs);\r\n throw new JspException(msg);\r\n }\r\n\r\n return (bean);\r\n }", "public void checkValidXmlToken(String name) throws InvalidConfigException\n {\n try\n {\n //Construct a valid xml string\n String xml = XML_1 + name + XML_2;\n ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes());\n InputSource is = new InputSource(bais);\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n dbf.setValidating(false);\n DocumentBuilder db = dbf.newDocumentBuilder();\n db.parse(is);\n }\n catch (Exception e)\n {\n throw new InvalidConfigException(\n strMgr.getString(\"validator.invalid_value\", getName(), name));\n }\n }", "@Override\n public void validate(FacesContext context, UIComponent component,\n Object value) throws ValidatorException {\n\n String uname = value.toString();\n\n if (!isValidEmail(uname)) {\n\n FacesMessage facesMsg = new FacesMessage(\n AccountStatusErrorMessages.INVALID_EMAIL_FORMAT);\n facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);\n throw new ValidatorException(facesMsg);\n\n }\n\n if (mgr.isUsernameTaken(uname)) {\n FacesMessage facesMsg = new FacesMessage(\n AccountStatusErrorMessages.EMAIL_TAKEN);\n facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);\n throw new ValidatorException(facesMsg);\n }\n\n }", "public static void isValidNameOnCreditCard(String userInput) {\n\t\tif (!userInput.matches(\"^(?!.* )[a-zA-Z ]+$\")) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter your name as it appears on the card. Please try again:\");\n\t\t}\n\t}", "public boolean validateLastName() {\n if (lastName.length() == 0 ){\n return false;\n }\n return true;\n }", "public void validate() throws ConfigurationException {\n if (Strings.isNullOrEmpty(name)) {\n throw ConfigurationException.propertyNotFoundException(\"name\");\n }\n }", "protected ValidationComponent createFieldExistenceComponent (\n\t\tfinal String fieldName)\n\t{\n\t\treturn new ValidationComponent ()\n\t\t{\n\t\t\tpublic void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (!getModel().hasField(getClassName(), fieldName))\n\t\t\t\t{\n\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\"util.validation.field_not_found\");\t\t\t//NOI18N\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}" ]
[ "0.56747127", "0.5444234", "0.5415798", "0.5313826", "0.52592605", "0.5251971", "0.5249979", "0.5202107", "0.5148751", "0.51471865", "0.51325864", "0.5119267", "0.5108007", "0.50893724", "0.50843745", "0.5083467", "0.5074049", "0.503079", "0.5024338", "0.50188", "0.5013764", "0.49733976", "0.49482068", "0.4894879", "0.48786086", "0.48540875", "0.48432565", "0.48376462", "0.48320395", "0.48258135", "0.48103964", "0.47806662", "0.477437", "0.4765507", "0.47457948", "0.47324544", "0.4728033", "0.47246537", "0.47209495", "0.4716532", "0.47128895", "0.46990994", "0.46797982", "0.4679396", "0.4654967", "0.46499655", "0.46463132", "0.46412516", "0.4640013", "0.4635839", "0.46346092", "0.46237245", "0.4614832", "0.46079078", "0.45946658", "0.45892754", "0.45843774", "0.4582145", "0.45818263", "0.45817068", "0.45795652", "0.4578163", "0.4576838", "0.45757818", "0.45739225", "0.45723736", "0.45706236", "0.45652", "0.45578745", "0.4548446", "0.45437336", "0.4539798", "0.45310083", "0.45118853", "0.45093566", "0.4495386", "0.44943202", "0.44707346", "0.44698313", "0.4466492", "0.44555473", "0.44527304", "0.4451211", "0.4449863", "0.44463873", "0.4446035", "0.44401193", "0.44385704", "0.44359404", "0.44324365", "0.44296998", "0.44249487", "0.44238287", "0.44186595", "0.44183522", "0.4416791", "0.44164383", "0.4409416", "0.4407741", "0.43977427" ]
0.74185884
0
/ Returns set of EL names which are declared in the resource
private Set<String> getELNamesByResource(IPath resourcePath) { Set<IBean> beans = cdiProject.getBeans(resourcePath); if(beans.isEmpty()) { return Collections.emptySet(); } Set<String> result = new HashSet<String>(); for (IBean bean : beans) { String name = bean.getName(); if(name!=null) { result.add(name); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getResourceAttributeNames()\n {\n return null;\n }", "@Override\n\tpublic Enumeration<String> getKeys() {\n\t\treturn _resourceBundle.getKeys();\n\t}", "public Set<String> getAttributeNames();", "public Collection getESBComponentNames()\n {\n \treturn( getFrameworkXMLParser().getAttributesForEachOccurance( \"component\", \"name\" ) );\n }", "java.util.Enumeration getPropertyNames();", "public abstract List<String> getPreFacesRequestAttrNames();", "public String[] getNames() {\r\n\t\treturn this.context.getNames();\r\n\t}", "public String[] getPropertyNames();", "default List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}", "public Set<String> getVariableNames()\r\n\t{\r\n\t\tSet<String> variableNames = new HashSet<>();\r\n\t\texpressionPart.collectVariables(variableNames);\r\n\t\t\r\n\t\treturn variableNames;\r\n\t}", "public Enumeration getPropertyNames()\n {\n Hashtable props = getProperties();\n return (props != null) ? props.keys() : new Vector().elements();\n }", "public com.google.protobuf.ProtocolStringList\n getResourceNamesList() {\n return resourceNames_.getUnmodifiableView();\n }", "public com.google.protobuf.ProtocolStringList\n getResourceNamesList() {\n return resourceNames_;\n }", "public Collection getESBManagerNames()\n {\n \treturn( getFrameworkXMLParser().getAttributesForEachOccurance( \"esbManager\", \"name\" ) );\n }", "@Transient\n\tpublic List<String> getRoleNames()\n\t{\n\t\tList<String> roleNames = new ArrayList<String>();\n\t\t\n\t\tfor (Role role : getRoles())\n\t\t{\n\t\t\troleNames.add(role.getRolename());\n\t\t}\n\t\t\n\t\treturn roleNames;\n\t}", "Collection<QName> getDefinedStyleNames();", "public static String[] getElementNames() {\n return elementNames;\n }", "public List<String> getDistinctResourceName(){\n\t\treturn jtemp.queryForList(\"SELECT DISTINCT resource_type_id||resource_name FROM resources\", String.class);\n\t}", "public List getAttributeNames() {\n log.debug(\"getAttributeNames()\");\n ResultSet resultSet = attrNST.selectRows(\"name\");\n return resultSet.toStringList(1);\n }", "java.util.List getClassPathElements();", "public Enumeration getPropertyNames() {\r\n return properties.keys();\r\n }", "public String [] getNames () { \n return this.listAttributes(); \n }", "public Enumeration getResourceLocations( String name );", "public Enumeration getPropertyNames()\n {\n final EnumerationUnion eu = new EnumerationUnion();\n if( properties != null )\n {\n eu.add( properties.keys() );\n }\n if( ancestors != null )\n {\n final int size = ancestors.size();\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n eu.add( clazz.getPropertyNames() );\n }\n }\n try\n {\n final ScriptingClass object = getClassLoader().load( \"object\" );\n eu.add( object.getPropertyNames() );\n }\n catch( ScriptingClassNotFoundException e )\n {\n }\n return eu;\n }", "public String[] getRuleSetDisplayNames(ULocale loc)\n/* */ {\n/* 996 */ String[] names = getNameListForLocale(loc);\n/* 997 */ if (names != null) {\n/* 998 */ return (String[])names.clone();\n/* */ }\n/* 1000 */ names = getRuleSetNames();\n/* 1001 */ for (int i = 0; i < names.length; i++) {\n/* 1002 */ names[i] = names[i].substring(1);\n/* */ }\n/* 1004 */ return names;\n/* */ }", "public Iterable<String> getPropertyKeys();", "public String[] getValidatorNames();", "public List<String> getAttributeNames() {\n\t\treturn new ArrayList<>(attributes.keySet());\n\t}", "Iterable<String> getRegisteredNames();", "public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}", "public synchronized Enumeration<String> getPropertyNames() {\n return PropertyArray.enumerate(props);\n }", "public List <String> getPropertyNames()\n{\n // Get list from PropertyNamesMap - load if not found\n List <String> list = _propertyNamesMap.get(getClass());\n if(list==null) {\n _propertyNamesMap.put(getClass(), list = new ArrayList()); addPropNames(); }\n return list;\n}", "@Override\n\t\tpublic Enumeration getAttributeNames() {\n\t\t\treturn null;\n\t\t}", "String[] getPropertyKeys();", "public Collection getRoleNames() throws Exception\r\n {\n return null;\r\n }", "@NotNull\n\tpublic Set<String> getAngularVariables()\n\t{\n\t\tif (angularVariables == null)\n\t\t{\n\t\t\tangularVariables = new LinkedHashSet<>();\n\t\t}\n\t\treturn angularVariables;\n\t}", "public String getResourceIds() {\n return resourceIds;\n }", "public Collection<PropertyTagXrdEntry> getXrdNames() throws WebdavException {\n return xrdNames.values();\n }", "public String[] getStatusVariableNames();", "public List<String> getDistinctResourceIdName(){\n\t\treturn jtemp.queryForList(\"SELECT DISTINCT resource_id||' '||resource_type_id||' '||resource_name FROM resources\", String.class);\n\t}", "private Map<String, String[]> getServletRoles() {\n Reflections reflections = new Reflections(new ConfigurationBuilder()\n .setUrls(ClasspathHelper.forPackage(\"com.blakesinner.quickNotes.controller\"\n , ClasspathHelper.contextClassLoader(), ClasspathHelper.staticClassLoader()))\n );\n\n return extractAnnotations(reflections.getSubTypesOf(HttpServlet.class));\n }", "public String[] getPropertyNames()\n {\n return ClassAnalyzer.getPropertyNames(m_Source.getClass());\n }", "public ArrayList<String> getAllVarNames() {\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\tfor (NameSSA n : name.values()){\n\t\t\tString root = n.name();\n\t\t\tfor (int i=0;i<=n.cpt;i++)\n\t\t\t\tnames.add(root+\"_\"+i);\n\t\t}\n\t\treturn names;\n\t}", "@Override\n\tpublic Enumeration<String> getAttributeNames() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Enumeration<String> getAttributeNames() {\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic Set<String> getRegisteredElasticEntityNames() {\n\t\t\t\treturn null;\n\t\t\t}", "public Set<String> getEntriesName(){\n return _entries.keySet(); \n }", "@Override\n\t\tpublic Set<String> getAttributeNames() {\n\t\t\treturn null;\n\t\t}", "public String[] getRuleSetDisplayNames()\n/* */ {\n/* 1015 */ return getRuleSetDisplayNames(ULocale.getDefault(ULocale.Category.DISPLAY));\n/* */ }", "public static String[] getAttributeNames()\n\t{\n\t\tList<String> attributeNames = new ArrayList<String>();\n\t\tfor ( PwdPolicy attr : PwdPolicy.values() )\n\t\t{\n\t\t\tattributeNames.add( attr.getAttribute() );\n\t\t}\n\t\tString[] result = attributeNames.toArray( new String[attributeNames.size()] );\n\t\tlogger.log( loglevel, \"Returning attribute names: \"+Arrays.toString(result) );\n\t\treturn result;\n\t}", "public Enumeration<String> getParaNames() {\n\t\treturn request.getParameterNames();\n\t}", "public String[] getAttributeNames()\n {\n return attributeNames;\n }", "public ELContext getELContext() {\n/* 47 */ return (ELContext)getSource();\n/* */ }", "public Enumeration enumeratePropertyNames() {\n return this.attributes.keys();\n }", "public int getResourceNamesCount() {\n return resourceNames_.size();\n }", "public Vector getResourceIds()\n {\n return mResourceIds;\n }", "public Set<String> getStringPropertyNames();", "public ArrayList<String> getCurrentVarNames() {\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\tfor (NameSSA n : name.values())\n\t\t\tnames.add(n.current());\n\t\treturn names;\n\t}", "Set<String> getConstraintMappingResourcePaths();", "Set<String> getRoles();", "public int getResourceNamesCount() {\n return resourceNames_.size();\n }", "public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }", "java.util.List<java.lang.String>\n getResourcePatternsList();", "@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }", "public String[] getAttributeNames()\n {\n String superNames[] = super.getAttributeNames();\n\n if (localfs.isUnixFS())\n {\n StringList list = new StringList(superNames);\n list.add(LocalFSFactory.unixFSAttributeNames);\n return list.toArray();\n }\n\n return superNames;\n }", "public Set<String> getVarRefNames() {\n List<Xnode> varRefs = matchAll(Xcode.VAR_REF);\n Set<String> names = new HashSet<>();\n for(Xnode varRef : varRefs) {\n names.add(varRef.matchSeq(Xcode.VAR).value());\n }\n return names;\n }", "public ArrayList<String> getNames(){\r\n \t\tArrayList<String> names = new ArrayList<String>();\r\n \t\tfor (Enumeration<Tag> temp = tags.elements(); temp.hasMoreElements();) \r\n \t\t\tnames.add(temp.nextElement().getName());\r\n \t\treturn names;\r\n \t}", "public Set<String> getNames() {\n\t\t//\t\tArrayList<String> names = new ArrayList<String>();\n\t\t//\t\tfor (NameSSA n : name.values())\n\t\t//\t\t\tnames.add(n.current());\n\t\treturn name.keySet();\n\t}", "public abstract String[] getRequiredAttributeNames();", "public List<String> getResources() {\n return resources;\n }", "public Iterator<String> getUserDefinedProperties();", "@Nonnull\n @Override\n public Set<ResourceType> list() {\n return getTables().stream()\n .map(Table::name)\n .map(String::toLowerCase)\n .map(LOWER_CASE_RESOURCE_NAMES::get)\n .filter(Objects::nonNull)\n .collect(Collectors.toSet());\n }", "java.util.List<java.lang.String>\n getExceptionsList();", "public Set<String> getTagNames()\r\n\t{\r\n\t\treturn Collections.unmodifiableSet(tagMap.keySet());\r\n\t}", "public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}", "Collection<PropertyValidationAnnotationHandler> getPropertyHandlers();", "public Set getResources() {\n/* 92 */ return Collections.unmodifiableSet(this.resources);\n/* */ }", "Set<String> getRangeLocalNames();", "public String[] getRuleSetNames()\n/* */ {\n/* 945 */ return (String[])this.publicRuleSetNames.clone();\n/* */ }", "private Map<String, String> getComponentHtmlTagAttributes(String resourceType) {\n if (StringUtils.isNotEmpty(resourceType)) {\n Component component = componentManager().getComponent(resourceType);\n if (component != null && component.getHtmlTagAttributes() != null) {\n return component.getHtmlTagAttributes();\n }\n }\n return ImmutableMap.of();\n }", "public String[] getLocalNames() {\r\n\t\treturn names.toArray(new String[0]);\r\n\t}", "public Iterator<QName> iterateExternalVariables() {\n final Iterator varIterator = env.iterateExternalVariables();\n return new Iterator<QName>() {\n public boolean hasNext() {\n return varIterator.hasNext();\n }\n\n public QName next() {\n return new QName(((XPathVariable) varIterator.next()).getVariableQName());\n }\n\n public void remove() {\n throw new UnsupportedOperationException(\"remove\");\n }\n };\n }", "@Override\n\tpublic StringList getNames() {\n\t\tStringList ss = new StringList();\n\t\tss.add(\"java\");\n\t\treturn ss;\n\t}", "Set<String> getNames();", "@Override\r\n\tpublic String[] names() {\n\t\treturn new String[] {\"lifesteal\"};\r\n\t}", "public List<String> getAngularVariables()\n {\n if (angularVariables == null)\n {\n angularVariables = new ArrayList<>();\n }\n return angularVariables;\n }", "ExpressionList getExpressionList();", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "private Map<String, String> setRolesForPath() {\n\t\tallRollesForPath = new HashMap<String, String>();\n\t\tallRollesForPath.put(ServiceParamConstant.ADMIN_ROLE, JSPPagePath.PATH_ADMIN_PAGE);\n\t\tallRollesForPath.put(ServiceParamConstant.BOSS_ROLE, JSPPagePath.PATH_BOSS_PAGE);\n\t\tallRollesForPath.put(ServiceParamConstant.HR_ROLE, JSPPagePath.PATH_HR_PAGE);\n\t\tallRollesForPath.put(ServiceParamConstant.EMPLOYEE_ROLE, JSPPagePath.PATH_EMPLOYEE_PAGE);\n\t\treturn allRollesForPath;\n\t}", "public String[] getDirectiveNames ();", "Iterable<String> getModuleNames();", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "String getResourceName();", "public final Enumeration getKeys() {\n/* 130 */ return getBundle().getKeys();\n/* */ }", "List<ResourceType> resourceTypes();", "public Set<String> getTags(){\r\n\t\treturn tags.keySet();\r\n\t}", "public List<String> getActiveSetNames()\n {\n List<String> names = New.list(myActiveSetConfig.getSetNames());\n names.remove(USER_ACTIVATED_SET_NAME);\n return names;\n }", "List<Resource> resources();", "public String getResourceName();", "public Set<String> attributeKeys()\r\n\t{\r\n\t\treturn this.attributes.stringPropertyNames();\r\n\t}" ]
[ "0.5959365", "0.5858123", "0.58563596", "0.5831604", "0.5829432", "0.5759864", "0.5653281", "0.5613338", "0.5512966", "0.54577947", "0.5407573", "0.53979033", "0.5394056", "0.5329401", "0.5309875", "0.5280872", "0.52803624", "0.52429074", "0.5201026", "0.51668245", "0.5157933", "0.5150123", "0.5148946", "0.5133303", "0.51258487", "0.5119683", "0.511543", "0.511475", "0.5107597", "0.5089051", "0.5080608", "0.50593394", "0.50313246", "0.50255704", "0.50223166", "0.50167894", "0.50098604", "0.5005497", "0.4976457", "0.4975487", "0.49566773", "0.49522042", "0.49506494", "0.49501", "0.49501", "0.49441624", "0.4924213", "0.49226576", "0.49219224", "0.4917083", "0.49116966", "0.4903727", "0.48953617", "0.48900673", "0.48795772", "0.48771572", "0.48664144", "0.48662376", "0.4865036", "0.48602846", "0.4855741", "0.48533213", "0.4846819", "0.4843072", "0.48416838", "0.4835181", "0.48329425", "0.48320693", "0.48314807", "0.48309243", "0.48301148", "0.48258486", "0.48231947", "0.4817726", "0.4803776", "0.47990918", "0.4794712", "0.4785904", "0.478438", "0.47842878", "0.47797933", "0.47747988", "0.4767779", "0.476298", "0.4757245", "0.4747957", "0.47463343", "0.4745232", "0.47399372", "0.47382358", "0.47352663", "0.4733404", "0.473202", "0.47301257", "0.47284615", "0.47225285", "0.47158155", "0.47151387", "0.47141188", "0.47109285" ]
0.73316574
0
/ 9.5.2. Interceptor binding types with members the set of interceptor bindings of a bean or interceptor, including bindings inherited from stereotypes and other interceptor bindings, has two instances of a certain interceptor binding type and the instances have different values of some annotation member
private void validateInterceptorBindings(IClassBean bean) { try { if(hasConflictedInterceptorBindings(bean)) { //TODO consider putting markers to interceptor bindings/stereotype declarations. ITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange()); addError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS, reference, bean.getResource()); } Set<IBeanMethod> methods = bean.getAllMethods(); for (IBeanMethod method : methods) { if(hasConflictedInterceptorBindings(method)) { //TODO consider putting markers to interceptor bindings/stereotype declarations. ITextSourceReference reference = CDIUtil.convertToSourceReference(method.getMethod().getNameRange()); addError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS, reference, bean.getResource()); } } } catch (JavaModelException e) { CDICorePlugin.getDefault().logError(e); } catch (CoreException e) { CDICorePlugin.getDefault().logError(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateInterceptor(IInterceptor interceptor) {\r\n \t\tif (interceptor.getName() != null) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(interceptor);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.INTERCEPTOR_HAS_NAME, CDIPreferences.INTERCEPTOR_HAS_NAME, declaration, interceptor.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - interceptor is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (interceptor.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = interceptor.getInterceptorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = interceptor.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.INTERCEPTOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, interceptor\r\n \t\t\t\t\t.getResource());\r\n \t\t}\r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - interceptor has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - interceptor has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = interceptor.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_INTERCEPTOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), interceptor.getResource());\r\n \t\t}\r\n \t\t/*\r\n \t\t * 9.2. Declaring the interceptor bindings of an interceptor\r\n \t\t * - interceptor declared using @Interceptor does not declare any interceptor binding (Non-Portable behavior)\r\n \t\t */\r\n \t\tSet<IInterceptorBinding> bindings = interceptor.getInterceptorBindings();\r\n \t\tif(bindings.isEmpty()) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\t\tif(declaration!=null) {\r\n \t\t\t\taddError(CDIValidationMessages.MISSING_INTERCEPTOR_BINDING, CDIPreferences.MISSING_INTERCEPTOR_BINDING, declaration, interceptor.getResource());\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\t/*\r\n \t\t\t * 9.2. Declaring the interceptor bindings of an interceptor\r\n \t\t\t * - interceptor for lifecycle callbacks declares an interceptor binding type that is defined @Target({TYPE, METHOD})\r\n \t\t\t */\r\n \t\t\tfor (IInterceptorBinding binding : bindings) {\r\n \t\t\t\tboolean markedAsWrong = false;\r\n \t\t\t\tIAnnotationDeclaration target = binding.getAnnotationDeclaration(CDIConstants.TARGET_ANNOTATION_TYPE_NAME);\r\n \t\t\t\tif(target!=null) {\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tIMemberValuePair[] ps = target.getDeclaration().getMemberValuePairs();\r\n \t\t\t\t\t\tif (ps != null && ps.length==1) {\r\n \t\t\t\t\t\t\tIMemberValuePair pair = ps[0];\r\n \t\t\t\t\t\t\tObject value = pair.getValue();\r\n \t\t\t\t\t\t\tif(value != null && value instanceof Object[]) {\r\n \t\t\t\t\t\t\t\tObject[] values = (Object[]) value;\r\n \t\t\t\t\t\t\t\tif(values.length>1) {\r\n \t\t\t\t\t\t\t\t\tSet<IBeanMethod> methods = interceptor.getAllMethods();\r\n \t\t\t\t\t\t\t\t\tfor (IBeanMethod method : methods) {\r\n \t\t\t\t\t\t\t\t\t\tif(method.isLifeCycleCallbackMethod()) {\r\n \t\t\t\t\t\t\t\t\t\t\tITextSourceReference declaration = CDIUtil.getAnnotationDeclaration(interceptor, binding);\r\n \t\t\t\t\t\t\t\t\t\t\tif(declaration==null) {\r\n \t\t\t\t\t\t\t\t\t\t\t\tdeclaration = interceptor.getInterceptorAnnotation();\r\n \t\t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_LIFECYCLE_CALLBACK_INTERCEPTOR_BINDING, CDIPreferences.ILLEGAL_LIFECYCLE_CALLBACK_INTERCEPTOR_BINDING, declaration, interceptor.getResource());\r\n \t\t\t\t\t\t\t\t\t\t\tmarkedAsWrong = true;\r\n \t\t\t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} catch (JavaModelException e) {\r\n \t\t\t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif(markedAsWrong) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public abstract TypeBindings bindingsForBeanType();", "Binding<T> withAnyQualifier();", "boolean hasIsBinding();", "public interface AnnotatedBindingBuilder\n extends LinkedBindingBuilder\n{\n\n public abstract LinkedBindingBuilder annotatedWith(Class class1);\n\n public abstract LinkedBindingBuilder annotatedWith(Annotation annotation);\n}", "public abstract Binding getCommonType(Binding b);", "private void changeBinding(InstanceBinding binding) {\r\n\t\t\r\n\t}", "@Override\n\tpublic String getBindingTypes() {\n\t\treturn null;\n\t}", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "private void addExtraBindings() {\n }", "public void attributeReplaced(HttpSessionBindingEvent sbe) {\r\n }", "public void attributeReplaced(HttpSessionBindingEvent sbe) {\r\n }", "public void attributeReplaced(HttpSessionBindingEvent sbe) {\n }", "public void attributeReplaced(HttpSessionBindingEvent sbe) {\n }", "public void testValidateSecondaryAssociationsDuplicateTargetAndQualifier() {\n positionWrapperBean.addNewSecondaryAssociation();\n positionWrapperBean.addNewSecondaryAssociation();\n\n DataBinder binder = new DataBinder(positionWrapperBean, ZynapDefaultFormController.DEFAULT_COMMAND_NAME);\n MutablePropertyValues pvs = new MutablePropertyValues();\n setPrimaryAssociation(pvs);\n pvs.addPropertyValue(new PropertyValue(FIRST_SECONDARY_ASSOCIATION_TARGET_FIELD, new Long(33)));\n pvs.addPropertyValue(new PropertyValue(FIRST_SECONDARY_ASSOCIATION_QUALIFIER_FIELD, new Long(33)));\n pvs.addPropertyValue(new PropertyValue(SECOND_SECONDARY_ASSOCIATION_TARGET_FIELD, new Long(33)));\n pvs.addPropertyValue(new PropertyValue(SECOND_SECONDARY_ASSOCIATION_QUALIFIER_FIELD, new Long(33)));\n binder.bind(pvs);\n\n Errors errors = binder.getBindingResult();\n assertFalse(errors.hasErrors());\n }", "@Override\n\tpublic void attributeReplaced(HttpSessionBindingEvent se) {\n\n\t}", "public static MemberMemberBinding memberBind(Member member, Iterable<MemberBinding> bindings) { throw Extensions.todo(); }", "private void validateMixedClassBean(IClassBean bean) {\r\n \t\tITextSourceReference sessionDeclaration = CDIUtil.getSessionDeclaration(bean);\r\n \t\tITextSourceReference decoratorDeclaration = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tITextSourceReference interceptorDeclaration = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \r\n \t\tif (sessionDeclaration != null) {\r\n \t\t\t/*\r\n \t\t\t * 3.2. Session beans\r\n \t\t\t * - bean class of a session bean is annotated @Decorator\r\n \t\t\t */\r\n \t\t\tif (decoratorDeclaration != null) {\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_DECORATOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tsessionDeclaration, bean.getResource());\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_DECORATOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tdecoratorDeclaration, bean.getResource());\r\n \t\t\t}\r\n \t\t\t/*\r\n \t\t\t * 3.2. Session beans\r\n \t\t\t * - bean class of a session bean is annotated @Interceptor\r\n \t\t\t */\r\n \t\t\tif (interceptorDeclaration != null) {\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_INTERCEPTOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tsessionDeclaration, bean.getResource());\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_INTERCEPTOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tinterceptorDeclaration, bean.getResource());\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private void validateManagedBean(IClassBean bean) {\r\n \t\tIAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tIAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\tif (decorator != null && interceptor != null) {\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, decorator, bean.getResource());\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, interceptor, bean.getResource());\r\n \t\t}\r\n \r\n \t\tIAnnotationDeclaration declaration = CDIUtil.getDifferentScopeDeclarationThanDepentend(bean);\r\n \t\tif (declaration != null) {\r\n \t\t\tIType type = bean.getBeanClass();\r\n \t\t\ttry {\r\n \t\t\t\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a public field declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tIField[] fields = type.getFields();\r\n \t\t\t\tfor (IField field : fields) {\r\n \t\t\t\t\tif (Flags.isPublic(field.getFlags()) && !Flags.isStatic(field.getFlags())) {\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_PUBLIC_FIELD, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tdeclaration, bean.getResource());\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\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a parameterized bean class declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tString[] typeVariables = type.getTypeParameterSignatures();\r\n \t\t\t\tif (typeVariables.length > 0) {\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_GENERIC_TYPE, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\tdeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 3.1.4. Specializing a managed bean\r\n \t\t * - managed bean class annotated @Specializes does not directly extend the bean class of another managed bean\r\n \t\t */\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();\r\n \t\tif (specializesDeclaration != null) {\r\n \t\t\tsaveAllSuperTypesAsLinkedResources(bean);\r\n \t\t\ttry {\r\n \t\t\t\tIBean sBean = bean.getSpecializedBean();\r\n \t\t\t\tif (sBean != null) {\r\n \t\t\t\t\tif (sBean instanceof ISessionBean || sBean.getAnnotation(CDIConstants.STATELESS_ANNOTATION_TYPE_NAME) != null\r\n \t\t\t\t\t\t\t|| sBean.getAnnotation(CDIConstants.SINGLETON_ANNOTATION_TYPE_NAME) != null) {\r\n \t\t\t\t\t\t// The specializing bean directly extends an enterprise bean class\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t// Validate the specializing bean extends a non simple bean\r\n \t\t\t\t\t\tboolean hasDefaultConstructor = true;\r\n \t\t\t\t\t\tIMethod[] methods = sBean.getBeanClass().getMethods();\r\n \t\t\t\t\t\tfor (IMethod method : methods) {\r\n \t\t\t\t\t\t\tif (method.isConstructor()) {\r\n \t\t\t\t\t\t\t\tif (Flags.isPublic(method.getFlags()) && method.getParameterNames().length == 0) {\r\n \t\t\t\t\t\t\t\t\thasDefaultConstructor = true;\r\n \t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\thasDefaultConstructor = false;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!hasDefaultConstructor) {\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// The specializing bean extends nothing\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 9.3. Binding an interceptor to a bean\r\n \t\t * - managed bean has a class level interceptor binding and is declared final or has a non-static, non-private, final method\r\n \t\t * - non-static, non-private, final method of a managed bean has a method level interceptor binding\r\n \t\t */\r\n \t\ttry {\r\n \t\t\tSet<IInterceptorBinding> bindings = bean.getInterceptorBindings();\r\n \t\t\tif(!bindings.isEmpty()) {\r\n \t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t} else {\r\n \t\t\t\t\tIMethod[] methods = bean.getBeanClass().getMethods();\r\n \t\t\t\t\tfor (int i = 0; i < methods.length; i++) {\r\n \t\t\t\t\t\tint flags = methods[i].getFlags();\r\n \t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(methods[i].getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\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} else {\r\n \t\t\t\tSet<IBeanMethod> beanMethods = bean.getAllMethods();\r\n \t\t\t\tfor (IBeanMethod method : beanMethods) {\r\n \t\t\t\t\tif(!method.getInterceptorBindings().isEmpty()) {\r\n \t\t\t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tIMethod sourceMethod = method.getMethod();\r\n \t\t\t\t\t\t\tint flags = sourceMethod.getFlags();\r\n \t\t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(sourceMethod.getNameRange());\r\n \t\t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (JavaModelException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t}\r\n \t}", "@Override\r\npublic void attributeReplaced(HttpSessionBindingEvent arg0) {\n\t\r\n}", "public void registerInterceptorBinding(@Observes BeforeBeanDiscovery event)\n {\n event.addInterceptorBinding(LifecycleBinding.class);\n }", "void intercept(BeanInvocation<_B> invocation) throws Exception;", "public static AnnotationBinding[] getPackedAnnotationBindings(AnnotationBinding[] annotations) {\n int length = annotations == null ? 0 : annotations.length;\n if (length == 0)\n return annotations;\n // only replicate if repackaging.\n AnnotationBinding[] repackagedBindings = annotations;\n for (int i = 0; i < length; i++) {\n AnnotationBinding annotation = repackagedBindings[i];\n if (annotation == null)\n continue;\n ReferenceBinding annotationType = annotation.getAnnotationType();\n if (!annotationType.isRepeatableAnnotationType())\n continue;\n ReferenceBinding containerType = annotationType.containerAnnotationType();\n if (containerType == null)\n // FUBAR.\n continue;\n MethodBinding[] values = containerType.getMethods(TypeConstants.VALUE);\n if (values == null || values.length != 1)\n // FUBAR.\n continue;\n MethodBinding value = values[0];\n if (value.returnType == null || value.returnType.dimensions() != 1 || TypeBinding.notEquals(value.returnType.leafComponentType(), annotationType))\n // FUBAR\n continue;\n // We have a kosher repeatable annotation with a kosher containing type. See if actually repeats.\n List<AnnotationBinding> containees = null;\n for (int j = i + 1; j < length; j++) {\n AnnotationBinding otherAnnotation = repackagedBindings[j];\n if (otherAnnotation == null)\n continue;\n if (//$IDENTITY-COMPARISON$\n otherAnnotation.getAnnotationType() == annotationType) {\n if (repackagedBindings == annotations)\n System.arraycopy(repackagedBindings, 0, repackagedBindings = new AnnotationBinding[length], 0, length);\n // so it is not double packed.\n repackagedBindings[j] = null;\n if (containees == null) {\n containees = new ArrayList();\n containees.add(annotation);\n }\n containees.add(otherAnnotation);\n }\n }\n if (containees != null) {\n ElementValuePair[] elementValuePairs = new ElementValuePair[] { new ElementValuePair(TypeConstants.VALUE, containees.toArray(), value) };\n repackagedBindings[i] = new AnnotationBinding(containerType, elementValuePairs);\n }\n }\n int finalTally = 0;\n for (int i = 0; i < length; i++) {\n if (repackagedBindings[i] != null)\n finalTally++;\n }\n if (repackagedBindings == annotations && finalTally == length) {\n return annotations;\n }\n annotations = new AnnotationBinding[finalTally];\n for (int i = 0, j = 0; i < length; i++) {\n if (repackagedBindings[i] != null)\n annotations[j++] = repackagedBindings[i];\n }\n return annotations;\n }", "@Test\n\tpublic void testInterceptorBindingOpenOn() {\n\t\tnew DefaultStyledText().selectText(\"s:InterceptorBinding\");\n\t\tKeyboardFactory.getKeyboard().invokeKeyCombination(SWT.F3);\n\t\tnew DefaultEditor(\"InterceptorBinding.class\");\n\n\t\t/* test opened object */\n\t\tassertExpectedOpenedClass(\"javax.interceptor.InterceptorBinding\");\n\n\t}", "Binding<T> shared();", "public interface CamelSapBindingModel extends CamelBindingModel {\n /**\n * Gets server.\n * @return server\n */\n String getServer();\n\n /**\n * Sets server.\n * @param server server\n * @return this BindingModel (useful for chaining)\n */\n CamelSapBindingModel setServer(String server);\n\n /**\n * Gets destination.\n * @return destination\n */\n String getDestination();\n\n /**\n * Sets destination.\n * @param destination destination\n * @return this BindingModel (useful for chaining)\n */\n CamelSapBindingModel setDestination(String destination);\n\n /**\n * Gets RFC name.\n * @return RFC name\n */\n String getRfcName();\n\n /**\n * Sets RFC name.\n * @param rfcName RFC name\n * @return this BindingModel (useful for chaining)\n */\n CamelSapBindingModel setRfcName(String rfcName);\n\n /**\n * Gets if it's transacted.\n * @return true if it's transacted\n */\n Boolean isTransacted();\n\n /**\n * Sets if it's transacted.\n * @param transacted true if it's transacted\n * @return this BindingModel (useful for chaining)\n */\n CamelSapBindingModel setTransacted(Boolean transacted);\n}", "private void registerBindings(){\t\t\n\t}", "private void registerBindings(){\t\t\n\t}", "@Override\n\tpublic void attributeReplaced(HttpSessionBindingEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void attributeReplaced(HttpSessionBindingEvent event) {\n\t\t\n\t}", "protected boolean isBindingCandidate(Object value) {\n\t\treturn (value != null && !value.getClass().isArray() && !(value instanceof Collection) &&\n\t\t\t\t!(value instanceof Map) && !BeanUtils.isSimpleValueType(value.getClass()));\n\t}", "@Override\n\tpublic void attributeReplaced(HttpSessionBindingEvent arg0) {\n\t\t\n\t}", "public interface BindingMapperVarAware<T>\n extends BindingMapper<T>\n{\n Set<Var> getVarsMentioned();\n}", "@Test\n public void canDetect_TwoAnnotations_WithRuntimeRetention_ForSingleParam() {\n final MethodInfo methodInfo = classInfo.getMethodInfo()\n .getSingleMethod(\"twoAnnotations_WithRuntimeRetention_ForSingleParam\");\n\n assertThat(methodInfo.hasParameterAnnotation(ParamAnnoRuntime.class)).isTrue();\n\n assertThat(methodInfo.hasParameterAnnotation(SecondParamAnnoRuntime.class)).isTrue();\n }", "@Override\r\npublic void valueBound(HttpSessionBindingEvent arg0) {\n\t\r\n}", "@Override // androidx.databinding.ViewDataBinding\n /* renamed from: a */\n public boolean mo5922a(int i, Object obj, int i2) {\n return false;\n }", "@Override // androidx.databinding.ViewDataBinding\n /* renamed from: a */\n public boolean mo5922a(int i, Object obj, int i2) {\n return false;\n }", "@Override\r\n\tpublic String getBind_housing_property_ind() {\n\t\treturn super.getBind_housing_property_ind();\r\n\t}", "public static MemberMemberBinding memberBind(Method method, Iterable<MemberBinding> bindings) { throw Extensions.todo(); }", "@Override\n\tpublic boolean visit(SimpleName node) {\n\t\tIBinding b = node.resolveBinding();\n\t\tif (b != null) {\n\t\t\tif (b instanceof IVariableBinding) {\n\t\t\t\tIVariableBinding vb = (IVariableBinding) b;\n\t\t\t\tITypeBinding tb = vb.getType();\n\t\t\t\tif (tb != null) {\n\t\t\t\t\ttb = tb.getTypeDeclaration();\n\t\t\t\t\tif (tb.isLocal() || tb.getQualifiedName().isEmpty())\n\t\t\t\t\t\treturn false;\n\t\t\t\t\tthis.fullTokens.append(\" \" + getQualifiedName(tb) + \" \");\n\t\t\t\t\tthis.partialTokens.append(\" \" + getName(tb) + \" \");\n\t\t\t\t}\n\t\t\t} else if (b instanceof ITypeBinding) {\n\t\t\t\tITypeBinding tb = (ITypeBinding) b;\n\t\t\t\ttb = tb.getTypeDeclaration();\n\t\t\t\tif (tb.isLocal() || tb.getQualifiedName().isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t\tthis.fullTokens.append(\" \" + getQualifiedName(tb) + \" \");\n\t\t\t\tthis.partialTokens.append(\" \" + getName(tb) + \" \");\n\t\t\t}\n\t\t} else {\n\t\t\tthis.fullTokens.append(\" \" + node.getIdentifier() + \" \");\n\t\t\tthis.partialTokens.append(\" \" + node.getIdentifier() + \" \");\n\t\t}\n\t\treturn false;\n\t}", "public unbind_args(unbind_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n this.companyId = other.companyId;\n this.userId = other.userId;\n }", "@Override\r\n public IBinder onBind(Intent intent) {\n return binder;\r\n }", "@Override\n public List<MBindingContext> getBindingContexts()\n {\n return null;\n }", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn binder;\r\n\t}", "@Override\n public IBinder onBind(Intent intent) {\n Log.d(LOG_TAG, \"log tag\" + binder);\n return binder;\n }", "ServiceBindingOptions withMarker(Class<? extends Annotation>... marker);", "@Override\r\n\tpublic String getBind_permits_ind() {\n\t\treturn super.getBind_permits_ind();\r\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn binder;\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn binder;\n\t}", "protected boolean hasAnnotation(MethodInvocation invocation, Class<? extends Annotation> annoType) {\n if (hasAnnotationOnClass(invocation, annoType)) {\n return true;\n }\n if (hasAnnotationOnMethod(invocation, annoType)) {\n return true;\n }\n return false;\n }", "public interface BeanInterceptor<_B> {\n\n /**\n * This is invoked/executed by the framework.\n * The implementation must call <code>invocation.proceed()</code> to continue the interceptor chain.\n * The implementation may throw any Exception in which case the interceptor chain is aborted.\n */\n void intercept(BeanInvocation<_B> invocation) throws Exception;\n}", "@Override\r\n public boolean onUnbind(Intent intent) {\r\n return mAllowRebind;\r\n }", "@Override\n public IBinder onBind(Intent arg0) {\n return binder;\n }", "public InterceptorRegistration addInterceptor(HandlerInterceptor interceptor)\r\n/* 14: */ {\r\n/* 15:46 */ InterceptorRegistration registration = new InterceptorRegistration(interceptor);\r\n/* 16:47 */ this.registrations.add(registration);\r\n/* 17:48 */ return registration;\r\n/* 18: */ }", "Builder addInteractivityType(String value);", "@Test\n public void testMultiValueAnnotationsBackwardCompatibility() throws Exception {\n final String text = \"rule X @ann1( val1, val2 ) @ann2( \\\"val1\\\", \\\"val2\\\" ) when then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n AnnotationDescr ann = rule.getAnnotation(\"ann1\");\n TestCase.assertNotNull(ann);\n TestCase.assertEquals(\"val1, val2\", ann.getValue());\n ann = rule.getAnnotation(\"ann2\");\n TestCase.assertNotNull(ann);\n TestCase.assertEquals(\"\\\"val1\\\", \\\"val2\\\"\", ann.getValue());\n }", "protected int updateBinding(Object value, int position) {\n if(value != null) {\n ExtendedType<?> extendedType = context.getAdapter().getExtendedTypes().getRegisteredType(value.getClass());\n bindings[position].include(++position, value, extendedType);\n }\n return position;\n }", "@Override\r\n\tpublic String getBind_annuity_ind() {\n\t\treturn super.getBind_annuity_ind();\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\r\n\t\tLog.d(TAG, \"onBind\");\r\n\t\tToast.makeText(getApplicationContext(), \"binding\", Toast.LENGTH_SHORT)\r\n\t\t\t\t.show();\r\n\t\treturn mMessenger.getBinder();\r\n\t}", "@InitBinder(\"b\")\n public void init(WebDataBinder binder) {\n binder.setFieldDefaultPrefix(\"b.\");\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.i(TAG, \"onBind\");\n\t\treturn binder;\n\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn binder;\r\n\t}", "public bind_args(bind_args other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetBindingParams()) {\n this.bindingParams = new com.moseeker.thrift.gen.employee.struct.BindingParams(other.bindingParams);\n }\n this.bindSource = other.bindSource;\n }", "interface Binder extends UiBinder<Widget, SearchBoxUserRecord<?>> {\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn mMessenger.getBinder();\n\t}", "private boolean hasBindValue(Command command) {\n if (!CollectorVisitor.collectObjects(Parameter.class, command).isEmpty()) {\n return true;\n }\n for (Literal l : CollectorVisitor.collectObjects(Literal.class, command)) {\n if (isBindEligible(l)) {\n return true;\n }\n }\n return false;\n }", "private static class <init>\n implements ScopedBindingBuilder\n{\n\n public void asEagerSingleton()\n {\n }", "public com.webobjects.eocontrol.EOQualifier qualifierWithBindings(com.webobjects.foundation.NSDictionary bindings, boolean requiresAll){\n return null; //TODO codavaj!!\n }", "public interface Interceptor extends Instance {\n\n /**\n * First available number which you can use to set interceptor priority order. Interceptor with\n * order value = 1000 will be execute first and so on. This is valid only for interceptors\n * implemented by application and not framework.\n */\n public static final int APPLICATION_PRIORITY = 1000;\n\n /**\n * Set interceptor priority order.\n *\n * @return Interceptor priority order.\n */\n int order();\n\n}", "public static AnnotationBinding[] getUnpackedAnnotationBindings(AnnotationBinding[] annotations) {\n int length = annotations == null ? 0 : annotations.length;\n if (length == 0)\n return annotations;\n List<AnnotationBinding> unpackedAnnotations = new ArrayList();\n for (int i = 0; i < length; i++) {\n AnnotationBinding annotation = annotations[i];\n if (annotation == null)\n continue;\n unpackedAnnotations.add(annotation);\n ReferenceBinding annotationType = annotation.getAnnotationType();\n MethodBinding[] values = annotationType.getMethods(TypeConstants.VALUE);\n if (values == null || values.length != 1)\n continue;\n MethodBinding value = values[0];\n if (value.returnType.dimensions() != 1)\n continue;\n TypeBinding containeeType = value.returnType.leafComponentType();\n if (containeeType == null || !containeeType.isAnnotationType() || !containeeType.isRepeatableAnnotationType())\n continue;\n if (//$IDENTITY-COMPARISON$\n containeeType.containerAnnotationType() != annotationType)\n continue;\n // We have a kosher container: unwrap the contained annotations.\n ElementValuePair[] elementValuePairs = annotation.getElementValuePairs();\n for (ElementValuePair elementValuePair : elementValuePairs) {\n if (CharOperation.equals(elementValuePair.getName(), TypeConstants.VALUE)) {\n Object[] containees = (Object[]) elementValuePair.getValue();\n for (Object object : containees) {\n unpackedAnnotations.add((AnnotationBinding) object);\n }\n break;\n }\n }\n }\n return (AnnotationBinding[]) unpackedAnnotations.toArray(new AnnotationBinding[unpackedAnnotations.size()]);\n }", "public void testSimpleBindingRequest() throws Exception {\n for (int i = 0; i < 8; i++) {\n // represents the password obtained from a PasswordAttribute\n password = new byte[20];\n rng.nextBytes(password);\n clientKey = new SecretKeySpec(password, \"HmacSHA1\");\n \n username = new byte[UserName.BODY_LENGTH + UserName.HMAC_LENGTH];\n rng.nextBytes(username);\n \n msg = new BindingRequest();\n msg.add(new UserNameAttr(username));\n msg.add(new MessageIntegrity());\n assertEquals(2, msg.size());\n \n serialized = new byte[msg.wireLength()];\n msg.encode(serialized);\n MessageIntegrity.setHMAC(serialized, clientKey);\n \n // parse the message and verify the HMAC\n BindingRequest decodedMsg \n = (BindingRequest) StunMsg.decode(serialized);\n assertEquals (2, decodedMsg.size());\n MessageIntegrity mi = (MessageIntegrity)decodedMsg.get(1);\n assertTrue( mi.verify(serialized, clientKey) );\n } \n }", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "private void registerBindings(){\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"changeDate\", java.util.Date.class, this.pkChangeDate, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom\", com.kingdee.eas.fdc.sellhouse.RoomInfo.class, this.f7Room, \"data\");\n\t\tdataBinder.registerBinding(\"bizType\", com.kingdee.eas.fdc.sellhouse.ChangeBizTypeEnum.class, this.comboBizType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"changeReason\", com.kingdee.eas.fdc.sellhouse.ChangeReasonInfo.class, this.f7ChangeReson, \"data\");\n\t\tdataBinder.registerBinding(\"handler\", com.kingdee.eas.base.permission.UserInfo.class, this.f7Handler, \"data\");\n\t\tdataBinder.registerBinding(\"attachEntry\", com.kingdee.eas.fdc.sellhouse.ChangeManageAttachEntryInfo.class, this.kdtAttachEntry, \"userObject\");\n\t\tdataBinder.registerBinding(\"attachEntry.property\", com.kingdee.eas.fdc.sellhouse.PropertyEnum.class, this.kdtAttachEntry, \"property.text\");\n\t\tdataBinder.registerBinding(\"attachEntry.context\", String.class, this.kdtAttachEntry, \"context.text\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"customerPhone\", String.class, this.txtTel, \"text\");\n\t\tdataBinder.registerBinding(\"isSignChangeName\", boolean.class, this.cbIsSignChangeName, \"selected\");\n\t\tdataBinder.registerBinding(\"quitAmount\", java.math.BigDecimal.class, this.txtQuitAmount, \"value\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"payType\", com.kingdee.eas.fdc.sellhouse.SHEPayTypeInfo.class, this.f7PayType, \"data\");\n\t\tdataBinder.registerBinding(\"agioScheme\", com.kingdee.eas.fdc.sellhouse.AgioSchemeInfo.class, this.f7AgioScheme, \"data\");\n\t\tdataBinder.registerBinding(\"agioDesc\", String.class, this.txtAgioDes, \"text\");\n\t\tdataBinder.registerBinding(\"lastAgio\", java.math.BigDecimal.class, this.txtAgio, \"value\");\n\t\tdataBinder.registerBinding(\"dealTotalAmount\", java.math.BigDecimal.class, this.txtDealTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"contractTotalAmount\", java.math.BigDecimal.class, this.txtContractTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellAmount\", java.math.BigDecimal.class, this.txtSellAmount, \"value\");\n\t\tdataBinder.registerBinding(\"planningCompensate\", java.math.BigDecimal.class, this.txtPlanningCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"cashSalesCompensate\", java.math.BigDecimal.class, this.txtCashSalesCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"areaCompensate\", java.math.BigDecimal.class, this.txtAreaCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"dealBuildPrice\", java.math.BigDecimal.class, this.txtDealBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"contractBuildPrice\", java.math.BigDecimal.class, this.txtContractBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"planningArea\", java.math.BigDecimal.class, this.txtPlanningArea, \"value\");\n\t\tdataBinder.registerBinding(\"preArea\", java.math.BigDecimal.class, this.txtPreArea, \"value\");\n\t\tdataBinder.registerBinding(\"actualArea\", java.math.BigDecimal.class, this.txtActualArea, \"value\");\n\t\tdataBinder.registerBinding(\"contractRoomPrice\", java.math.BigDecimal.class, this.txtContractRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"dealRoomPrice\", java.math.BigDecimal.class, this.txtDealRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"valuationType\", com.kingdee.eas.fdc.sellhouse.CalcTypeEnum.class, this.comboValuationType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"accFundAmount\", java.math.BigDecimal.class, this.txtAFundAmount, \"value\");\n\t\tdataBinder.registerBinding(\"loanAmount\", java.math.BigDecimal.class, this.txtLoanAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellType\", com.kingdee.eas.fdc.sellhouse.SellTypeEnum.class, this.comboSellType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"strdBuildingPrice\", java.math.BigDecimal.class, this.txtBuildingPrice, \"value\");\n\t\tdataBinder.registerBinding(\"strdRoomPrice\", java.math.BigDecimal.class, this.txtRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom.roomModel.name\", String.class, this.txtRoomModel, \"text\");\n\t\tdataBinder.registerBinding(\"strdTotalAmount\", java.math.BigDecimal.class, this.txtStandardTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"attachmentAmount\", java.math.BigDecimal.class, this.txtAttachPropertyTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount1, \"value\");\n\t\tdataBinder.registerBinding(\"isFitmentToContract\", boolean.class, this.chkIsFitmentToContract, \"selected\");\n\t\tdataBinder.registerBinding(\"fitmentStandard\", com.kingdee.eas.fdc.sellhouse.DecorationStandardInfo.class, this.f7FitmentStandard, \"data\");\n\t\tdataBinder.registerBinding(\"fitmentPrice\", java.math.BigDecimal.class, this.txtFitmentPrice, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount, \"value\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"auditTime\", java.util.Date.class, this.pkAuditDate, \"value\");\n\t\tdataBinder.registerBinding(\"auditor\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtAuditor, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateUser\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtModifier, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateTime\", java.sql.Timestamp.class, this.pkModifyDate, \"value\");\n\t\tdataBinder.registerBinding(\"details\", String.class, this.details, \"text\");\n\t\tdataBinder.registerBinding(\"changeType\", com.kingdee.eas.fdc.sellhouse.ChangeTypeEnum.class, this.cbChangeType, \"selectedItem\");\t\t\n\t}", "@Override\n public IBinder onBind(Intent intent) {\n Log.e(TAG, \"onbind\");\n return binder;\n }", "@Override\n public IBinder onBind(Intent intent) {\n return mMessenger.getBinder();\n }", "public static void bindTypes(Binder binder) {\n //array converter\n binder.convertToTypes(new ArrayMatcher(String.class), STRING_ARRAY_CONVERTER);\n binder.convertToTypes(new ArrayMatcher(int.class), INT_ARRAY_CONVERTER);\n binder.convertToTypes(new ArrayMatcher(boolean.class), BOOLEAN_ARRAY_CONVERTER);\n binder.convertToTypes(new ArrayMatcher(double.class), DOUBLE_ARRAY_CONVERTER);\n //files\n binder.convertToTypes(new ClazzMatcher(File.class), new FileTypeConverter());\n //URL\n binder.convertToTypes(new ClazzMatcher(URL.class), new URLTypeConverter());\n //URI\n binder.convertToTypes(new ClazzMatcher(URI.class), new URITypeConverter());\n //DateFormat\n binder.convertToTypes(new ClazzMatcher(DateFormat.class), new DateFormatTypeConverter());\n //Date\n binder.convertToTypes(new ClazzMatcher(Date.class), new DateTypeConverter());\n }", "public void bindThrownExceptions() {\n\n\t\tif (this.thrownExceptions != null\n\t\t\t&& this.binding != null\n\t\t\t&& this.binding.thrownExceptions != null) {\n\t\t\tint thrownExceptionLength = this.thrownExceptions.length;\n\t\t\tint length = this.binding.thrownExceptions.length;\n\t\t\tif (length == thrownExceptionLength) {\n\t\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\t\tthis.thrownExceptions[i].resolvedType = this.binding.thrownExceptions[i];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint bindingIndex = 0;\n\t\t\t\tfor (int i = 0; i < thrownExceptionLength && bindingIndex < length; i++) {\n\t\t\t\t\tTypeReference thrownException = this.thrownExceptions[i];\n\t\t\t\t\tReferenceBinding thrownExceptionBinding = this.binding.thrownExceptions[bindingIndex];\n\t\t\t\t\tchar[][] bindingCompoundName = thrownExceptionBinding.compoundName;\n\t\t\t\t\tif (bindingCompoundName == null) continue; // skip problem case\n\t\t\t\t\tif (thrownException instanceof SingleTypeReference) {\n\t\t\t\t\t\t// single type reference\n\t\t\t\t\t\tint lengthName = bindingCompoundName.length;\n\t\t\t\t\t\tchar[] thrownExceptionTypeName = thrownException.getTypeName()[0];\n\t\t\t\t\t\tif (CharOperation.equals(thrownExceptionTypeName, bindingCompoundName[lengthName - 1])) {\n\t\t\t\t\t\t\tthrownException.resolvedType = thrownExceptionBinding;\n\t\t\t\t\t\t\tbindingIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// qualified type reference\n\t\t\t\t\t\tif (CharOperation.equals(thrownException.getTypeName(), bindingCompoundName)) {\n\t\t\t\t\t\t\tthrownException.resolvedType = thrownExceptionBinding;\n\t\t\t\t\t\t\tbindingIndex++;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void attributeReplaced(HttpSessionBindingEvent arg0) {\n System.out.println(\"HttpSessionAttributeListener--attributeReplaced--名:\"+arg0.getName()+\"--值:\"+arg0.getValue()); \r\n }", "@Override\n public IBinder onBind(Intent intent) {\n Log.v(LOG_TAG, \"in onBind\");\n return mBinder;\n }", "protected void onBindingSet(@NonNull AutoRef<Context> context, @NonNull AutoRef<TBinding> binding) {\n }", "@Override\n public void deactivateBinding(QName name, ServiceHandler handler) {\n }", "public interface IInterceptor {\n /* renamed from: a */\n void mo26940a(HttpRequest cVar, IResponse cVar2, ConcurrentBundle aVar);\n}", "@Override\r\n public void inject(ConcurrentMap<String, Object> singleton, Object bean, Field field) {\n Reflections.setField(bean, field, field.getAnnotation(Value.class).value());\r\n }", "@Override\r\n\tpublic void configInterceptor(Interceptors me) {\n\r\n\t}", "int getOneof1025();", "private String getSoapHttpBindingType(ExtensibilityElement exElement){\n\t\tif(exElement instanceof SOAP12AddressImpl){\n\t\t\treturn SOAPBinding.SOAP12HTTP_BINDING;\n\t\t}else if(exElement instanceof SOAPAddressImpl){\n\t\t\treturn SOAPBinding.SOAP11HTTP_BINDING;\n\t\t}else if(exElement instanceof HTTPAddressImpl){\n\t\t\treturn HTTPBinding.HTTP_BINDING;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}", "FieldBinding getBinding( Field< ? > field );", "@Override\n public IBinder onBind(Intent intent) {\n return myibinder;\n }", "private Map<String, String> getParameterMappings(ServletRequestDataBinder binder) {\n Class<?> targetClass = binder.getTarget().getClass();\n Map<String, String> map = definitionsCache.get(targetClass);\n if (map == null) {\n Field[] fields = targetClass.getDeclaredFields();\n map = new HashMap<>();\n for (Field field : fields) {\n BindParameter annotation = field.getAnnotation(BindParameter.class);\n if (annotation != null && !annotation.value().isEmpty()) {\n map.put(annotation.value(), field.getName());\n }\n }\n definitionsCache.putIfAbsent(targetClass, map);\n return map;\n } else {\n return map;\n }\n }", "private void completeTwoWayBindings()\n {\n // A side-effect of creating a new BindingExpression is that it is inserted\n // into the bindingExressions list. Since we can't add to the list while \n // iterating thru it, use an array instead.\n Object[] bindingExpressionsArray = bindingExpressions.toArray(); \n for (int i = 0; i < bindingExpressionsArray.length; i++)\n {\n BindingExpression bindingExpression = (BindingExpression) bindingExpressionsArray[i];\n if (bindingExpression.isTwoWayPrimary())\n {\n Model destination = bindingExpression.getDestination();\n\n if (destination != null)\n {\n destination.ensureBindable();\n }\n\n String source2 = bindingExpression.getDestinationPath(false);\n \n BindingExpression bindingExpression2 = \n new BindingExpression(source2, bindingExpression.getXmlLineNumber(), this);\n \n String destination2 = TextGen.stripParens(bindingExpression.getSourceExpression());\n bindingExpression2.setDestinationProperty(destination2);\n bindingExpression2.setDestinationLValue(destination2);\n }\n } \n }", "protected boolean isUseOutputArgumentAccessors(ActionInvocation<LocalService> actionInvocation) {\n/* 120 */ for (ActionArgument argument : actionInvocation.getAction().getOutputArguments()) {\n/* */ \n/* 122 */ if (getOutputArgumentAccessors().get(argument) != null) {\n/* 123 */ return true;\n/* */ }\n/* */ } \n/* 126 */ return false;\n/* */ }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "@Override\n protected String getBindingKey() {return _parms.bindingKey;}", "@Override\n /* Unknown but necessary function */\n public IBinder onBind(Intent intent)\n {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "public interface AnnotationValue {\n}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n\t}" ]
[ "0.53215843", "0.50830024", "0.5001898", "0.48849407", "0.48736352", "0.48470932", "0.4764349", "0.4725901", "0.47137943", "0.47137943", "0.47067565", "0.46886483", "0.46886483", "0.468425", "0.468425", "0.46547398", "0.46175805", "0.460348", "0.45975655", "0.45808902", "0.45793", "0.45663255", "0.4561783", "0.45133778", "0.45116496", "0.4504216", "0.44791055", "0.44737303", "0.44737303", "0.44678554", "0.44678554", "0.44246808", "0.4409773", "0.43972418", "0.4385931", "0.43516442", "0.43444523", "0.43444523", "0.42740813", "0.4271603", "0.42702457", "0.42629117", "0.42617446", "0.42500985", "0.42448375", "0.4241007", "0.42382377", "0.42369032", "0.42322442", "0.42322442", "0.42201957", "0.4205769", "0.42012298", "0.42000696", "0.4198977", "0.4194458", "0.4192075", "0.41884148", "0.41525334", "0.41486362", "0.41465652", "0.41420466", "0.4141486", "0.41260573", "0.4125352", "0.41154718", "0.41145074", "0.4112239", "0.41039938", "0.41013604", "0.40969357", "0.40963188", "0.4088665", "0.40863618", "0.40855408", "0.40809143", "0.40797892", "0.40775645", "0.4069873", "0.4064107", "0.40519887", "0.40474552", "0.4045412", "0.4044286", "0.4042267", "0.4040958", "0.40389377", "0.40340853", "0.40317294", "0.40261292", "0.40199926", "0.4019766", "0.40176693", "0.40176693", "0.4007156", "0.40020004", "0.40011278", "0.4000171", "0.4000171", "0.4000171" ]
0.6171856
0
/ 4.3.1. Direct and indirect specialization
private void validateSpecializingBean(IBean bean) { IAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration(); if(specializesDeclaration!=null) { if(bean instanceof IDecorator) { addError(CDIValidationMessages.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource()); } else if(bean instanceof IInterceptor) { addError(CDIValidationMessages.INTERCEPTOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource()); } } IBean specializedBean = bean.getSpecializedBean(); if(specializedBean!=null) { if(!specializedBean.getBeanClass().isReadOnly()) { getValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), specializedBean.getResource().getFullPath(), false); } String beanClassName = bean.getBeanClass().getElementName(); String beanName = bean instanceof IBeanMethod?beanClassName + "." + ((IBeanMethod)bean).getSourceMember().getElementName() + "()":beanClassName; String specializingBeanClassName = specializedBean.getBeanClass().getElementName(); String specializingBeanName = specializedBean instanceof IBeanMethod?specializingBeanClassName + "." + ((IBeanMethod)specializedBean).getSourceMember().getElementName() + "()":specializingBeanClassName; /* * 4.3.1. Direct and indirect specialization * - X specializes Y but does not have some bean type of Y */ Set<IParametedType> beanTypes = bean.getLegalTypes(); Set<IParametedType> specializingBeanTypes = specializedBean.getLegalTypes(); for (IParametedType specializingType : specializingBeanTypes) { boolean found = false; for (IParametedType type : beanTypes) { if(specializingType.getType().getFullyQualifiedName().equals(type.getType().getFullyQualifiedName())) { found = true; break; } } if(!found) { addError(CDIValidationMessages.MISSING_TYPE_IN_SPECIALIZING_BEAN, CDIPreferences.MISSING_TYPE_IN_SPECIALIZING_BEAN, new String[]{beanName, specializingBeanName, specializingType.getType().getElementName()}, bean.getSpecializesAnnotationDeclaration(), bean.getResource()); } } /* * 4.3.1. Direct and indirect specialization * - X specializes Y and Y has a name and X declares a name explicitly, using @Named */ if(specializedBean.getName()!=null) { IAnnotationDeclaration nameDeclaration = bean.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME); if(nameDeclaration!=null) { addError(CDIValidationMessages.CONFLICTING_NAME_IN_SPECIALIZING_BEAN, CDIPreferences.CONFLICTING_NAME_IN_SPECIALIZING_BEAN, new String[]{beanName, specializingBeanName}, nameDeclaration, bean.getResource()); } } /* * 5.1.3. Inconsistent specialization * - Suppose an enabled bean X specializes a second bean Y. If there is another enabled bean that specializes Y we say that inconsistent * specialization exists. The container automatically detects inconsistent specialization and treats it as a deployment problem. */ if(bean.isEnabled() && specializedBean instanceof IClassBean) { IClassBean supperClassBean = (IClassBean)specializedBean; Set<? extends IClassBean> allSpecializingBeans = supperClassBean.getSpecializingBeans(); if(allSpecializingBeans.size()>1) { StringBuffer sb = new StringBuffer(bean.getSimpleJavaName()); boolean moreThanTwo = false; for (IClassBean specializingBean : allSpecializingBeans) { if(specializingBean!=bean && specializingBean.isEnabled()) { sb.append(", ").append(specializingBean.getSimpleJavaName()); moreThanTwo = true; if(!specializingBean.getBeanClass().isReadOnly()) { getValidationContext().addLinkedCoreResource(specializingBean.getResource().getFullPath().toOSString(), bean.getSourcePath(), false); getValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), specializingBean.getResource().getFullPath(), false); } } } if(moreThanTwo && specializesDeclaration!=null) { addError(CDIValidationMessages.INCONSISTENT_SPECIALIZATION, CDIPreferences.INCONSISTENT_SPECIALIZATION, new String[]{sb.toString(), supperClassBean.getSimpleJavaName()}, specializesDeclaration, bean.getResource()); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo25969f(TemplateInfo templateInfo);", "public interface C2331r<T> {\n /* renamed from: g */\n Bundle mo7259g();\n}", "@Override\n public boolean isGeneric() { \n return false;\n }", "public abstract void mo32008e(TemplateInfo templateInfo);", "InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription);", "public String getSpecialization() {\r\n\t\treturn specialization;\r\n\t}", "void mo25968e(TemplateInfo templateInfo);", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface ITypeRegistry extends IRegistry<ISourceType> {\n}", "public interface C0028a<D> {\n }", "public abstract Type getSpecializedType(Type type);", "public interface Generified {\n\n\n /**\n * @return The information about this entity generification.<br>\n * The generics metadata for this element\n */\n Generics generic();\n\n}", "public interface C0219dm {\n /* renamed from: b */\n <S extends C0218dl> S mo283b();\n}", "public interface C0056a<T> {\n}", "public interface C5138c {\n /* renamed from: e */\n void mo25968e(TemplateInfo templateInfo);\n\n /* renamed from: f */\n void mo25969f(TemplateInfo templateInfo);\n}", "public abstract T2 $2();", "public interface Layout extends Alias {\n}", "protected abstract E get(S spec);", "public interface C11153i4<T extends C11167j4> {\n}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "public interface VideoScrapper extends Scrapper<Video> {\n\n}", "interface C1287b extends View<Fragment> {\n void mo4315a(int i);\n }", "protected abstract void registerSuperTypes();", "void mo3312a(T t);", "public interface a<T, R> extends i.b<R>, b<T, R> {\n }", "public interface C11962p<T> {\n /* renamed from: a */\n void mo30271a(C11961o<T> oVar) throws Exception;\n}", "@Override\n\tpublic void test(T1 t) {\n\t\t\n\t}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "void mo11495a(T t);", "public interface C3235r<P1, P2, P3, P4, R> {\n}", "public interface Meta<A, B> {\n \n /**\n * The model that was sent to the generator.\n * @return the model\n */\n A getModel();\n \n /**\n * The result that was produced by the generator.\n * @return the model\n */\n B getResult();\n \n /**\n * The transform that was used to produce the result.\n * @return the transform\n */\n Transform<A, B> getTransform();\n \n /**\n * The factory that created the transform.\n * @return the factory\n */\n TransformFactory getFactory();\n \n /**\n * The render stack that represents which generation processes is waiting\n * for this result.\n * \n * @return the current render stack\n */\n RenderStack getRenderStack();\n \n// /**\n// * Meta implementation.\n// * \n// * @param <A> the model type\n// * @param <B> the result type\n// */\n// class Impl<A, B> implements Meta<A, B> {\n// \n// private A model;\n// private B result;\n// private Transform<A, B> transform;\n// private TransformFactory factory;\n// private RenderStack stack;\n//\n// Impl() {}\n//\n// @Override\n// public B getResult() {\n// return result;\n// }\n//\n// protected Impl<A, B> setResult(B result) {\n// this.result = result;\n// return this;\n// }\n//\n// @Override\n// public Transform<A, B> getTransform() {\n// return transform;\n// }\n//\n// protected Impl<A, B> setTransform(Transform<A, B> view) {\n// this.transform = view;\n// return this;\n// }\n//\n// @Override\n// public TransformFactory getFactory() {\n// return factory;\n// }\n//\n// protected Impl<A, B> setFactory(TransformFactory factory) {\n// this.factory = factory;\n// return this;\n// }\n//\n// @Override\n// public A getModel() {\n// return model;\n// }\n// \n// public Impl<A, B> setModel(A model) {\n// this.model = model;\n// return this;\n// }\n//\n// @Override\n// public RenderStack getRenderStack() {\n// return stack;\n// }\n// \n// public Impl<A, B> setRenderStack(RenderStack stack) {\n// this.stack = stack;\n// return this;\n// }\n//\n// @Override\n// public String toString() {\n// return \"Impl{\" + \"model=\" + model + \", result=\" + result + \", transform=\" + transform + \", factory=\" + factory + \", stack=\" + stack + '}';\n// }\n// }\n}", "Element getGenericElement();", "public interface TypePoll {\n /**\n * ddd\n * @param clazz\n * @param itemViewBinder\n * @param linker\n * @param <T>\n */\n <T> void register(@NonNull Class<? extends T> clazz,\n @NonNull BaseItemViewBinder<?,T> itemViewBinder,\n @NonNull Linker<T> linker);\n\n int indexOf(@NonNull Class<?> clazz);\n\n\n @NonNull\n BaseItemViewBinder getItemBinder(int index);\n\n @NonNull\n BaseItemViewBinder getBinderByClass(@NonNull int index);\n\n\n @NonNull\n Linker<?> getLinker(int index);\n}", "public interface PageResourceMapper {\n}", "public interface Generic extends Reference\n{\n}", "void mo40877a(T t);", "void mo16691c(T t);", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C45946d {\n @C6457h\n /* renamed from: a */\n C12466b<TypedInput> mo111267a(@C6450ac String str, @C6461l List<C12461b> list);\n\n @C6468s\n /* renamed from: a */\n C12466b<TypedInput> mo111268a(@C6450ac String str, @C6461l List<C12461b> list, @C6451b TypedByteArray typedByteArray);\n}", "public interface C5738d<ViewState> {\n /* renamed from: a */\n void mo17615a(ViewState viewstate);\n}", "public interface ITemplate {\n\n}", "public void testGenericMethod() {\n \n }", "public interface ITypedView<T,E> extends IView {\n void showData(T data);\n void showError(E error);\n}", "public interface Template {\n\n}", "protected abstract T mo2623i();", "public abstract T1 $1();", "public void setSpecialization(String specialization) {\r\n\t\tthis.specialization = specialization;\r\n\t}", "public interface IImaeView<T> extends IView<T> {\n\n void getImageRandom(ImageRes imageRes);\n}", "public interface TraitConvertible {\n\n\tpublic Trait asSingleValueTrait();\n\t\n}", "public interface PageTagMapper extends Mapper<PageTagDTO> {\n\n}", "public interface MulitiTypeSupport<T> {\n public int getLayoutId(T item);\n}", "@Override\n boolean hasGenericInformation() {\n return super.hasGenericInformationInternal();\n }", "public interface SRSTet extends Tetromino {\r\n @Override\r\n default String getName() {\r\n return \"SRS \" + getType();\r\n }\r\n}", "void mo83698a(T t);", "public interface ShippingMapper extends MyBaseMapper<Shipping> {\n}", "@Override\n public TagProcessor<ProcessorContext, UIComponent> getTagProcessor(String uri, String localName) {\n TagProcessor<ProcessorContext, UIComponent> result = null;\n if (hasTagProcessor(uri, localName)) {\n result = (TagProcessor<ProcessorContext, UIComponent>) cdiManager.getInstance(Object.class,\n new TemplateProcessorLiteral(uri, localName));\n }\n return result;\n }", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(21)\n void templateID(\n int pVal);", "@Override\r\n\tpublic void visit(TypeID typeID) {\n\r\n\t}", "public sealed interface EntityMapper<D, E>permits CarMapper,\n ModelMapper, ModelOptionMapper, PricingClassMapper, UserInfoMapper,\n TownMapper, AddressMapper, RoleMapper, BookingMapper, RentMapper {\n\n E toEntity(D dto);\n\n D toDto(E entity);\n\n Collection<E> toEntity(Collection<D> dtoList);\n\n Collection<D> toDto(Collection<E> entityList);\n\n @Named(\"partialUpdate\")\n @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\n void partialUpdate(@MappingTarget E entity, D dto);\n}", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public interface RestrictVatIdNumber<SELF extends Restrict<SELF>> extends Restrict<SELF>\n{\n\n default SELF vatIdNumber(String... numbers)\n {\n return restrict(\"vatIdNumber\", (Object[]) numbers);\n }\n\n default SELF vatIdNumbers(Collection<String> numbers)\n {\n return vatIdNumber(numbers.toArray(new String[numbers.size()]));\n }\n\n}", "public interface ContainerViewWriteRef\n extends CompositeViewWriteRef<ViewRead, ViewWrite>, ContainerViewWrite {\n\n @SuppressWarnings({\"unchecked\", \"TypeParameterUnusedInFormals\"})\n // container is heterogeneous by its nature so making unsafe cast here\n // is more convenient and is not less safe\n default <W extends ViewWrite> W getAnyByRef(int index) {\n return (W) getByRef(index);\n }\n}", "public interface o<Downstream, Upstream> {\n r<? super Upstream> a(r<? super Downstream> rVar) throws Exception;\n}", "public interface ResponseHandler<R, T extends BaseRes<R>> {\n T handle(R r);\n}", "public interface BoundTestPart1<A,B> {\n\n A getA();\n B getB();\n}", "public int getRenderType()\n {\n return 2;\n }", "public interface ModuleMapper extends CrudTemplate<Module> {\n}", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "public interface Phoneextensions extends GeneratedPhoneextensions {\n \n \n}", "public interface C7438j<T> extends C6851a<T> {\n}", "public abstract C7982k4<E> m39518y();", "public interface e<Z, R> {\n v<R> a(v<Z> vVar, g gVar);\n}", "@Override\n\tprotected void customizeRegistration(Dynamic registration) {\n\tsuper.customizeRegistration(registration);\n\t}", "public interface ComplexDataObjectParser extends IKeyValueObjectParser<Object, ComplexDataObject> {\r\n\r\n}", "@Override\n TypeInformation<T> getProducedType();", "@Test\n\tpublic void testTypeExtension() {\n\t}", "void mo83696a(T t);", "public interface AdminMapper extends MyBaseMapper<Admin> {\n}", "public interface UnmappedContentHandler \n <UNMARSHAL_RECORD extends UnmarshalRecord>\nextends ContentHandler {\n\n /**\n * Set the UnmarshalRecord which gives access to mechanisms used during the\n * unmarshal process such as an Unmarshaller and a Session.\n * @param unmarshalRecord\n */\n void setUnmarshalRecord(UNMARSHAL_RECORD unmarshalRecord);\n}", "public static abstract interface Handle<T>\r\n/* 161: */ {\r\n/* 162: */ public abstract void recycle(T paramT);\r\n/* 163: */ }", "public interface IndexableObjectConverter<M,\n R extends org.dspace.app.rest.model.RestAddressableModel> extends DSpaceConverter<M, R> {\n\n /**\n *\n * @param idxo\n * the IndexableObject to check\n * @return true if the actual converter implementation is able to manage the supplied IndexableObject\n */\n boolean supportsModel(IndexableObject idxo);\n}", "private void writeDerivedTypes( String tagName, TypeItem current, Iterator itr, XMLWriter out ) {\n\t\twhile( itr.hasNext() ) {\n\t\t\tTypeItem type = (TypeItem)itr.next();\n\t\t\t\n\t\t\tboolean isDerived = false;\n\t\t\t\n\t\t\tif(type.getSuperType()==current)\n\t\t\t\tisDerived = true;\n\t\t\t\n\t\t\tType[] itfs = type.getInterfaces();\n\t\t\tfor( int i=0; i<itfs.length; i++ )\n\t\t\t\tif( itfs[i]==current )\n\t\t\t\t\tisDerived = true;\n\t\t\t\n\t\t\tif(isDerived)\n\t\t\t\tout.element(tagName, new String[]{\"name\",type.getTypeName()});\n\t\t}\n\t}", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(20)\n int templateID();", "static Object resolveGeneric (FXLocal.Context context, Type typ) {\n if (typ instanceof ParameterizedType) {\n ParameterizedType ptyp = (ParameterizedType) typ;\n Type raw = ptyp.getRawType();\n Type[] targs = ptyp.getActualTypeArguments();\n if (raw instanceof Class) {\n String rawName = ((Class) raw).getName();\n if (FXClassType.SEQUENCE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (FXClassType.OBJECT_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return context.makeTypeRef(targs[0]);\n }\n if (FXClassType.SEQUENCE_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (rawName.startsWith(FXClassType.FUNCTION_CLASSNAME_PREFIX)) {\n FXType[] prtypes = new FXType[targs.length-1];\n for (int i = prtypes.length; --i >= 0; )\n prtypes[i] = context.makeTypeRef(targs[i+1]);\n FXType rettype;\n if (targs[0] == java.lang.Void.class)\n rettype = FXPrimitiveType.voidType;\n else\n rettype = context.makeTypeRef(targs[0]);\n return new FXFunctionType(prtypes, rettype);\n }\n }\n \n typ = raw;\n }\n if (typ instanceof WildcardType) {\n WildcardType wtyp = (WildcardType) typ;\n Type[] upper = wtyp.getUpperBounds();\n Type[] lower = wtyp.getLowerBounds();\n typ = lower.length > 0 ? lower[0] : wtyp.getUpperBounds()[0];\n if (typ instanceof Class) {\n String rawName = ((Class) typ).getName();\n // Kludge, because generics don't handle primitive types.\n FXType ptype = context.getPrimitiveType(rawName);\n if (ptype != null)\n return ptype;\n }\n return context.makeTypeRef(typ);\n }\n if (typ instanceof GenericArrayType) {\n FXType elType = context.makeTypeRef(((GenericArrayType) typ).getGenericComponentType());\n return new FXJavaArrayType(elType);\n }\n if (typ instanceof TypeVariable) {\n // KLUDGE\n typ = Object.class;\n }\n return typ;\n }", "public static void arrayListSubtypeTest()\r\n\t{\r\n\t\tArrayList<Person> persons = new ArrayList<Person>();\r\n\t persons.add(new Person(\"twoa\"));\r\n\t persons.add(new Person(\"threea\"));\r\n\t PrintCollection(persons);\r\n\t // PrintCollection1(persons);\r\n\t PrintCollection2(persons);\r\n\t}", "Object adapt(final T src);", "<S extends C0218dl> S mo283b();", "public interface Ka extends b<d> {\n\n /* compiled from: FragmentModule_ThirdPartyReviewFragment$app_bazaarRelease */\n public static abstract class a extends b.a<d> {\n }\n}", "@ImplementedBy(DefaultStringManager.class)\npublic interface StringManager extends ResourceManager<StringManager, StringResource> {\n\n @Override\n default String getType() {\n return \"string\";\n }\n}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "public interface _t<FROM, TO> {\n\tTO call(FROM f, int index, Iterable<FROM> list);\n}", "public static void main(String a[]){\n SimpleGeneric<String> sgs = new SimpleGeneric<String>(\"JAVA2NOVICE\");\n sgs.printType();\n //we are going to create SimpleGeneric object with Boolean as type parameter\n SimpleGeneric<Boolean> sgb = new SimpleGeneric<Boolean>(Boolean.TRUE);\n sgb.printType();\n }", "public static TypeReference newSuperTypeReference(int itfIndex) {\n/* 255 */ itfIndex &= 0xFFFF;\n/* 256 */ return new TypeReference(0x10000000 | itfIndex << 8);\n/* */ }", "@Override\n protected abstract SecondOrderCollection wrapped();", "public abstract BoundType a();", "protected abstract T derive(M original);", "public interface ModSlabContainerInterface {\n ModBlockSingleSlab getSingleSlab();\n\n ModBlockDoubleSlab getDoubleSlab();\n\n ModSlabContainerInterface register();\n}", "boolean isTypeAdapterAware();" ]
[ "0.5250675", "0.5148437", "0.51171035", "0.50763917", "0.5001193", "0.4946527", "0.49368936", "0.4925458", "0.48930317", "0.48889112", "0.48857683", "0.48760673", "0.48440742", "0.4797445", "0.475827", "0.47364956", "0.470249", "0.47014084", "0.4688091", "0.46876818", "0.46780863", "0.46732137", "0.46728918", "0.46508858", "0.46506718", "0.4639026", "0.46314558", "0.46310717", "0.4630673", "0.46267515", "0.46235502", "0.46009272", "0.45911312", "0.45908245", "0.45863023", "0.45855016", "0.45808372", "0.4578529", "0.45689145", "0.45642304", "0.45632073", "0.45552132", "0.45516777", "0.4549175", "0.45472556", "0.45414042", "0.45173568", "0.45132503", "0.4512417", "0.45069772", "0.44979092", "0.4491367", "0.44836015", "0.44802955", "0.44794846", "0.44702977", "0.44535202", "0.44487825", "0.44412044", "0.4437638", "0.44362497", "0.443014", "0.4424761", "0.4423131", "0.44186816", "0.44167247", "0.4415217", "0.44130364", "0.44113272", "0.44113272", "0.44109797", "0.44097552", "0.4408805", "0.44085938", "0.4406864", "0.44043165", "0.44043016", "0.4403899", "0.43955678", "0.43921465", "0.43888244", "0.43857285", "0.4376891", "0.4372191", "0.43715113", "0.43708304", "0.43706715", "0.43689674", "0.4367052", "0.43594345", "0.43566516", "0.435356", "0.43525657", "0.43511707", "0.4351103", "0.4350146", "0.43455064", "0.43430138", "0.43413273", "0.43408296" ]
0.47486618
15
If the method is not a static method and is not a business method of the session bean and is observer or disposer then mark it as incorrect.
private void validateSessionBeanMethod(IClassBean bean, IBeanMethod method, Set<ITextSourceReference> annotatedParams, String errorMessage, String preferencesKey, int id) { if (bean instanceof ISessionBean && annotatedParams != null) { IMethod iMethod = CDIUtil.getBusinessMethodDeclaration((SessionBean)bean, method); if(iMethod==null) { saveAllSuperTypesAsLinkedResources(bean); for (ITextSourceReference declaration : annotatedParams) { String bindedErrorMessage = NLS.bind(errorMessage, new String[]{method.getMethod().getElementName(), bean.getBeanClass().getElementName()}); addError(bindedErrorMessage, preferencesKey, declaration, bean.getResource(), id); } } else if (iMethod != method.getMethod() && !iMethod.isBinary()) { getValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), iMethod.getResource().getFullPath(), false); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tboolean isRegistedMethodNotNeed() {\n\t\treturn true;\n\t}", "public boolean isMethodCallAllowed(Object obj, String sMethod) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isMethodCallAllowed(obj, sMethod);\r\n\t}", "protected boolean methodForbidden() {\n return methodToTest.getName().equals(\"getClassNull\")\n || methodToTest.getName().startsWith(\"isA\")\n || methodToTest.getName().equals(\"create\")\n || methodToTest.getName().equals(\"getTipString\")\n || methodToTest.getName().equals(\"toString\");\n }", "abstract protected boolean checkMethod();", "protected boolean shouldValidateSession ()\n {\n return false;\n }", "public boolean method_216() {\r\n return false;\r\n }", "public boolean method_218() {\r\n return false;\r\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "private static boolean isUserDefinedMethod(final Method method) {\n if (!method.equals(OBJECT_EQUALS)\n && !method.equals(OBJECT_HASH_CODE)\n && !method.equals(OBJECT_GET_CLASS)\n && !method.equals(OBJECT_TO_STRING)\n && !method.equals(OBJECT_CLONE)\n && !method.equals(OBJECT_WAIT_1)\n && !method.equals(OBJECT_WAIT_2)\n && !method.equals(OBJECT_WAIT_3)\n && !method.equals(OBJECT_NOTIFY)\n && !method.equals(OBJECT_NOTIFY_ALL)\n && !method.getName().startsWith(TransformationConstants.SYNTHETIC_MEMBER_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ORIGINAL_METHOD_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ASPECTWERKZ_PREFIX)) {\n return true;\n } else {\n return false;\n }\n }", "boolean isSetMethod();", "public boolean method_2453() {\r\n return false;\r\n }", "public STATE_KEY eventRemoteStateMissedCall() {\n\t\tviewMissedNotification();\n\t\treturn STATE_KEY.NOT_CHANGE;\n\t}", "public boolean method_4132() {\n return false;\n }", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_196() {\r\n return false;\r\n }", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "public boolean method_4093() {\n return false;\n }", "public boolean method_4088() {\n return false;\n }", "protected ForNonStaticMethod(Method method) {\n this.method = method;\n }", "public boolean method_195() {\r\n return false;\r\n }", "@Override\n\tprotected boolean checkOverride(IEventInstance eventInstance, Operand operand) {\n\t\treturn false;\n\t}", "void method1() // violation\n {\n }", "@Override\r\n\tpublic boolean onUpdate(Session arg0) throws CallbackException {\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private static boolean validateMethod(Method method) {\n for (Class<?> param : method.getParameterTypes()) {\n if (null == OvsDbConverter.get(param))\n return false;\n }\n return true;\n }", "@Override\r\n public boolean invokeRuleMethod(BusinessRule rule) {\r\n boolean result = super.invokeRuleMethod(rule);\r\n cleanErrorMessages();\r\n return result;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public void setExclusiveMethodAnnot (\n Class<? extends java.lang.annotation.Annotation> exclusiveMethodAnnot)\n {\n synchronized (monitor)\n {\n this.exclusiveMethodAnnot = exclusiveMethodAnnot;\n }\n }", "public boolean method_4102() {\n return false;\n }", "public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n public boolean canFix(Annotation annotation) {\n return false;\n }", "public boolean method_3897() {\r\n return false;\r\n }", "private void isMethod() {\n if (isNameExpr != null) {\n isNameExpr.isMethod();\n isNameExpr = null;\n }\n }", "@Override\r\n\tprotected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\r\n\t\t\tHttpHeaders headers, HttpStatus status, WebRequest request) {\n\t\treturn super.handleMethodArgumentNotValid(ex, headers, status, request);\r\n\t}", "@Override\n\tpublic boolean evaluar(Calculable cal) {\n\t\treturn false;\n\t}", "public void trySafeMethod(){\n safeMethod();\n }", "@Override\n\t\t\t\t\t\tpublic void onFailure(Method method, Throwable exception) {\n\n\t\t\t\t\t\t}", "public boolean method_1456() {\r\n return true;\r\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic boolean isBusinessException() {\n\t\treturn false;\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public boolean method_210() {\r\n return false;\r\n }", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "boolean invokeOperation() {\n return false;\n }", "public boolean method_109() {\r\n return true;\r\n }", "public boolean takeBugreportOnInvocationEnded();", "@Override\n\tpublic boolean OnBeforeSave(ErrorMsg msg) {\n\t\treturn false;\n\t}", "@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}", "public boolean isVisibleToUser() {\n/* 830 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }", "@RequiresLock(\"SeaLock\")\r\n protected void dependentInvalidAction() {\r\n // by default do nothing\r\n }", "public void inquiryError() {\n\t\t\n\t}", "protected boolean isSetter(Method meth) {\n return startsWith(meth.getName(), \"set\")\n || startsWith(meth.getName(), \"add\")\n || startsWith(meth.getName(), \"remove\")\n || startsWith(meth.getName(), \"insert\")\n || startsWith(meth.getName(), \"clear\")\n || startsWith(meth.getName(), \"roll\"); // used by Calendar\n }", "@Override\n\tpublic boolean isCanPaidMethodExp(CusBargainVo vo) {\n\t\treturn false;\n\t}", "@Override\n protected boolean isCalledForCurrentUserLocked() {\n return true;\n }", "public boolean isSetMethod() {\n return this.method != null;\n }", "public boolean refresh() {\n/* 153 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic boolean onIntercept() {\n\t\t\t\treturn false;\r\n\t\t\t}", "private void checkMethod(DetailAST aAST, String aPrefix, String aException)\n {\n final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT);\n final String name = nameAST.getText();\n if (name.startsWith(aPrefix)) {\n if (!Utils.isPublic(aAST)) {\n log(nameAST.getLineNo(), nameAST.getColumnNo(),\n \"nonpublic.bean\", \"Method \" + name);\n }\n if (Utils.isVoid(aAST)) {\n log(nameAST.getLineNo(), nameAST.getColumnNo(),\n \"voidmethod.bean\", name);\n }\n if (!Utils\n .hasThrows(aAST, aException))\n {\n log(nameAST.getLineNo(), nameAST.getColumnNo(),\n \"missingthrows.bean\",\n new Object[] {name, aException});\n }\n }\n }", "public void checkCanSaveCalendarDayOff(CalendarDayOff calendarDayOff,Calendar calendar) {\nif (!canSaveCalendarDayOff(calendarDayOff, calendar)) {\nthrow new InvalidStateException(\"CalendarDayOff.save.invalidState\");\n}\n}", "@Override\n\tpublic boolean update(Order bean) {\n\t\treturn false;\n\t}", "public interface MethodAdvice\n{\n /**\n * Allows the Aspect to advise the invocation. The Aspect is free to inspect and even replace parameters. Most\n * Aspects will then invoke {@link org.apache.tapestry5.ioc.Invocation#proceed()}. The Aspect may then inspect and\n * replace any checked thrown exceptions. Some Aspects (for example, caching) may selectively decide to bypass the\n * invocation entirely, and instead invoke some other method or otherwise set a return value or thrown exception.\n *\n * @param invocation to advise\n */\n void advise(Invocation invocation);\n}", "public void checkCanUpdateCalendarDayOff(CalendarDayOff calendarDayOff) {\nif (!canUpdateCalendarDayOff(calendarDayOff)) {\nthrow new InvalidStateException(\"CalendarDayOff.update.invalidState\");\n}\n}", "public boolean isHandled(StatusBean bean);", "private boolean isInternalMethod(MethodBean pMethod, ClassBean pClass) {\n for (MethodBean method : pClass.getMethods()) {\n if (pMethod.getName().equals(method.getName())) {\n return true;\n }\n }\n return false;\n }", "public boolean getErrorOnUseBeanInvalidClassAttribute();", "public boolean method_208() {\r\n return false;\r\n }", "protected void validate() {\n // no op\n }", "@Override\n public boolean isAccountNonExpired () {\n return true;\n }", "public boolean validate()\n {\n return !disposed;\n }", "private boolean maybeRetainLambdaOrAnonymousClassMethod(ExecutableElement method) {\n TypeElement declaringClass = ElementUtil.getDeclaringClass(method);\n if (!ElementUtil.isAnonymous(declaringClass) && !ElementUtil.isLambda(declaringClass)) {\n return false;\n }\n String methodName = ElementUtil.getName(method);\n if (isConstructorOrDestructor(method)\n || methodName.startsWith(\"__\")) { // True for translator-generated internal methods.\n return false;\n }\n return !TypeUtil.isPrimitiveOrVoid(method.getReturnType());\n }", "@Test\n public void mustNotDisableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // First request to disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n\n // Second request to disable the UDFPS mode, when it's already disabled.\n mHbmController.disable(mOnDisabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mOnDisabled);\n verifyNoMoreInteractions(mDisplayCallback);\n }", "void checkAccessModifier(Method method);", "public boolean isGuard(){\n return false;\n }", "@Override\n\tpublic boolean checkEventsofVisitorDAO(EventSignUp e) {\n\t\treturn false;\n\t}", "default void onMissedHeartBeat(SessionID sessionID) {\n }", "public void method_9653() {\r\n this.field_9138.method_4479(false);\r\n }", "@Test\n public void mustNotEnableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Second request to enable the UDFPS mode, while it's still enabled.\n mHbmController.enable(mOnEnabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mDisplayCallback);\n verifyNoMoreInteractions(mOnEnabled);\n }", "private void reportMissingMethod(JavaMethod method, TagNode node) {\n\t\tString container = \"\";\n\t\tif (node.source().size() == 1) {\n\t\t\tICodeElement parentElement = node.source().get(0);\n\t\t\tif (parentElement instanceof JavaClass) {\n\t\t\t\tJavaClass javaClass = (JavaClass) parentElement;\n\t\t\t\tcontainer = \" in the \\\"\" + javaClass.className() + \"\\\" \"\n\t\t\t\t\t\t+ (javaClass.isInterface() ? \"interface\" : \"class\");\n\t\t\t}\n\t\t}\n\t\tstatus.add(new Status(IStatus.ERROR, status.getPlugin(), 1, pattern\n\t\t\t\t+ \": Method \" + method.type() + \" for the \\\"\" + method.name()\n\t\t\t\t+ \"()\\\" method is missing\" + container\n\t\t\t\t+ \". Try to generate code or update the model.\"\n\t\t\t\t+ \" \", null));\n\t}", "@Override\n\tpublic void setBusinessException(boolean arg0) {\n\n\t}", "@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }", "@Override\n\tpublic void verificar() {\n\t\tsuper.verificar();\n\t}", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "public abstract boolean isConfirmed();", "@Override\n\tpublic void verifyRateQuestionEnabledWithEveryQuestion() {\n\t\t\n\t}", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static boolean validateReturnType(Method method, Class<?> expected) {\n Class<?> returnType = method.getReturnType();\n if (returnType == void.class) {\n return false;\n }\n if (returnType != expected) {\n String expectedType = \"'\" + expected.getName() + \"'\";\n if (expected != void.class) {\n expectedType = \"'void' or \" + expectedType;\n }\n throw new IllegalStateException(method.getDeclaringClass().getName()\n + \".\"\n + method.getName()\n + \" must have return type of \"\n + expectedType);\n }\n return true;\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public boolean isDismissable() {\n/* 1278 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected boolean shouldMethodExecute(MethodInfo method, Vector localVariables,\n OperandStack callerStack) {\n return true;\n }", "@Override\r\n\tpublic boolean seLanceSurServiteurProprietaire() {\n\t\treturn false;\r\n\t}", "public boolean isValidMethod(String methodName) {\n\t\treturn this.validMethods.containsKey(methodName);\n\t}", "public void verifyPassivate() {\n // TODO - How to test the EJB passivate?\n throw new RuntimeException(\"Test not implemented yet.\");\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }" ]
[ "0.6444744", "0.614182", "0.5876823", "0.5792849", "0.5532051", "0.5439865", "0.5412011", "0.53525484", "0.53367895", "0.53282654", "0.5323561", "0.53067845", "0.52917075", "0.5290816", "0.5287181", "0.52846116", "0.5283044", "0.5269361", "0.5250043", "0.521404", "0.51857984", "0.51732093", "0.51619154", "0.51556885", "0.5127582", "0.51265955", "0.51225835", "0.51184994", "0.5096665", "0.5086537", "0.5086514", "0.50627846", "0.5055647", "0.5052122", "0.50479436", "0.504562", "0.50427216", "0.50393885", "0.5028588", "0.5005102", "0.49899", "0.4984132", "0.49790722", "0.49748254", "0.49720147", "0.49645412", "0.49553782", "0.49508217", "0.49390066", "0.49383166", "0.49271566", "0.4925294", "0.49110594", "0.4910926", "0.49037632", "0.48981628", "0.48866364", "0.48842144", "0.48836344", "0.48794296", "0.48793727", "0.48696074", "0.48685083", "0.48670825", "0.48628053", "0.48551413", "0.4855062", "0.48522684", "0.4841808", "0.48407367", "0.4835989", "0.4834197", "0.48340526", "0.48239794", "0.48233274", "0.4817714", "0.48173776", "0.48170802", "0.48137942", "0.4811531", "0.4806977", "0.48022476", "0.4800891", "0.480022", "0.4798067", "0.4798067", "0.4798067", "0.4798028", "0.47960812", "0.47899762", "0.47828", "0.4779254", "0.47772712", "0.4775347", "0.47747242", "0.47731042", "0.47710943", "0.4770902", "0.4770902", "0.4770902" ]
0.6552555
0
Validates class bean which may be both a session and decorator (or interceptor).
private void validateMixedClassBean(IClassBean bean) { ITextSourceReference sessionDeclaration = CDIUtil.getSessionDeclaration(bean); ITextSourceReference decoratorDeclaration = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME); ITextSourceReference interceptorDeclaration = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME); if (sessionDeclaration != null) { /* * 3.2. Session beans * - bean class of a session bean is annotated @Decorator */ if (decoratorDeclaration != null) { addError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_DECORATOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR, sessionDeclaration, bean.getResource()); addError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_DECORATOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR, decoratorDeclaration, bean.getResource()); } /* * 3.2. Session beans * - bean class of a session bean is annotated @Interceptor */ if (interceptorDeclaration != null) { addError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_INTERCEPTOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR, sessionDeclaration, bean.getResource()); addError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_INTERCEPTOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR, interceptorDeclaration, bean.getResource()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSessionValid(Object session);", "private void validateManagedBean(IClassBean bean) {\r\n \t\tIAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tIAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\tif (decorator != null && interceptor != null) {\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, decorator, bean.getResource());\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, interceptor, bean.getResource());\r\n \t\t}\r\n \r\n \t\tIAnnotationDeclaration declaration = CDIUtil.getDifferentScopeDeclarationThanDepentend(bean);\r\n \t\tif (declaration != null) {\r\n \t\t\tIType type = bean.getBeanClass();\r\n \t\t\ttry {\r\n \t\t\t\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a public field declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tIField[] fields = type.getFields();\r\n \t\t\t\tfor (IField field : fields) {\r\n \t\t\t\t\tif (Flags.isPublic(field.getFlags()) && !Flags.isStatic(field.getFlags())) {\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_PUBLIC_FIELD, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tdeclaration, bean.getResource());\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\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a parameterized bean class declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tString[] typeVariables = type.getTypeParameterSignatures();\r\n \t\t\t\tif (typeVariables.length > 0) {\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_GENERIC_TYPE, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\tdeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 3.1.4. Specializing a managed bean\r\n \t\t * - managed bean class annotated @Specializes does not directly extend the bean class of another managed bean\r\n \t\t */\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();\r\n \t\tif (specializesDeclaration != null) {\r\n \t\t\tsaveAllSuperTypesAsLinkedResources(bean);\r\n \t\t\ttry {\r\n \t\t\t\tIBean sBean = bean.getSpecializedBean();\r\n \t\t\t\tif (sBean != null) {\r\n \t\t\t\t\tif (sBean instanceof ISessionBean || sBean.getAnnotation(CDIConstants.STATELESS_ANNOTATION_TYPE_NAME) != null\r\n \t\t\t\t\t\t\t|| sBean.getAnnotation(CDIConstants.SINGLETON_ANNOTATION_TYPE_NAME) != null) {\r\n \t\t\t\t\t\t// The specializing bean directly extends an enterprise bean class\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t// Validate the specializing bean extends a non simple bean\r\n \t\t\t\t\t\tboolean hasDefaultConstructor = true;\r\n \t\t\t\t\t\tIMethod[] methods = sBean.getBeanClass().getMethods();\r\n \t\t\t\t\t\tfor (IMethod method : methods) {\r\n \t\t\t\t\t\t\tif (method.isConstructor()) {\r\n \t\t\t\t\t\t\t\tif (Flags.isPublic(method.getFlags()) && method.getParameterNames().length == 0) {\r\n \t\t\t\t\t\t\t\t\thasDefaultConstructor = true;\r\n \t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\thasDefaultConstructor = false;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!hasDefaultConstructor) {\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// The specializing bean extends nothing\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 9.3. Binding an interceptor to a bean\r\n \t\t * - managed bean has a class level interceptor binding and is declared final or has a non-static, non-private, final method\r\n \t\t * - non-static, non-private, final method of a managed bean has a method level interceptor binding\r\n \t\t */\r\n \t\ttry {\r\n \t\t\tSet<IInterceptorBinding> bindings = bean.getInterceptorBindings();\r\n \t\t\tif(!bindings.isEmpty()) {\r\n \t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t} else {\r\n \t\t\t\t\tIMethod[] methods = bean.getBeanClass().getMethods();\r\n \t\t\t\t\tfor (int i = 0; i < methods.length; i++) {\r\n \t\t\t\t\t\tint flags = methods[i].getFlags();\r\n \t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(methods[i].getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\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} else {\r\n \t\t\t\tSet<IBeanMethod> beanMethods = bean.getAllMethods();\r\n \t\t\t\tfor (IBeanMethod method : beanMethods) {\r\n \t\t\t\t\tif(!method.getInterceptorBindings().isEmpty()) {\r\n \t\t\t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tIMethod sourceMethod = method.getMethod();\r\n \t\t\t\t\t\t\tint flags = sourceMethod.getFlags();\r\n \t\t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(sourceMethod.getNameRange());\r\n \t\t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (JavaModelException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t}\r\n \t}", "public boolean supports(Class<?> arg0) {\n\t\tSystem.out.println(\" ------------------------ in supports login validator ----------------,,,\"+ arg0);\n\t\treturn LoginBean.class.equals(arg0);\n\t}", "private void validateInterceptorBindings(IClassBean bean) {\r\n \t\ttry {\r\n \t\t\tif(hasConflictedInterceptorBindings(bean)) {\r\n \t\t\t\t//TODO consider putting markers to interceptor bindings/stereotype declarations.\r\n \t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\taddError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS, reference, bean.getResource());\r\n \t\t\t}\r\n \t\t\tSet<IBeanMethod> methods = bean.getAllMethods();\r\n \t\t\tfor (IBeanMethod method : methods) {\r\n \t\t\t\tif(hasConflictedInterceptorBindings(method)) {\r\n \t\t\t\t\t//TODO consider putting markers to interceptor bindings/stereotype declarations.\r\n \t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(method.getMethod().getNameRange());\r\n \t\t\t\t\taddError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS, reference, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (JavaModelException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t} catch (CoreException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t}\r\n \t}", "@Override // solo para declarar que clase entity o pojo vamos a validar\r\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Usuario.class.isAssignableFrom(clazz); // si la clase Usuario es la clase que se esta psando por argumento a ese tipo devuelve true\r\n\t}", "private void checkBeanClass(Object bean) throws JellyTagException\n {\n if (getBaseClass() != null\n && !getBaseClass().isAssignableFrom(bean.getClass()))\n {\n throw new JellyTagException(\"Bean is not of expected base class: \"\n + getBaseClass().getName());\n }\n }", "public boolean getErrorOnUseBeanInvalidClassAttribute();", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Login.class.equals(clazz);\n\t}", "private void validateDecorator(IDecorator decorator) {\r\n \t\tif (decorator.getName() != null) {\r\n \t\t\tITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(decorator);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_HAS_NAME, CDIPreferences.DECORATOR_HAS_NAME, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - decorator is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (decorator.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = decorator.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getDecoratorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = decorator.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - decorator has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - decorator has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = decorator.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_DECORATOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), decorator.getResource());\r\n \t\t}\r\n \r\n \t\tSet<IInjectionPoint> injections = decorator.getInjectionPoints();\r\n \t\tSet<ITextSourceReference> delegates = new HashSet<ITextSourceReference>();\r\n \t\tIInjectionPoint delegate = null;\r\n \t\tfor (IInjectionPoint injection : injections) {\r\n \t\t\tITextSourceReference delegateAnnotation = injection.getDelegateAnnotation();\r\n \t\t\tif(delegateAnnotation!=null) {\r\n \t\t\t\tif(injection instanceof IInjectionPointField) {\r\n \t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t}\r\n \t\t\t\tif(injection instanceof IInjectionPointParameter) {\r\n \t\t\t\t\tif(((IInjectionPointParameter) injection).getBeanMethod().getAnnotation(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME)==null) {\r\n \t\t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t/*\r\n \t\t\t\t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t\t\t\t * - injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate\r\n \t\t\t\t\t\t */\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INJECTION_POINT_DELEGATE, CDIPreferences.ILLEGAL_INJECTION_POINT_DELEGATE, delegateAnnotation, decorator.getResource());\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(delegates.size()>1) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator has more than one delegate injection point\r\n \t\t\t */\r\n \t\t\tfor (ITextSourceReference declaration : delegates) {\r\n \t\t\t\taddError(CDIValidationMessages.MULTIPLE_DELEGATE, CDIPreferences.MULTIPLE_DELEGATE, declaration, decorator.getResource());\r\n \t\t\t}\r\n \t\t} else if(delegates.isEmpty()) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator does not have a delegate injection point\r\n \t\t\t */\r\n \t\t\tIAnnotationDeclaration declaration = decorator.getDecoratorAnnotation();\r\n \t\t\taddError(CDIValidationMessages.MISSING_DELEGATE, CDIPreferences.MISSING_DELEGATE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 8.1.3. Decorator delegate injection points\r\n \t\t * - delegate type does not implement or extend a decorated type of the decorator, or specifies different type parameters\r\n \t\t */\r\n \t\tif(delegate!=null) {\r\n \t\t\tIParametedType delegateParametedType = delegate.getType();\r\n \t\t\tif(delegateParametedType!=null) {\r\n \t\t\t\tIType delegateType = delegateParametedType.getType();\r\n \t\t\t\tif(delegateType != null) {\r\n \t\t\t\t\tif(!checkTheOnlySuper(decorator, delegateParametedType)) {\r\n \t\t\t\t\t\tSet<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes();\r\n \t\t\t\t\t\tList<String> supers = null;\r\n \t\t\t\t\t\tif(!delegateType.isReadOnly()) {\r\n \t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfor (IParametedType decoratedParametedType : decoratedParametedTypes) {\r\n \t\t\t\t\t\t\tIType decoratedType = decoratedParametedType.getType();\r\n \t\t\t\t\t\t\tif(decoratedType==null) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!decoratedType.isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString decoratedTypeName = decoratedType.getFullyQualifiedName();\r\n \t\t\t\t\t\t\t// Ignore the type of the decorator class bean\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(decorator.getBeanClass().getFullyQualifiedName())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(\"java.lang.Object\")) { //$NON-NLS-1$\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers==null) {\r\n \t\t\t\t\t\t\t\tsupers = getSuppers(delegateParametedType);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers.contains(decoratedParametedType.getSignature())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tITextSourceReference declaration = delegate.getDelegateAnnotation();\r\n \t\t\t\t\t\t\t\tif(delegateParametedType instanceof ITypeDeclaration) {\r\n \t\t\t\t\t\t\t\t\tdeclaration = (ITypeDeclaration)delegateParametedType;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tString typeName = Signature.getSignatureSimpleName(decoratedParametedType.getSignature());\r\n \t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DELEGATE_HAS_ILLEGAL_TYPE, typeName), CDIPreferences.DELEGATE_HAS_ILLEGAL_TYPE, declaration, decorator.getResource());\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@Override\r\n public boolean supports(final Class cls) {\r\n \r\n return UsernamePasswordAuthenticationToken.class.isAssignableFrom(cls);\r\n }", "private void validateSessionBeanMethod(IClassBean bean, IBeanMethod method, Set<ITextSourceReference> annotatedParams, String errorMessage, String preferencesKey, int id) {\r\n \t\tif (bean instanceof ISessionBean && annotatedParams != null) {\r\n \t\t\tIMethod iMethod = CDIUtil.getBusinessMethodDeclaration((SessionBean)bean, method);\r\n \t\t\tif(iMethod==null) {\r\n \t\t\t\tsaveAllSuperTypesAsLinkedResources(bean);\r\n \t\t\t\tfor (ITextSourceReference declaration : annotatedParams) {\r\n \t\t\t\t\tString bindedErrorMessage = NLS.bind(errorMessage, new String[]{method.getMethod().getElementName(), bean.getBeanClass().getElementName()});\r\n \t\t\t\t\taddError(bindedErrorMessage, preferencesKey, declaration, bean.getResource(), id);\r\n \t\t\t\t}\r\n \t\t\t} else if (iMethod != method.getMethod() && !iMethod.isBinary()) {\r\n \t\t\t\tgetValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), iMethod.getResource().getFullPath(), false);\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private static boolean validateClass(Class cls)\n {\n return PSGroupProviderInstance.class.isAssignableFrom(cls);\n }", "@Override\n public boolean supports(Class<?> aClass) {\n return JwtAuthToken.class.equals(aClass);\n }", "public boolean canRegister(Session session);", "@Override\r\n\tpublic boolean supports(Class<?> c) {\n\t\treturn RoleWiseAccessBean.class.isAssignableFrom(c);\r\n\t}", "private void validateInterceptor(IInterceptor interceptor) {\r\n \t\tif (interceptor.getName() != null) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(interceptor);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.INTERCEPTOR_HAS_NAME, CDIPreferences.INTERCEPTOR_HAS_NAME, declaration, interceptor.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - interceptor is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (interceptor.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = interceptor.getInterceptorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = interceptor.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.INTERCEPTOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, interceptor\r\n \t\t\t\t\t.getResource());\r\n \t\t}\r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - interceptor has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - interceptor has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = interceptor.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_INTERCEPTOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), interceptor.getResource());\r\n \t\t}\r\n \t\t/*\r\n \t\t * 9.2. Declaring the interceptor bindings of an interceptor\r\n \t\t * - interceptor declared using @Interceptor does not declare any interceptor binding (Non-Portable behavior)\r\n \t\t */\r\n \t\tSet<IInterceptorBinding> bindings = interceptor.getInterceptorBindings();\r\n \t\tif(bindings.isEmpty()) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\t\tif(declaration!=null) {\r\n \t\t\t\taddError(CDIValidationMessages.MISSING_INTERCEPTOR_BINDING, CDIPreferences.MISSING_INTERCEPTOR_BINDING, declaration, interceptor.getResource());\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\t/*\r\n \t\t\t * 9.2. Declaring the interceptor bindings of an interceptor\r\n \t\t\t * - interceptor for lifecycle callbacks declares an interceptor binding type that is defined @Target({TYPE, METHOD})\r\n \t\t\t */\r\n \t\t\tfor (IInterceptorBinding binding : bindings) {\r\n \t\t\t\tboolean markedAsWrong = false;\r\n \t\t\t\tIAnnotationDeclaration target = binding.getAnnotationDeclaration(CDIConstants.TARGET_ANNOTATION_TYPE_NAME);\r\n \t\t\t\tif(target!=null) {\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tIMemberValuePair[] ps = target.getDeclaration().getMemberValuePairs();\r\n \t\t\t\t\t\tif (ps != null && ps.length==1) {\r\n \t\t\t\t\t\t\tIMemberValuePair pair = ps[0];\r\n \t\t\t\t\t\t\tObject value = pair.getValue();\r\n \t\t\t\t\t\t\tif(value != null && value instanceof Object[]) {\r\n \t\t\t\t\t\t\t\tObject[] values = (Object[]) value;\r\n \t\t\t\t\t\t\t\tif(values.length>1) {\r\n \t\t\t\t\t\t\t\t\tSet<IBeanMethod> methods = interceptor.getAllMethods();\r\n \t\t\t\t\t\t\t\t\tfor (IBeanMethod method : methods) {\r\n \t\t\t\t\t\t\t\t\t\tif(method.isLifeCycleCallbackMethod()) {\r\n \t\t\t\t\t\t\t\t\t\t\tITextSourceReference declaration = CDIUtil.getAnnotationDeclaration(interceptor, binding);\r\n \t\t\t\t\t\t\t\t\t\t\tif(declaration==null) {\r\n \t\t\t\t\t\t\t\t\t\t\t\tdeclaration = interceptor.getInterceptorAnnotation();\r\n \t\t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_LIFECYCLE_CALLBACK_INTERCEPTOR_BINDING, CDIPreferences.ILLEGAL_LIFECYCLE_CALLBACK_INTERCEPTOR_BINDING, declaration, interceptor.getResource());\r\n \t\t\t\t\t\t\t\t\t\t\tmarkedAsWrong = true;\r\n \t\t\t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} catch (JavaModelException e) {\r\n \t\t\t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif(markedAsWrong) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@Override\r\n\t\tpublic boolean shouldSkipClass(Class<?> clazz) {\n\t\t\tif (clazz.equals(BeanPropertyBindingResult.class)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public boolean supports(Class<?> clazz) {\n\t\treturn UserLogin.class.isAssignableFrom(clazz);\r\n\t}", "protected boolean shouldValidateSession ()\n {\n return false;\n }", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn LoginModel.class.equals(clazz);\n\t}", "public boolean isSessionValid() {\n\t\treturn stateMachine.getCurrent() instanceof SessionValid;\n\t}", "private boolean isProxy(Object bean) {\n return (bean instanceof Advised);\n }", "private void validateSpecializingBean(IBean bean) {\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();\r\n \t\tif(specializesDeclaration!=null) {\r\n \t\t\tif(bean instanceof IDecorator) {\r\n \t\t\t\taddError(CDIValidationMessages.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());\r\n \t\t\t} else if(bean instanceof IInterceptor) {\r\n \t\t\t\taddError(CDIValidationMessages.INTERCEPTOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());\r\n \t\t\t}\r\n \t\t}\r\n \t\tIBean specializedBean = bean.getSpecializedBean();\r\n \t\tif(specializedBean!=null) {\r\n \t\t\tif(!specializedBean.getBeanClass().isReadOnly()) {\r\n \t\t\t\tgetValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), specializedBean.getResource().getFullPath(), false);\r\n \t\t\t}\r\n \r\n \t\t\tString beanClassName = bean.getBeanClass().getElementName();\r\n \t\t\tString beanName = bean instanceof IBeanMethod?beanClassName + \".\" + ((IBeanMethod)bean).getSourceMember().getElementName() + \"()\":beanClassName;\r\n \t\t\tString specializingBeanClassName = specializedBean.getBeanClass().getElementName();\r\n \t\t\tString specializingBeanName = specializedBean instanceof IBeanMethod?specializingBeanClassName + \".\" + ((IBeanMethod)specializedBean).getSourceMember().getElementName() + \"()\":specializingBeanClassName;\r\n \t\t\t/*\r\n \t\t\t * 4.3.1. Direct and indirect specialization\r\n \t\t\t * - X specializes Y but does not have some bean type of Y\r\n \t\t\t */\r\n \t\t\tSet<IParametedType> beanTypes = bean.getLegalTypes();\r\n \t\t\tSet<IParametedType> specializingBeanTypes = specializedBean.getLegalTypes();\r\n \t\t\tfor (IParametedType specializingType : specializingBeanTypes) {\r\n \t\t\t\tboolean found = false;\r\n \t\t\t\tfor (IParametedType type : beanTypes) {\r\n \t\t\t\t\tif(specializingType.getType().getFullyQualifiedName().equals(type.getType().getFullyQualifiedName())) {\r\n \t\t\t\t\t\tfound = true;\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\tif(!found) {\r\n \t\t\t\t\taddError(CDIValidationMessages.MISSING_TYPE_IN_SPECIALIZING_BEAN, CDIPreferences.MISSING_TYPE_IN_SPECIALIZING_BEAN,\r\n \t\t\t\t\t\t\tnew String[]{beanName, specializingBeanName, specializingType.getType().getElementName()},\r\n \t\t\t\t\t\t\tbean.getSpecializesAnnotationDeclaration(), bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t/*\r\n \t\t\t * 4.3.1. Direct and indirect specialization\r\n \t\t\t * - X specializes Y and Y has a name and X declares a name explicitly, using @Named\r\n \t\t\t */\r\n \t\t\tif(specializedBean.getName()!=null) {\r\n \t\t\t\tIAnnotationDeclaration nameDeclaration = bean.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\t\tif(nameDeclaration!=null) {\r\n \t\t\t\t\taddError(CDIValidationMessages.CONFLICTING_NAME_IN_SPECIALIZING_BEAN, CDIPreferences.CONFLICTING_NAME_IN_SPECIALIZING_BEAN,\r\n \t\t\t\t\t\t\tnew String[]{beanName, specializingBeanName},\r\n \t\t\t\t\t\t\tnameDeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t/*\r\n \t\t\t * 5.1.3. Inconsistent specialization\r\n \t\t\t * - Suppose an enabled bean X specializes a second bean Y. If there is another enabled bean that specializes Y we say that inconsistent\r\n \t\t\t * specialization exists. The container automatically detects inconsistent specialization and treats it as a deployment problem.\r\n \t\t\t */\r\n \t\t\tif(bean.isEnabled() && specializedBean instanceof IClassBean) {\r\n \t\t\t\tIClassBean supperClassBean = (IClassBean)specializedBean;\r\n \t\t\t\tSet<? extends IClassBean> allSpecializingBeans = supperClassBean.getSpecializingBeans();\r\n \t\t\t\tif(allSpecializingBeans.size()>1) {\r\n \t\t\t\t\tStringBuffer sb = new StringBuffer(bean.getSimpleJavaName());\r\n \t\t\t\t\tboolean moreThanTwo = false;\r\n \t\t\t\t\tfor (IClassBean specializingBean : allSpecializingBeans) {\r\n \t\t\t\t\t\tif(specializingBean!=bean && specializingBean.isEnabled()) {\r\n \t\t\t\t\t\t\tsb.append(\", \").append(specializingBean.getSimpleJavaName());\r\n \t\t\t\t\t\t\tmoreThanTwo = true;\r\n \t\t\t\t\t\t\tif(!specializingBean.getBeanClass().isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(specializingBean.getResource().getFullPath().toOSString(), bean.getSourcePath(), false);\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), specializingBean.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(moreThanTwo && specializesDeclaration!=null) {\r\n \t\t\t\t\t\taddError(CDIValidationMessages.INCONSISTENT_SPECIALIZATION, CDIPreferences.INCONSISTENT_SPECIALIZATION,\r\n \t\t\t\t\t\t\t\tnew String[]{sb.toString(), supperClassBean.getSimpleJavaName()},\r\n \t\t\t\t\t\t\t\tspecializesDeclaration, bean.getResource());\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 BeanValidationResult validate() {\n return new BeanValidator().validateTop(getClass().getSimpleName(), this);\n }", "@Override\n public boolean supports(Class<?> clazz) {\n return User.class.equals(clazz);\n }", "@Override\r\n\tpublic boolean supports(Class clazz) {\n\t\treturn User.class.isAssignableFrom(clazz);\r\n\t}", "@Override\r\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn User.class.isAssignableFrom(clazz);\r\n\t}", "private void checkBeanDefinition() throws JellyTagException\n {\n int count = countAttributes(BEAN_DEFINITION_ATTRS);\n\n if (count > 1)\n {\n throw new JellyTagException(\n \"Exactly one of the attributes must be used: \"\n + \"class, ref, beanName, beanClass!\");\n }\n if (count < 1 && !isOptional() && getDefaultClass() == null)\n {\n throw new MissingAttributeException(ATTR_CLASS);\n }\n }", "public boolean isHandled(StatusBean bean);", "boolean hasEnclosingInstanceImpl(ClassType encl);", "public interface OuterBean {\n void testRequired(User user);\n\n void testRequiresNew(User user);\n}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn User.class.equals(clazz);\n\t}", "@Override\n public boolean supports(Class<?> clazz) {\n return clazz == ClimbUserForm.class;\n }", "public boolean supports(Class<?> clazz) {\n\t\treturn clazz.isAssignableFrom(InvoiceDTO.class);\n\t}", "public boolean canLogin(Session session);", "boolean hasEnclosingInstance(ClassType encl);", "@CrossOrigin(origins = AppConstants.CORS)\n\t@RequestMapping(value = {UrlConstants.API_VALIDATE_SESSION+\"org\"}, method = RequestMethod.POST)\n\tpublic @ResponseBody ResponseDTO validateSession(@RequestBody RequestDTO requestDTO, BindingResult bindingResult) {\n\t\treturn null;\n\t}", "public boolean CheckSession(String session) { return validSessions.containsKey(session); }", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isLoginHandler(final Object obj) {\n \t\treturn getNetLoginHandlerClass().isAssignableFrom(obj.getClass());\n \t}", "private boolean isAnnotationPresent(Annotation[] annotations,\n Class<? extends Annotation> cls) {\n for (Annotation annotation : annotations) {\n if (cls.isInstance(annotation)) {\n return true;\n }\n }\n return false;\n }", "boolean isAutowireCandidate();", "SessionBeanDescriptor createSessionBeanDescriptor();", "public interface OrderValidator {\n\n /**\n * Validates OrderDto entity\n *\n * @param order OrderDto entity\n * @throws EntityNotFoundException if UserDto or CertificateDto not exist\n **/\n void validateOrder(OrderDto order);\n}", "private void validateUserObject(User user) {\n }", "public interface SessionDecorator\n{\n \n /**\n * Decorates the session and returns another decorated session.\n * \n * @param session\n */\n Session decorate(Session session);\n \n /**\n * Decorates the session and returns another decorated session\n * with the user ID used to acquire the session\n * \n * @param session\n * @param userID\n */\n Session decorate(Session session, String userID);\n \n}", "private void checkInheritedClasses(Class<?> beanClass) {\n Class<?> superclass = beanClass.getSuperclass();\n if (Object.class.equals(superclass) || Model.class.equals(superclass) || JAVA_LANG_RECORD.equals(superclass.getName())) {\n // we got to the top of the inheritance\n return;\n }\n if (!EntityBean.class.isAssignableFrom(superclass)) {\n if (isMappedSuperWithNoProperties(superclass)) {\n // ok to stop and treat just the same as Object.class\n return;\n }\n throw new BeanNotEnhancedException(\"Super type \" + superclass + \" is not enhanced? Check the packages specified in ebean.mf See https://ebean.io/docs/trouble-shooting#not-enhanced\");\n }\n\n // recursively continue up the inheritance hierarchy\n checkInheritedClasses(superclass);\n }", "@Override\r\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn AdminUserEditForm.class.isAssignableFrom(clazz);\r\n\t}", "public static boolean validateUtenteBean(Utente utenteToBeValidated) {\n\t\tif (StringUtils.isBlank(utenteToBeValidated.getNome()) || StringUtils.isBlank(utenteToBeValidated.getCognome())\n\t\t\t\t|| StringUtils.isBlank(utenteToBeValidated.getPassword())\n\t\t\t\t|| StringUtils.isBlank(utenteToBeValidated.getUsername())) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean canRun(Class<? extends Object> toRun)\n {\n boolean found = false;\n for (Annotation a : toRun.getAnnotations())\n {\n if (a.annotationType().getName().contains(\"org.springframework\"))\n {\n found = true;\n break;\n }\n }\n if (!found)\n {\n return false;\n }\n\n // Check spring-context is present in payload class loader, as well as our handler.\n try\n {\n toRun.getClassLoader().loadClass(\"org.springframework.context.annotation.AnnotationConfigApplicationContext\");\n toRun.getClassLoader().loadClass(\"com.enioka.jqm.handler.AnnotationSpringContextBootstrapHandler\");\n }\n catch (ClassNotFoundException e)\n {\n return false;\n }\n\n // OK, we can run this.\n return true;\n }", "public boolean hasLoginAdvice();", "public static boolean isHadesDaoBean(IBean bean) {\n\n return getFactoryName().equals(bean.getClassName());\n }", "@Override\n public <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass) {\n if (!ISecured.class.isAssignableFrom(componentClass)) {\n return true; \n }\n\n // Deny all others\n if (!((B4WebSession) Session.get()).isSignedIn()) {\n throw new RestartResponseAtInterceptPageException(LoginPage.class);\n }\n \n return true;\n }", "public interface Validator {\r\n\r\n\t/**\r\n\t * Advice que valida la modificacion de un Activo fijo\r\n\t */\r\n\tvoid validateActivoUpdate(Activo activo);\r\n\r\n\t/**\r\n\t * Advice que valida la creacion de un Activo fijo\r\n\t */\r\n\tvoid validateActivoCreate(Activo activo);\r\n\t\r\n}", "protected AccessionSessionBean getgermplasm$AccessionSessionBean() {\n return (AccessionSessionBean) getBean(\"germplasm$AccessionSessionBean\");\n }", "interface Validator<T> {\n /**\n * Checks whether the object is valid.\n *\n * @param t the object to check.\n * @return true if the object is valid else false.\n */\n boolean isValid(PooledObject<T> t);\n\n }", "boolean isSpring();", "private void validateUserObject(User user) {\n\t }", "Session decorate(Session session);", "@Override\n\tpublic boolean supports(Class<?> auth) {\n\t\treturn auth.equals(UsernamePasswordAuthenticationToken.class);\n\t}", "private void validateUserObject(User user) {\n }", "@Autowired\n\t\n\t@Override\n\tpublic boolean isValid(String value, ConstraintValidatorContext context) {\n\t\treturn false;\n\t}", "protected boolean checkChildClass(final Class<?> childClass) {\n \n \t\tAssert.isNotNull(childClass);\n \n \t\tfinal Type[] types = childClass.getInterfaces();\n \t\tfor (final Type type : types) {\n \t\t\tif (type == getValidChildType()) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\tif (type == INavigationNode.class) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \n \t\tfinal Class<?> superClass = childClass.getSuperclass();\n \t\tif (superClass != null) {\n \t\t\treturn checkChildClass(superClass);\n \t\t}\n \n \t\treturn false;\n \n \t}", "void beforeInit(Object bean, Class<?> clazz) throws Exception;", "public boolean isInstantiationAllowed(Class cl) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isInstantiationAllowed(cl);\r\n\t}", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "protected boolean mayBeNestedBeanType(Class<?> fieldType) {\n return !fieldType.isPrimitive() // not primitive types\n && !fieldType.isArray() // not array type, array's nested bean is unsupported for the check, simply\n && !Object.class.equals(fieldType) // e.g. generic type\n && !String.class.isAssignableFrom(fieldType) // not String\n && !Number.class.isAssignableFrom(fieldType) // not Integer, Long, ...\n && !TemporalAccessor.class.isAssignableFrom(fieldType) // not LocalDate, ...\n && !java.util.Date.class.isAssignableFrom(fieldType) // not old date\n && !Boolean.class.isAssignableFrom(fieldType) // not boolean\n && !Classification.class.isAssignableFrom(fieldType) // not CDef\n && !File.class.isAssignableFrom(fieldType) // not File\n && !isCollectionFamilyType(fieldType); // not Collection family\n }", "private boolean validateClass(TypeElement typeElement) {\n if (!isSubtype(typeElement, ACTIVITY_FULL_NAME) && !isSubtype(typeElement, FRAGMENT_X_FULL_NAME)) {\n mLogger.error(typeElement, String.format(\"%s is not a subclass of Activity or Fragment.\",\n typeElement.getSimpleName().toString()));\n return false;\n }\n Set<Modifier> modifiers = typeElement.getModifiers();\n // abstract class.\n if (modifiers.contains(Modifier.ABSTRACT)) {\n mLogger.error(typeElement, String.format(\"The class %s is abstract. You can't annotate abstract classes with @%s.\",\n (typeElement).getQualifiedName(), Route.class.getSimpleName()));\n return false;\n }\n return true;\n }", "@Bean\n\t @ConditionalOnBean(TokenEnhancer.class)\n\t public TokenEnhancer jwtTokenEnhancer() {\n\t\t return new TokenJwtEnhancer();\n\t }", "private boolean isMappedSuperWithNoProperties(Class<?> beanClass) {\n // do not search recursive here\n MappedSuperclass annotation = AnnotationUtil.get(beanClass, MappedSuperclass.class);\n if (annotation == null) {\n return false;\n }\n Field[] fields = beanClass.getDeclaredFields();\n for (Field field : fields) {\n if (!Modifier.isStatic(field.getModifiers())\n && !Modifier.isTransient(field.getModifiers())\n && !field.isAnnotationPresent(Transient.class)) {\n return false;\n }\n }\n return true;\n }", "private void checkIfIsAValidClass(IDatabaseClass annotationClass){\n if (annotationClass == null || annotationClass.tableName() == \"\") {\n throw new CustomException(\"No table name found in your class declaration!\");\n }\n }", "boolean hasSession();", "boolean isInjected();", "@Override\r\n\tpublic boolean supports(Class clazz) {\n\t\treturn Customer.class.isAssignableFrom(clazz);\r\n\t\t//instanceof can only be used with reference types, not primitive types. isAssignableFrom() can be used with any class objects:\r\n\t\t// a instanceof int // syntax error\r\n\t\t//\t3 instanceof Foo // syntax error\r\n\t\t// int.class.isAssignableFrom(int.class) // true\r\n\t}", "@Validated\npublic interface IJobApplicationService {\n JobApplication newApplication(@Valid @NotNull Long userId, @Valid @NotNull JobApplication jobApplication);\n\n JobApplication setCVtoJobApplication(@Valid @NotNull Long userId, @Valid @NotNull Long cvId, @Valid @NotNull Long id);\n\n JobApplication getApplication(@Valid Long userId, @Valid @NotNull Long id);\n\n @Secured(\"ROLE_ADMIN\")\n JobApplication getApplication(@Valid @NotNull Long id);\n\n JobApplication archiveApplication(@Valid @NotNull Long userId, @Valid @NotNull Long id, @Valid @NotNull JobApplicationStatus status);\n}", "boolean isProxyTargetClass();", "public static boolean validate(Class<?> dtoType) {\n return ObjectUtils.hasAnnotation(dtoType, MappingClass.class);\n }", "@Test\n public void shouldHaveANoArgsConstructor() {\n assertThat(AssignForceBatch.class, hasValidBeanConstructor());\n }", "public boolean validate(Class<?> aClass, List<String> aMessages) {\n\n\t\tboolean status = AnnotationsHelper.validate(aClass, aMessages);\n\n\t\tfor (Fw fw : this.getAllFields(aClass)) {\n\t\t\tstatus = status && AnnotationsHelper.validate(fw, aMessages);\n\t\t}\n\t\treturn status;\n\t}", "public void validate(Object obj, Errors errors) {\n\t\tSystem.out.println(\" ------------------------ in validator ----------------,,,\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"username\", \"user.name.empty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"password\", \"user.password.empty\");\n\t\t/*ValidationUtils.rejectIfEmpty(errors, \"exist\", \"user.exist.empty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"notexist\", \"user.notexist.empty\");\n\t\tLoginBean lb = (LoginBean) obj;\n\t\tif(!lb.isExist()){\n\t\t\terrors.rejectValue(\"exist\", \"user.exist.empty\");\n\t\t}*/\n\t}", "public boolean hasClass(final String elementLocator, final String clazz);", "Usuario validarUsuario(Usuario usuario) throws Exception;", "@Override\n public boolean isValid() {\n return (connection != null && session != null && session.isOpen());\n }", "public interface BeanInterceptor<_B> {\n\n /**\n * This is invoked/executed by the framework.\n * The implementation must call <code>invocation.proceed()</code> to continue the interceptor chain.\n * The implementation may throw any Exception in which case the interceptor chain is aborted.\n */\n void intercept(BeanInvocation<_B> invocation) throws Exception;\n}", "boolean hasComponent(Class<? extends Component> componentClass);", "private static void checkProxyPackageAccess(Class<?> clazz) {\n SecurityManager s = System.getSecurityManager();\n if (s != null) {\n // check proxy interfaces if the given class is a proxy class\n if (Proxy.isProxyClass(clazz)) {\n for (Class<?> intf : clazz.getInterfaces()) {\n checkPackageAccess(intf);\n }\n }\n }\n }", "boolean isValid(PooledObject<T> t);", "@Test\n public void shouldAllowClassOnWhitelistedClassAndNonWhitelistedPackage() {\n // given\n validator.setAllowedClasses(SOME_CLASS);\n validator.setAllowedPackages(ANOTHER_PACKAGE);\n // then\n assertThat(validator.validate(SOME_CLASS)).isTrue();\n }", "@Override\n \tprotected boolean checkDelegateMethod(Method input) {\n \t\tif (!domain.checkElementType(target, input.getGenericReturnType())) {\n \t\t\treturn false;\n \t\t}\n \n \t\tClass<?>[] delegateParams = input.getParameterTypes();\n \n \t\t// must have first argument of type of the setter container\n \t\tif (!(delegateParams.length == 1 && domain.checkClassifierType(\n \t\t\t\ttarget.getEContainingClass(), delegateParams[0]))) {\n \t\t\treturn false;\n \t\t}\n \n \t\treturn true;\n \t}", "boolean isInterfaceProxied(Class<?> intf);", "private boolean isClassConfiguration(IConfigurationAnnotation configurationAnnotation) {\n if(null == configurationAnnotation) {\n return false;\n }\n \n boolean before= (null != configurationAnnotation)\n ? configurationAnnotation.getBeforeTestClass()\n : false;\n\n boolean after= (null != configurationAnnotation)\n ? configurationAnnotation.getAfterTestClass()\n : false;\n\n return (before || after);\n }", "public static boolean checkAuthorisation(HttpSession session) {\r\n\t\tif (session.getAttribute(CommandParameter.PARAM_NAME_ID) == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isAcceptable(Class<? extends DataElement> clazz);", "public interface ValidationAnnotationHandlersBundle {\n\n /**\n * Returns all associated property validation annotation handlers.\n *\n * @return All associated property validation annotation handlers.\n */\n Collection<PropertyValidationAnnotationHandler> getPropertyHandlers();\n\n /**\n * Returns all associated class validation annotation handlers.\n *\n * @return All associated class validation annotation handlers.\n */\n Collection<ClassValidationAnnotationHandler> getClassHandlers();\n \n}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn RegistrationModel.class.isAssignableFrom(clazz);\n\t}", "boolean isInnerClass();", "public interface BeanAutowired {\n}", "public boolean supports(Class<?> clazz) {\n\t\treturn AuthorDTO.class == clazz;\n\t}", "private void validateClass () throws ModelValidationException\n\t\t\t{\n\t\t\t\tModel model = getModel();\n\t\t\t\tint modifiers = model.getModifiersForClass(keyClassName);\n\t\t\t\tboolean hasKeyClassName = !StringHelper.isEmpty(keyClassName);\n\t\t\t\tboolean isInnerClass = \n\t\t\t\t\t(hasKeyClassName && (keyClassName.indexOf('$') != -1));\n\t\t\t\tString pcClassName = getClassName();\n\n\t\t\t\t// check for key class existence\n\t\t\t\tif (keyClass == null)\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(\n\t\t\t\t\t\tModelValidationException.WARNING,\n\t\t\t\t\t\tmodel.getClass(pcClassName),\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_missing\", //NOI18N\n\t\t\t\t\t\tkeyClassName, pcClassName));\n\t\t\t\t}\n\n\t\t\t\t// check for public class modifier\n\t\t\t\tif (!Modifier.isPublic(modifiers))\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(keyClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_public\", //NOI18N\n\t\t\t\t\t\tkeyClassName, pcClassName));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// check for Serializable\n\t\t\t\t/* This check is disabled because of Boston backward \n\t\t\t\t compatibility. In Boston there was no requirement for a \n\t\t\t\t key class being serializable, thus key classes from pc \n\t\t\t\t classes mapped with boston are not serializable.\n\n\t\t\t\tif (!model.implementsInterface(keyClass, \n\t\t\t\t\t\"java.io.Serializable\")) //NOI18N\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(keyClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_serializable\", //NOI18N\n\t\t\t\t\t\tkeyClassName, pcClassName));\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\t// if inner class it must be static\n\t\t\t\tif (isInnerClass && !Modifier.isStatic(modifiers))\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(keyClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_static\", //NOI18N\n\t\t\t\t\t\tkeyClassName, pcClassName));\n\t\t\t\t}\n\t\t\t}", "public static boolean validateAnnuncioBean(Annuncio annuncioToBeValidated) {\n\t\tif (StringUtils.isBlank(annuncioToBeValidated.getTestoAnnuncio())\n\t\t\t\t|| annuncioToBeValidated.getCategorie().isEmpty()\n\t\t\t\t|| annuncioToBeValidated.getId() == null || annuncioToBeValidated.getPrezzo() == null\n\t\t\t\t|| annuncioToBeValidated.getDataPubblicazione() == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.6202893", "0.58993536", "0.5774471", "0.5279274", "0.52105266", "0.5204487", "0.5199546", "0.51114595", "0.50956434", "0.507062", "0.50239927", "0.49743757", "0.49643207", "0.4946625", "0.4945738", "0.49278513", "0.49174002", "0.4906422", "0.49036044", "0.48897076", "0.48772067", "0.4861447", "0.48396537", "0.4831953", "0.4792389", "0.47820723", "0.47813883", "0.47799057", "0.47745845", "0.4762371", "0.47482538", "0.4746406", "0.4711858", "0.47006562", "0.4685224", "0.46748406", "0.4654491", "0.46456715", "0.4634804", "0.46175027", "0.45936942", "0.458017", "0.45769256", "0.4573037", "0.4568776", "0.4509334", "0.44926363", "0.44902503", "0.448257", "0.4476093", "0.44756126", "0.44689652", "0.44685858", "0.44468144", "0.44136173", "0.44045845", "0.44015583", "0.4395077", "0.43945998", "0.43943778", "0.4393678", "0.43932322", "0.43728048", "0.4372479", "0.4365126", "0.4365126", "0.43642184", "0.43574664", "0.43511632", "0.43481857", "0.43373063", "0.4328371", "0.43206522", "0.43089768", "0.43079427", "0.4297978", "0.42954546", "0.42910317", "0.4282029", "0.42804974", "0.42687997", "0.4268326", "0.42656282", "0.42573664", "0.42407885", "0.42393765", "0.423462", "0.42337757", "0.4231756", "0.42241332", "0.42237452", "0.42178926", "0.42107773", "0.4207107", "0.42040518", "0.42028004", "0.41983587", "0.41978878", "0.4185915", "0.41851887" ]
0.75187045
0
/ 3.1. Managed beans
private void validateManagedBean(IClassBean bean) { IAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME); IAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME); if (decorator != null && interceptor != null) { addError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, decorator, bean.getResource()); addError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, interceptor, bean.getResource()); } IAnnotationDeclaration declaration = CDIUtil.getDifferentScopeDeclarationThanDepentend(bean); if (declaration != null) { IType type = bean.getBeanClass(); try { /* * 3.1. Managed beans * - managed bean with a public field declares any scope other than @Dependent */ IField[] fields = type.getFields(); for (IField field : fields) { if (Flags.isPublic(field.getFlags()) && !Flags.isStatic(field.getFlags())) { addError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_PUBLIC_FIELD, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN, declaration, bean.getResource()); break; } } /* * 3.1. Managed beans * - managed bean with a parameterized bean class declares any scope other than @Dependent */ String[] typeVariables = type.getTypeParameterSignatures(); if (typeVariables.length > 0) { addError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_GENERIC_TYPE, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN, declaration, bean.getResource()); } } catch (JavaModelException e) { CDICorePlugin.getDefault().logError(e); } } /* * 3.1.4. Specializing a managed bean * - managed bean class annotated @Specializes does not directly extend the bean class of another managed bean */ IAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration(); if (specializesDeclaration != null) { saveAllSuperTypesAsLinkedResources(bean); try { IBean sBean = bean.getSpecializedBean(); if (sBean != null) { if (sBean instanceof ISessionBean || sBean.getAnnotation(CDIConstants.STATELESS_ANNOTATION_TYPE_NAME) != null || sBean.getAnnotation(CDIConstants.SINGLETON_ANNOTATION_TYPE_NAME) != null) { // The specializing bean directly extends an enterprise bean class addError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource()); } else { // Validate the specializing bean extends a non simple bean boolean hasDefaultConstructor = true; IMethod[] methods = sBean.getBeanClass().getMethods(); for (IMethod method : methods) { if (method.isConstructor()) { if (Flags.isPublic(method.getFlags()) && method.getParameterNames().length == 0) { hasDefaultConstructor = true; break; } hasDefaultConstructor = false; } } if (!hasDefaultConstructor) { addError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource()); } } } else { // The specializing bean extends nothing addError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource()); } } catch (JavaModelException e) { CDICorePlugin.getDefault().logError(e); } } /* * 9.3. Binding an interceptor to a bean * - managed bean has a class level interceptor binding and is declared final or has a non-static, non-private, final method * - non-static, non-private, final method of a managed bean has a method level interceptor binding */ try { Set<IInterceptorBinding> bindings = bean.getInterceptorBindings(); if(!bindings.isEmpty()) { if(Flags.isFinal(bean.getBeanClass().getFlags())) { ITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange()); addError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource()); } else { IMethod[] methods = bean.getBeanClass().getMethods(); for (int i = 0; i < methods.length; i++) { int flags = methods[i].getFlags(); if(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) { ITextSourceReference reference = CDIUtil.convertToSourceReference(methods[i].getNameRange()); addError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource()); } } } } else { Set<IBeanMethod> beanMethods = bean.getAllMethods(); for (IBeanMethod method : beanMethods) { if(!method.getInterceptorBindings().isEmpty()) { if(Flags.isFinal(bean.getBeanClass().getFlags())) { ITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange()); addError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource()); } else { IMethod sourceMethod = method.getMethod(); int flags = sourceMethod.getFlags(); if(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) { ITextSourceReference reference = CDIUtil.convertToSourceReference(sourceMethod.getNameRange()); addError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource()); } } } } } } catch (JavaModelException e) { CDICorePlugin.getDefault().logError(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListarInscritosManagedBean() {\n this.member1Service = new Member1Service();\n }", "public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}", "public ConversorManagedBean() {\r\n }", "@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}", "Object getBean();", "public MusicManagedBean() {\n }", "public ObjetosBeans() {\n this.init();\n }", "public CustomerManagedBean() {\r\n }", "public UpdateClassManagedBean() {\n }", "public NotificationManagedBean() {\r\n }", "protected PersonSessionBean getadmin$PersonSessionBean() {\n return (PersonSessionBean) getBean(\"admin$PersonSessionBean\");\n }", "ComponentBean getBean();", "public void ejbStore() {\n }", "public void ejbStore() {\n }", "public NewJSFManagedBean() {\n }", "public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }", "public AccountManagerBean() {\n account = new Account();\n staff = new Staff();\n student = new Student();\n role = new Role();\n }", "@Override\r\n\tpublic UserBean createUserBean()\r\n\t{\r\n\t\treturn new UserManagedBean();\r\n\t}", "public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}", "public interface WorkManager extends InitBean, DestroyBean {\r\n\r\n\t/**\r\n\t * This method allow you to assign given work to a worker available if no\r\n\t * Worker is available then it will create new and assign to the worker.\r\n\t * \r\n\t * @param work\r\n\t */\r\n\tvoid allocateWorker(Work work);\r\n\r\n\t/**\r\n\t * This method will release all workers registered under this maager.\r\n\t */\r\n\tvoid releaseAllWorkers();\r\n\r\n\t/**\r\n\t * This method will release the @param worker registered with this Manager.\r\n\t * \r\n\t * @param worker\r\n\t */\r\n\tvoid releaseWorker(Worker worker);\r\n\r\n\t/**\r\n\t * This method will register the @param worker passed to it with the\r\n\t * Manager.\r\n\t * \r\n\t * @param worker\r\n\t */\r\n\tvoid registerWorker(Worker worker);\r\n\r\n\t/**\r\n\t * This method allow you to assign given work to a deamon worker available\r\n\t * if no deamon Worker is available then it will create new and assign to\r\n\t * the worker.\r\n\t * \r\n\t * @param work\r\n\t */\r\n\tvoid allocateDeamonWorker(Work work);\r\n\r\n\t/**\r\n\t * This will return number of worker created using this manager.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tint numberOfWorkers();\r\n\r\n\t/**\r\n\t * This will return number of working workers.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tint numberOfWorkingWorkers();\r\n}", "public TestManagedBeanFactory(String name) {\n \n super(name);\n \n }", "<V> IBeanRuntime<V> registerWithLifecycle(V object);", "public ProductBeans() {\n \n services = BeanHelper.getService();\n list = services.listOfProducts();\n\n }", "public interface BeanFactory {\r\n\t/**\r\n\t * Creates a new instance of the bean this is the factory for and invokes \r\n\t * its {@link Initializer}s.\r\n\t * @param controller the controller to use (needed for Actors only, may be null otherwise)\r\n\t * @param props the initial properties of the new bean\r\n\t * @return the new bean\r\n\t */\r\n\tpublic Object createNewInstance(Controller controller, Props props);\r\n}", "public PeopleBean() {\n\n }", "public TestManageBean() {\n }", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\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 }", "public QuotationDetailProStaffManagedBean() {\n }", "public interface CSUserLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idPassword.\n\t * @return String\n\t */\n\tpublic String getIdPassword();\n\t/**\n\t * Returns the idProfile.\n\t * @return String\n\t */\n\tpublic String getIdProfile();\n\t/**\n\t * Returns the idProfileDesc.\n\t * @return String\n\t */\n\tpublic String getIdProfileDesc();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrCreate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrCreate();\n\t/**\n\t * Returns the idWrkrUpdate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrUpdate();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the tsCreate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsCreate();\n\t/**\n\t * Returns the tsUpdate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsUpdate();\n\t/**\n\t * Sets the idPassword.\n\t * @param idPassword The idPassword to set\n\t */\n\tpublic void setIdPassword(String idPassword);\n\t/**\n\t * Sets the idProfile.\n\t * @param idProfile The idProfile to set\n\t */\n\tpublic void setIdProfile(String idProfile);\n\t/**\n\t * Sets the idProfileDesc.\n\t * @param idProfileDesc The idProfileDesc to set\n\t */\n\tpublic void setIdProfileDesc(String idProfileDesc);\n\t/**\n\t * Sets the idWrkrUpdate.\n\t * @param idWrkrUpdate The idWrkrUpdate to set\n\t */\n\tpublic void setIdWrkrUpdate(String idWrkrUpdate);\n\t/**\n\t * Sets the tsUpdate.\n\t * @param tsUpdate The tsUpdate to set\n\t */\n\tpublic void setTsUpdate(java.sql.Timestamp tsUpdate);\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Returns the cdPasswordStatus.\n\t * @return String\n\t */\n\tpublic String getCdPasswordStatus();\n\t/**\n\t * Sets the cdPasswordStatus.\n\t * @param cdPasswordStatus The cdPasswordStatus to set\n\t */\n\tpublic void setCdPasswordStatus(String cdPasswordStatus);\n\t/**\n\t * Returns the cdAccptWrkld.\n\t * @return String\n\t */\n\tpublic String getCdAccptWrkld();\n\t/**\n\t * Returns the nbApproval.\n\t * @return int\n\t */\n\tpublic int getNbApproval();\n\t/**\n\t * Returns the nbCompleted.\n\t * @return int\n\t */\n\tpublic int getNbCompleted();\n\t/**\n\t * Returns the nbOutstanding.\n\t * @return int\n\t */\n\tpublic int getNbOutstanding();\n\t/**\n\t * Sets the cdAccptWrkld.\n\t * @param cdAccptWrkld The cdAccptWrkld to set\n\t */\n\tpublic void setCdAccptWrkld(String cdAccptWrkld);\n\t/**\n\t * Sets the nbApproval.\n\t * @param nbApproval The nbApproval to set\n\t */\n\tpublic void setNbApproval(int nbApproval);\n\t/**\n\t * Sets the nbCompleted.\n\t * @param nbCompleted The nbCompleted to set\n\t */\n\tpublic void setNbCompleted(int nbCompleted);\n\t/**\n\t * Sets the nbOutstanding.\n\t * @param nbOutstanding The nbOutstanding to set\n\t */\n\tpublic void setNbOutstanding(int nbOutstanding);\n\t/**\n\t * Returns the byAgent.\n\t * @return boolean\n\t */\n\tpublic boolean isByAgent();\n\t/**\n\t * Returns the byControlNbr.\n\t * @return boolean\n\t */\n\tpublic boolean isByControlNbr();\n\t/**\n\t * Returns the byCounty.\n\t * @return boolean\n\t */\n\tpublic boolean isByCounty();\n\t/**\n\t * Returns the byCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByCP();\n\t/**\n\t * Returns the byCustomer.\n\t * @return boolean\n\t */\n\tpublic boolean isByCustomer();\n\t/**\n\t * Returns the byDtCompleted.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtCompleted();\n\t/**\n\t * Returns the byDtDue.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtDue();\n\t/**\n\t * Returns the byDtReceived.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtReceived();\n\t/**\n\t * Returns the byEmail.\n\t * @return boolean\n\t */\n\tpublic boolean isByEmail();\n\t/**\n\t * Returns the byIdPart.\n\t * @return boolean\n\t */\n\tpublic boolean isByIdPart();\n\t/**\n\t * Returns the byNbCase.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbCase();\n\t/**\n\t * Returns the byNbDkt.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbDkt();\n\t/**\n\t * Returns the byNbSSN.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbSSN();\n\t/**\n\t * Returns the byNCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByNCP();\n\t/**\n\t * Returns the byReferralType.\n\t * @return boolean\n\t */\n\tpublic boolean isByReferralType();\n\t/**\n\t * Returns the bySrc1.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc1();\n\t/**\n\t * Returns the bySrc2.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc2();\n\t/**\n\t * Returns the bySrc3.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc3();\n\t/**\n\t * Returns the bySrc4.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc4();\n\t/**\n\t * Returns the dirty.\n\t * @return boolean\n\t */\n\tpublic boolean isDirty();\n\t/**\n\t * Sets the byAgent.\n\t * @param byAgent The byAgent to set\n\t */\n\tpublic void setByAgent(boolean byAgent);\n\t/**\n\t * Sets the byControlNbr.\n\t * @param byControlNbr The byControlNbr to set\n\t */\n\tpublic void setByControlNbr(boolean byControlNbr);\n\t/**\n\t * Sets the byCounty.\n\t * @param byCounty The byCounty to set\n\t */\n\tpublic void setByCounty(boolean byCounty);\n\t/**\n\t * Sets the byCP.\n\t * @param byCP The byCP to set\n\t */\n\tpublic void setByCP(boolean byCP);\n\t/**\n\t * Sets the byCustomer.\n\t * @param byCustomer The byCustomer to set\n\t */\n\tpublic void setByCustomer(boolean byCustomer);\n\t/**\n\t * Sets the byDtCompleted.\n\t * @param byDtCompleted The byDtCompleted to set\n\t */\n\tpublic void setByDtCompleted(boolean byDtCompleted);\n\t/**\n\t * Sets the byDtDue.\n\t * @param byDtDue The byDtDue to set\n\t */\n\tpublic void setByDtDue(boolean byDtDue);\n\t/**\n\t * Sets the byDtReceived.\n\t * @param byDtReceived The byDtReceived to set\n\t */\n\tpublic void setByDtReceived(boolean byDtReceived);\n\t/**\n\t * Sets the byEmail.\n\t * @param byEmail The byEmail to set\n\t */\n\tpublic void setByEmail(boolean byEmail);\n\t/**\n\t * Sets the byIdPart.\n\t * @param byIdPart The byIdPart to set\n\t */\n\tpublic void setByIdPart(boolean byIdPart);\n\t/**\n\t * Sets the byNbCase.\n\t * @param byNbCase The byNbCase to set\n\t */\n\tpublic void setByNbCase(boolean byNbCase);\n\t/**\n\t * Sets the byNbDkt.\n\t * @param byNbDkt The byNbDkt to set\n\t */\n\tpublic void setByNbDkt(boolean byNbDkt);\n\t/**\n\t * Sets the byNbSSN.\n\t * @param byNbSSN The byNbSSN to set\n\t */\n\tpublic void setByNbSSN(boolean byNbSSN);\n\t/**\n\t * Sets the byNCP.\n\t * @param byNCP The byNCP to set\n\t */\n\tpublic void setByNCP(boolean byNCP);\n\t/**\n\t * Sets the byReferralType.\n\t * @param byReferralType The byReferralType to set\n\t */\n\tpublic void setByReferralType(boolean byReferralType);\n\t/**\n\t * Sets the bySrc1.\n\t * @param bySrc1 The bySrc1 to set\n\t */\n\tpublic void setBySrc1(boolean bySrc1);\n\t/**\n\t * Sets the bySrc2.\n\t * @param bySrc2 The bySrc2 to set\n\t */\n\tpublic void setBySrc2(boolean bySrc2);\n\t/**\n\t * Sets the bySrc3.\n\t * @param bySrc3 The bySrc3 to set\n\t */\n\tpublic void setBySrc3(boolean bySrc3);\n\t/**\n\t * Sets the bySrc4.\n\t * @param bySrc4 The bySrc4 to set\n\t */\n\tpublic void setBySrc4(boolean bySrc4);\n\t/**\n\t * Returns the cdApprovalRequired.\n\t * @return String\n\t */\n\tpublic String getCdApprovalRequired();\n\t/**\n\t * Sets the cdApprovalRequired.\n\t * @param cdApprovalRequired The cdApprovalRequired to set\n\t */\n\tpublic void setCdApprovalRequired(String cdApprovalRequired);\n\t/**\n\t * Returns the userEntityBean.\n\t * @return UserEntityBean\n\t */\n\tpublic UserEntityBean getUserEntityBean();\n\t/**\n\t * Sets the userEntityBean.\n\t * @param userEntityBean The userEntityBean to set\n\t */\n\tpublic void setUserEntityBean(UserEntityBean userEntityBean);\n}", "public void testValueRefScope() throws Exception {\n \n TestBean testBean = new TestBean();\n boolean exceptionThrown = false;\n \n //testing with:\n // valueref in application scope\n // managed bean in session scope\n getFacesContext().getExternalContext().getApplicationMap().put(\n \"TestRefBean\", testBean);\n \n ValueBindingImpl valueBinding =\n new ValueBindingImpl(new ApplicationImpl());\n \n valueBinding.setRef(\"TestRefBean.one\");\n valueBinding.setValue(getFacesContext(), \"one\");\n \n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"session\");\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"one\");\n property.setValue(\"#{TestRefBean.one}\");\n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n //testing with an application scope property set in a session scope bean\n assertNotNull(testBean = (TestBean) mbf.newInstance(getFacesContext()));\n \n //make sure bean instantiated properly. Get property back from bean.\n assertTrue(testBean.getOne().equals(\"one\"));\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope().equals(\"session\"));\n \n \n //testing with:\n // valueref in request scope\n // managed bean in application scope\n getFacesContext().getExternalContext().getRequestMap().put(\n \"TestRefBean\", testBean);\n \n valueBinding = new ValueBindingImpl(new ApplicationImpl());\n \n valueBinding.setRef(\"TestRefBean.one\");\n valueBinding.setValue(getFacesContext(), \"one\");\n \n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"application\");\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"one\");\n property.setValue(\"#{TestRefBean.one}\");\n \n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n exceptionThrown = false;\n try {\n mbf.newInstance(getFacesContext());\n fail(\"Should have thrown FacesException\");\n } catch (FacesException ex) {\n exceptionThrown = true;\n }\n assertTrue(exceptionThrown);\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope().equals(\"application\"));\n \n //cleanup\n getFacesContext().getExternalContext().getRequestMap().remove(\n \"TestRefBean\");\n \n //testing with:\n // valueref in session scope\n // managed bean in no scope\n getFacesContext().getExternalContext().getSessionMap().put(\n \"TestRefBean\", testBean);\n \n valueBinding = new ValueBindingImpl(new ApplicationImpl());\n \n valueBinding.setRef(\"sessionScope.TestRefBean.one\");\n valueBinding.setValue(getFacesContext(), \"one\");\n \n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(null);\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"one\");\n property.setValue(\"#{sessionScope.TestRefBean.one}\");\n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n exceptionThrown = false;\n try {\n mbf.newInstance(getFacesContext());\n fail(\"Should have thrown FacesException\");\n } catch (FacesException ex) {\n exceptionThrown = true;\n }\n assertTrue(exceptionThrown);\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope() == null);\n }", "public interface CSActsWorkerLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Returns the cdFipsWrkr.\n\t * @return String\n\t */\n\tpublic String getCdFipsWrkr();\n\t/**\n\t * Returns the cdWrkrType.\n\t * @return String\n\t */\n\tpublic String getCdWrkrType();\n\t/**\n\t * Returns the csActsWorkerInquiry.\n\t * @return CSActsWorkerInquiry\n\t */\n\tpublic CSActsWorkerInquiry getCsActsWorkerInquiry();\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idEmail.\n\t * @return String\n\t */\n\tpublic String getIdEmail();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrLogon.\n\t * @return String\n\t */\n\tpublic String getIdWrkrLogon();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the nbFaxWorker.\n\t * @return String\n\t */\n\tpublic String getNbFaxWorker();\n\t/**\n\t * Returns the nbTelWorker.\n\t * @return String\n\t */\n\tpublic String getNbTelWorker();\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Returns the tmLunchEnd.\n\t * @return String\n\t */\n\tpublic String getTmLunchEnd();\n\t/**\n\t * Returns the tmLunchStart.\n\t * @return String\n\t */\n\tpublic String getTmLunchStart();\n\t/**\n\t * Returns the tmWorkEnd.\n\t * @return String\n\t */\n\tpublic String getTmWorkEnd();\n\t/**\n\t * Returns the tmWorkStart.\n\t * @return String\n\t */\n\tpublic String getTmWorkStart();\n\t/**\n\t * Sets the cdFipsWrkr.\n\t * @param cdFipsWrkr The cdFipsWrkr to set\n\t */\n\tpublic void setCdFipsWrkr(String cdFipsWrkr);\n\t/**\n\t * Sets the cdWrkrType.\n\t * @param cdWrkrType The cdWrkrType to set\n\t */\n\tpublic void setCdWrkrType(String cdWrkrType);\n\t/**\n\t * Sets the csActsWorkerInquiry.\n\t * @param csActsWorkerInquiry The csActsWorkerInquiry to set\n\t */\n\tpublic void setCsActsWorkerInquiry(CSActsWorkerInquiry csActsWorkerInquiry);\n\t/**\n\t * setEntityContext\n\t */\n\tpublic void setEntityContext(javax.ejb.EntityContext ctx);\n\t/**\n\t * Sets the idEmail.\n\t * @param idEmail The idEmail to set\n\t */\n\tpublic void setIdEmail(String idEmail);\n\t/**\n\t * Sets the idWrkr.\n\t * @param idWrkr The idWrkr to set\n\t */\n\tpublic void setIdWrkr(String idWrkr);\n\t/**\n\t * Sets the idWrkrLogon.\n\t * @param idWrkrLogon The idWrkrLogon to set\n\t */\n\tpublic void setIdWrkrLogon(String idWrkrLogon);\n\t/**\n\t * Sets the myEntityCtx.\n\t * @param myEntityCtx The myEntityCtx to set\n\t */\n\tpublic void setMyEntityCtx(javax.ejb.EntityContext myEntityCtx);\n\t/**\n\t * Sets the nbFaxWorker.\n\t * @param nbFaxWorker The nbFaxWorker to set\n\t */\n\tpublic void setNbFaxWorker(String nbFaxWorker);\n\t/**\n\t * Sets the nbTelWorker.\n\t * @param nbTelWorker The nbTelWorker to set\n\t */\n\tpublic void setNbTelWorker(String nbTelWorker);\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Sets the tmLunchEnd.\n\t * @param tmLunchEnd The tmLunchEnd to set\n\t */\n\tpublic void setTmLunchEnd(String tmLunchEnd);\n\t/**\n\t * Sets the tmLunchStart.\n\t * @param tmLunchStart The tmLunchStart to set\n\t */\n\tpublic void setTmLunchStart(String tmLunchStart);\n\t/**\n\t * Sets the tmWorkEnd.\n\t * @param tmWorkEnd The tmWorkEnd to set\n\t */\n\tpublic void setTmWorkEnd(String tmWorkEnd);\n\t/**\n\t * Sets the tmWorkStart.\n\t * @param tmWorkStart The tmWorkStart to set\n\t */\n\tpublic void setTmWorkStart(String tmWorkStart);\n\t/**\n\t * Returns the actsWorkerEntityBean.\n\t * @return ActsWorkerEntityBean\n\t */\n\tpublic ActsWorkerEntityBean getActsWorkerEntityBean();\n\t/**\n\t * Sets the actsWorkerEntityBean.\n\t * @param actsWorkerEntityBean The actsWorkerEntityBean to set\n\t */\n\tpublic void setActsWorkerEntityBean(ActsWorkerEntityBean actsWorkerEntityBean);\n}", "public TestManagedBeanFactory() {\n super(\"TestManagedBeanFactory\");\n }", "public interface ContextBeansListener {\n /**\n * Notification that a new instance of a bean was added to the bean holder.\n * \n * @param bean The bean for which the action took place\n * @param context The creational context that was used\n * @param instance The instance added\n */\n public void instanceAdded(Contextual<?> bean, CreationalContext<?> context, Object instance);\n /**\n * Notification that a bean was removed from the bean holder.\n * \n * @param bean The bean\n * @param context The creational context\n * @param instance The instance\n */\n public void instanceRemoved(Contextual<?> bean, CreationalContext<?> context, Object instance);\n}", "public SettlementBean() {\r\n entitymanagerbean = new EntityManagerBean();\r\n }", "public void testMapTypeProperty() throws Exception {\n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"session\");\n \n mapEntries = new MapEntriesBean();\n mapEntries.setKeyClass(\"java.lang.String\");\n mapEntries.setValueClass(\"java.lang.Integer\");\n \n mapEntry = new MapEntryBean();\n mapEntry.setKey(\"name\");\n mapEntry.setValue(\"23\");\n mapEntries.addMapEntry(mapEntry);\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"mapProperty\");\n property.setMapEntries(mapEntries);\n \n bean.addManagedProperty(property);\n mbf = new ManagedBeanFactory(bean);\n \n //testing with a property set\n assertNotNull(testBean = (TestBean) mbf.newInstance(getFacesContext()));\n \n //make sure bean instantiated properly. Get property back from bean.\n HashMap mapProperty = (HashMap)\n testBean.getMapProperty();\n \n assertTrue(mapProperty.get(\"name\") instanceof Integer);\n \n Integer integer = new Integer(\"23\");\n assertTrue(mapProperty.get(\"name\").equals(integer));\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope().equals(\"session\"));\n }", "public clientesBean() {\n this.clie = new Clientes();\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}", "ComponentBean getReferencedBean();", "public interface EJBContainerProvider\n{\n /**\n * Called by the embeddable container bootstrap process to find a suitable embeddable container\n * implementation. An embeddable container provider may deem itself as appropriate for the\n * embeddable application if any of the following are true : The javax.ejb.embeddable.initial\n * property was included in the Map passed to createEJBContainer and the value of the property is\n * the provider's implementation class. No javax.ejb.embeddable.initial property was specified.\n * If a provider does not qualify as the provider for the embeddable application, it must return null.\n * \n * @param properties\n * @return EJBContainer instance or null\n * @throws EJBException\n */\n EJBContainer createEJBContainer(Map<?, ?> properties) throws EJBException;\n}", "public Bean() {\n\t}", "public interface MemberService {\n //public void detail\n public MemberBean detail(String id);\n public List<MemberBean> find(String keyword);//List는 리턴값이 여러개라도 에러가 나지 않음\n public void join(MemberBean param);\n public List<MemberBean> list();\n public boolean login(MemberBean param);\n public void update(MemberBean param);\n public void delete(String id);\n public int count();\n\n\n\n}", "public SampleBean() {\n }", "@Remote\npublic interface PassengerStatefulEJBRemote {\n\n Passenger getPassenger();\n void createPassengers(String ssn, String firstName, String lastName, Integer frequentFlyerMiles, byte[] picture, Date dateOfBirth, PassengerType passengerType, Date lastFlight);\n void pickPassenger(long id);\n void setAddress(Address address);\n void addCreditCard(CreditCard creditCard);\n void addTicket(double price, Status status);\n void checkOut();\n}", "public interface BeanSelfAware {\n\n //设定代理到类内部,嵌套调用时使用代理进行方法调用\n void setSelf(Object obj);\n\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 }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seqTurnoController = context.getApplication().evaluateExpressionGet(context, \"#{turnoController}\", TurnoController.class);\n seqPessoaController = context.getApplication().evaluateExpressionGet(context, \"#{pessoaController}\", PessoaController.class);\n seqEscolaController = context.getApplication().evaluateExpressionGet(context, \"#{escolaController}\", EscolaController.class);\n seqAnoController = context.getApplication().evaluateExpressionGet(context, \"#{anoController}\", AnoController.class);\n }", "public PersonBean() {\n\t}", "public EntityPropertyBean() {}", "public interface TestSessionBeanLocal\n extends javax.ejb.EJBLocalObject\n{\n\n}", "@Override\r\n\tprotected <T> T getServiceBean() {\n\t\treturn null;\r\n\t}", "public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish the hello statement to user\r\n\t * @param name\r\n\t * @return String\r\n\t */\r\n\tpublic String sayHello(String name);\r\n\t/**\r\n\t * just to say hi\r\n\t */\r\n\tpublic void sayHi();\r\n\r\n}", "public ViewAllMedicalRecordsManagedBean() {\n }", "public ConsultarVacinacaoMBean() {\r\n }", "@Override\n public BeanWraper createBeanWraper() {\n \treturn newBeanWraper();\n }", "public ClasificacionBean() {\r\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n oferenteController = context.getApplication().evaluateExpressionGet(context, \"#{oferenteController}\", OferenteController.class);\n expedienteprocesoController = context.getApplication().evaluateExpressionGet(context, \"#{expedienteprocesoController}\", ExpedienteprocesoController.class);\n }", "public ProfessorDepartamentoMBean() {\r\n }", "EntityBeanDescriptor createEntityBeanDescriptor();", "ManagedConnectionFactory getManagedConnectionFactory()\n {\n return _mcf;\n }", "public MemberResource() {\n sessionBeanLookup = new SessionBeanLookup();\n \n memberEntitySessionBeanLocal = sessionBeanLookup.lookupMemberEntitySessionBeanLocal();\n }", "public interface InvoiceEntityHome\n extends javax.ejb.EJBHome\n{\n public static final String COMP_NAME=\"java:comp/env/ejb/InvoiceEntity\";\n public static final String JNDI_NAME=\"ejb/InvoiceEntity\";\n\n public com.csr.billing.ejb.InvoiceEntity create(com.csr.billing.ejb.InvoiceDTO invoice)\n throws javax.ejb.CreateException,java.rmi.RemoteException;\n\n public java.util.Collection findAll()\n throws javax.ejb.FinderException,java.rmi.RemoteException;\n\n public com.csr.billing.ejb.InvoiceEntity findByPrimaryKey(java.lang.Integer pk)\n throws javax.ejb.FinderException,java.rmi.RemoteException;\n\n}", "public interface ModelBeanInjector_102b0683\n\textends com.ibm.ws.ejbpersistence.beanextensions.EJBInjector {\n\t/**\n\t * ejbFindByNameOrDescription\n\t * @generated\n\t */\n\tpublic void ejbFindByNameOrDescription(\n\t\tjava.lang.String search,\n\t\tjavax.resource.cci.IndexedRecord record);\n\t/**\n\t * findModelsByDomainKey_Local\n\t * @generated\n\t */\n\tpublic void findModelsByDomainKey_Local(\n\t\tunbbs.persistence.model.DomainKey key,\n\t\tjavax.resource.cci.IndexedRecord record);\n}", "public EditorialBean() {\r\n editorialDAOImp = new EditorialDAOImp();\r\n editorial = new Editorial();\r\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seguimientoController = context.getApplication().evaluateExpressionGet(context, \"#{seguimientoController}\", SeguimientoController.class);\n programaAnoController = context.getApplication().evaluateExpressionGet(context, \"#{programaAnoController}\", ProgramaAnoController.class);\n }", "@Local\npublic interface PainterServiceBeanLocal {\n\n \n // ---------------- Create ------------------\n /**\n * Persists new Painter in the DB\n *\n * @param painter new Painter Entity class\n */\n public void createPainter(Painter painter);\n\n // ------------------- Retrieve -------------------\n /**\n * Finds and returns Painter by its ID\n *\n * @param id - PK of the Object being searched\n * @return found Painter Entity\n */\n public Painter findPainter(Integer id) throws NullPointerException;\n\n // ------------------- Update ---------------------\n /**\n * Updates ae entity by merging passing parameter if detached\n *\n * @param painter Painter to update\n * @throws IllegalArgumentException when the entity has not been found\n */\n public void updatePainter(Painter painter);\n // ------------------- Delete ---------------------\n /**\n * Deletes a passed Paitner from DB\n *\n * @param id of the Painter to be deleted\n * @throws IllegalArgumentException when the entity has not been found in the DB\n */\n public void removePainter(Integer id);\n\n /**\n * assigns a Painting to a Painter\n *\n * @param findPainterById id of the Painter of the Painting\n * @param painting Painting to be assigned\n */\n void assignPainting(Painter findPainterById, Painting painting);\n\n /**\n * assigns a Painting to a Painter\n *\n * @param chosenId id of the Painter of the Painting\n * @param id id of the Painting to be assigned\n */\n void assignPainting(int chosenId, Integer id);\n \n \n /**\n * Finds all Painters stored in the DB\n *\n * @return list of painters persisted\n */\n public List<Painter> findAllPainters();\n\n /**\n * Finds all painter's id in the DB\n *\n * @return list of all IDs\n */\n public List<Integer> findAllPaintersId();\n}", "public JavaBeans() {\r\n\t\tsuper();\r\n\t}", "public ClienteBean() {\n }", "public ListUserBean(){\n \n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "public interface DynamicBeanService extends BeanDefinitionRegistryPostProcessor, ApplicationContextAware, ApplicationListener<ApplicationEvent> {\n void refresh();\n}", "public interface DependentBean {\n void print();\n}", "<V> IBeanRuntime<V> registerExternalBean(V externalBean);", "public CrudBean() {\n }", "public InMemoryServiceInstancePersistence() {\n this.serviceInstances = new HashMap<>(); \n }", "void registerBeans(@Observes AfterBeanDiscovery event, BeanManager manager) {\n {\n AnnotatedType<Office> oat = manager.createAnnotatedType(Office.class);\n BeanAttributes<Office> oa = manager.createBeanAttributes(oat);\n InjectionTargetFactory<Office> factory = manager.getInjectionTargetFactory(oat);\n Bean<?> bean = manager.createBean(oa, Office.class, factory);\n event.addBean(bean);\n }\n // create a serializable synthetic class bean\n {\n AnnotatedType<SerializableOffice> oat = manager.createAnnotatedType(SerializableOffice.class);\n BeanAttributes<SerializableOffice> oa = manager.createBeanAttributes(oat);\n InjectionTargetFactory<SerializableOffice> factory = manager.getInjectionTargetFactory(oat);\n Bean<?> bean = manager.createBean(oa, SerializableOffice.class, factory);\n event.addBean(bean);\n }\n // create a synthetic decorator\n {\n AnnotatedType<VehicleDecorator> oat = manager.createAnnotatedType(VehicleDecorator.class);\n BeanAttributes<VehicleDecorator> oa = addDecoratorStereotype(manager.createBeanAttributes(oat));\n InjectionTargetFactory<VehicleDecorator> factory = manager.getInjectionTargetFactory(oat);\n Bean<?> bean = manager.createBean(oa, VehicleDecorator.class, factory);\n assertTrue(bean instanceof Decorator<?>);\n event.addBean(bean);\n }\n\n assertNotNull(zooBean);\n\n // create synthetic producer field\n {\n AnnotatedType<Zoo> zoo = manager.createAnnotatedType(Zoo.class);\n assertEquals(1, zoo.getFields().size());\n AnnotatedField<? super Zoo> field = zoo.getFields().iterator().next();\n BeanAttributes<Lion> attributes = Reflections.cast(starveOut(manager.createBeanAttributes(field)));\n ProducerFactory<Zoo> factory = getManagerImpl(manager).getProducerFactory(field, zooBean);\n event.addBean(manager.createBean(attributes, Zoo.class, factory));\n }\n // create synthetic producer method\n {\n AnnotatedType<Zoo> zoo = manager.createAnnotatedType(Zoo.class);\n AnnotatedMethod<? super Zoo> method = null;\n for (AnnotatedMethod<? super Zoo> _method : zoo.getMethods()) {\n if (_method.getBaseType().equals(Tiger.class)) {\n method = _method;\n }\n }\n assertNotNull(method);\n BeanAttributes<Tiger> attributes = Reflections.cast(starveOut(manager.createBeanAttributes(method)));\n ProducerFactory<Zoo> factory = getManagerImpl(manager).getProducerFactory(method, zooBean);\n event.addBean(manager.createBean(attributes, Zoo.class, factory));\n }\n }", "public JSFManagedBeanHistorialTurno() {\r\n }", "public ObjectName[] getUPNPServiceMBeans() {\n return UPNPServiceMBeans;\n }", "public interface ContactHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;\n\t\n /**\n\t * Finds an instance using a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findByUser(java.lang.Long userId) throws javax.ejb.FinderException;\n}", "@Override\n public void onPutBeansRaised() {\n }", "@Local\npublic interface LocalMaterialEJB {\n /**\n * Gets the amount of materials\n *\n * @return int\n * @throws litfitsserver.exceptions.ReadException\n */\n int countMaterials() throws ReadException;\n\n /**\n * Inserts a new material in the database\n *\n * @param material\n * @throws litfitsserver.exceptions.CreateException\n */\n void createMaterial(Material material) throws CreateException;\n\n /**\n * Edits a Material\n *\n * @param material\n * @throws litfitsserver.exceptions.UpdateException\n */\n void editMaterial(Material material) throws UpdateException;\n\n /**\n * Gets all the materials\n *\n * @return List\n * @throws litfitsserver.exceptions.ReadException\n */\n List<Material> findAllMaterials() throws ReadException;\n\n /**\n * Gets a Material by its name\n *\n * @param name\n * @return Material\n * @throws litfitsserver.exceptions.ReadException\n */\n Material findMaterial(String name) throws ReadException;\n\n /**\n * Deletes a material\n *\n * @param material\n * @throws litfitsserver.exceptions.ReadException\n * @throws litfitsserver.exceptions.DeleteException\n */\n void removeMaterial(Material material) throws ReadException, DeleteException;\n}", "@Override\r\n\tpublic MarcaOsEntity getModelBean() {\n\t\treturn currentBean;\r\n\t}", "public AfficherEtatManagedBean() {\r\n\r\n }", "public void testValueRefProperty() throws Exception {\n \n TestBean testBean = new TestBean();\n getFacesContext().getExternalContext().getSessionMap().put(\n \"TestRefBean\", testBean);\n \n ValueBindingImpl valueBinding = new\n ValueBindingImpl(new ApplicationImpl());\n \n valueBinding.setRef(\"TestRefBean.one\");\n valueBinding.setValue(getFacesContext(), \"one\");\n \n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"session\");\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"one\");\n property.setValue(\"#{TestRefBean.one}\");\n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n //testing with a property set\n assertNotNull(testBean = (TestBean) mbf.newInstance(getFacesContext()));\n \n //make sure bean instantiated properly. Get property back from bean.\n assertTrue(testBean.getOne().equals(\"one\"));\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope().equals(\"session\"));\n \n }", "public void testNoneScope() throws Exception {\n TestBean testBean = new TestBean();\n boolean exceptionThrown = false;\n \n // valueref in request scope\n // managed bean in none scope\n // this should fail\n getFacesContext().getExternalContext().getRequestMap().put(\n \"TestRefBean\", testBean);\n \n ValueBindingImpl valueBinding = \n new ValueBindingImpl(new ApplicationImpl());\n \n valueBinding.setRef(\"TestRefBean.one\");\n valueBinding.setValue(getFacesContext(), \"one\");\n \n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"none\");\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"one\");\n property.setValue(\"#{TestRefBean.one}\");\n \n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n exceptionThrown = false;\n try {\n mbf.newInstance(getFacesContext());\n fail(\"Should have thrown FacesException\");\n } catch (FacesException ex) {\n exceptionThrown = true;\n }\n assertTrue(exceptionThrown);\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope().equals(\"none\"));\n \n //cleanup\n getFacesContext().getExternalContext().getRequestMap().remove(\n \"TestRefBean\");\n \n // valueref in none scope\n // managed bean in none scope\n // this should pass\n ValueBinding valueBinding1 = \n getFacesContext().getApplication().createValueBinding(\"#{testBean.customerBean.name}\");\n exceptionThrown = false;\n try {\n valueBinding1.getValue(getFacesContext());\n } catch (FacesException ex) {\n exceptionThrown = true;\n }\n assertFalse(exceptionThrown);\n \n }", "public ClasseBean() {\r\n }", "public ClasseBean() {\r\n }", "public interface FMISComLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates a default instance of Session Bean: FMISBusiness\n\t */\n\tpublic FMISComLocal create() throws javax.ejb.CreateException;\n}", "public interface BeanProcessor {\n\n\n void process(Object bean, Class<?> clazz) throws Exception;\n\n //before all beans loaded.\n void beforeInit(Object bean, Class<?> clazz) throws Exception;\n\n //after all beans loaded.\n void afterInit(Object bean, Class<?> clazz) throws Exception;\n}", "public interface TopBean extends Serializable{\n}", "public interface ConectorLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Conector\n\t */\n\t static final String JNDI_NAME=\"ejb/co/com/telefonica/atiempo/ejb/eb/ConectorLocalHome\";\n\t \n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal create(\n\t\tjava.lang.Integer cod_conector)\n\t\tthrows javax.ejb.CreateException;\n\t/**\n\t * Finds an instance using a key for Entity Bean: Conector\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.ConectorKey primaryKey)\n\t\tthrows javax.ejb.FinderException;\n}", "@PostConstruct\n public void postConstruct() {\n \n }", "public void testIndexTypeProperty() throws Exception {\n bean = new ManagedBeanBean();\n property = new ManagedPropertyBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"session\");\n property.setPropertyName(\"indexIntegerProperties\");\n listEntries = new ListEntriesBean();\n listEntries.setValueClass(\"java.lang.Integer\");\n listEntries.addValue(\"23\");\n property.setListEntries(listEntries);\n \n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n //testing with a property set\n assertNotNull(testBean = (TestBean) mbf.newInstance(getFacesContext()));\n \n //make sure bean instantiated properly. Get property back from bean.\n ArrayList properties = (ArrayList) testBean.getIndexIntegerProperties();\n assertTrue(properties.get(1) instanceof Integer);\n \n Integer integer = new Integer(\"23\");\n assertTrue(properties.get(2).equals(integer));\n }", "public interface BeanFactory {\n\n// BeanDefinition getBeanDefinition(String beanID);\n\n Object getBean(String beanID);\n}" ]
[ "0.6492911", "0.6396808", "0.6386218", "0.6292133", "0.6235249", "0.62336814", "0.62207", "0.6208993", "0.60939366", "0.6068288", "0.60557014", "0.60521007", "0.6035021", "0.6035021", "0.6011713", "0.5982313", "0.5967643", "0.5942548", "0.5925586", "0.5910039", "0.5870931", "0.5846798", "0.5843875", "0.5832901", "0.58085114", "0.5806326", "0.57617277", "0.57533544", "0.57459277", "0.5732885", "0.57184064", "0.57133776", "0.5712724", "0.57055646", "0.5690404", "0.5686697", "0.5683956", "0.5666335", "0.56589854", "0.56572044", "0.5631314", "0.56109476", "0.55879045", "0.5581217", "0.55805385", "0.55792075", "0.5573924", "0.55706066", "0.55688107", "0.55595624", "0.55559593", "0.5539853", "0.55346483", "0.5531796", "0.5528822", "0.55281156", "0.5525148", "0.5509517", "0.5506723", "0.5503739", "0.55029815", "0.54982656", "0.5497498", "0.54923636", "0.5489764", "0.54815996", "0.54767203", "0.5474175", "0.5471387", "0.5469827", "0.54649365", "0.54649365", "0.54649365", "0.54649365", "0.54649365", "0.54649365", "0.54649067", "0.5463837", "0.54575664", "0.5453229", "0.5449119", "0.54419434", "0.5441156", "0.544061", "0.5440496", "0.5432143", "0.5430698", "0.54304695", "0.5426803", "0.5418378", "0.5415262", "0.54150605", "0.54150605", "0.54140824", "0.5409594", "0.5407844", "0.5406384", "0.54053426", "0.5404914", "0.5404217" ]
0.5450446
80
/ 2.5.3. Beans with no EL name interceptor has a name (NonPortable behavior)
private void validateInterceptor(IInterceptor interceptor) { if (interceptor.getName() != null) { ITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME); if (declaration == null) { declaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME); } if (declaration == null) { declaration = CDIUtil.getNamedStereotypeDeclaration(interceptor); } addError(CDIValidationMessages.INTERCEPTOR_HAS_NAME, CDIPreferences.INTERCEPTOR_HAS_NAME, declaration, interceptor.getResource()); } /* * 2.6.1. Declaring an alternative * - interceptor is an alternative (Non-Portable behavior) */ if (interceptor.isAlternative()) { ITextSourceReference declaration = interceptor.getAlternativeDeclaration(); if (declaration == null) { declaration = interceptor.getInterceptorAnnotation(); } if(declaration == null) { //for custom implementations declaration = interceptor.getNameLocation(); } addError(CDIValidationMessages.INTERCEPTOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, interceptor .getResource()); } /* * 3.3.2. Declaring a producer method * - interceptor has a method annotated @Produces * * 3.4.2. Declaring a producer field * - interceptor has a field annotated @Produces */ Set<IProducer> producers = interceptor.getProducers(); for (IProducer producer : producers) { addError(CDIValidationMessages.PRODUCER_IN_INTERCEPTOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), interceptor.getResource()); } /* * 9.2. Declaring the interceptor bindings of an interceptor * - interceptor declared using @Interceptor does not declare any interceptor binding (Non-Portable behavior) */ Set<IInterceptorBinding> bindings = interceptor.getInterceptorBindings(); if(bindings.isEmpty()) { ITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME); if(declaration!=null) { addError(CDIValidationMessages.MISSING_INTERCEPTOR_BINDING, CDIPreferences.MISSING_INTERCEPTOR_BINDING, declaration, interceptor.getResource()); } } else { /* * 9.2. Declaring the interceptor bindings of an interceptor * - interceptor for lifecycle callbacks declares an interceptor binding type that is defined @Target({TYPE, METHOD}) */ for (IInterceptorBinding binding : bindings) { boolean markedAsWrong = false; IAnnotationDeclaration target = binding.getAnnotationDeclaration(CDIConstants.TARGET_ANNOTATION_TYPE_NAME); if(target!=null) { try { IMemberValuePair[] ps = target.getDeclaration().getMemberValuePairs(); if (ps != null && ps.length==1) { IMemberValuePair pair = ps[0]; Object value = pair.getValue(); if(value != null && value instanceof Object[]) { Object[] values = (Object[]) value; if(values.length>1) { Set<IBeanMethod> methods = interceptor.getAllMethods(); for (IBeanMethod method : methods) { if(method.isLifeCycleCallbackMethod()) { ITextSourceReference declaration = CDIUtil.getAnnotationDeclaration(interceptor, binding); if(declaration==null) { declaration = interceptor.getInterceptorAnnotation(); } addError(CDIValidationMessages.ILLEGAL_LIFECYCLE_CALLBACK_INTERCEPTOR_BINDING, CDIPreferences.ILLEGAL_LIFECYCLE_CALLBACK_INTERCEPTOR_BINDING, declaration, interceptor.getResource()); markedAsWrong = true; break; } } } } } } catch (JavaModelException e) { CDICorePlugin.getDefault().logError(e); } } if(markedAsWrong) { break; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateBeanName(IBean bean) {\r\n \t\tString name = bean.getName();\r\n \t\tif(name!=null && !name.startsWith(\"/\")) {\r\n \t\t\t// Collect all relations between the bean and other CDI elements.\r\n \t\t\tgetValidationContext().addVariableNameForELValidation(name);\r\n \t\t\tgetValidationContext().addLinkedCoreResource(name, bean.getSourcePath(), true);\r\n \t\t\t/*\r\n \t\t\t *\t5.3.1. Ambiguous EL names\r\n \t\t\t *\t- All unresolvable ambiguous EL names are detected by the container when the application is initialized.\r\n \t\t\t * Suppose two beans are both available for injection in a certain war, and either:\r\n \t\t\t * • the two beans have the same EL name and the name is not resolvable, or\r\n \t\t\t */\r\n \t\t\tSet<IBean> beans = cdiProject.getBeans(name, true);\r\n \t\t\tif(beans.size()>1 && beans.contains(bean)) {\r\n \t\t\t\tITextSourceReference reference = bean.getNameLocation();\r\n \t\t\t\tif(reference==null) {\r\n \t\t\t\t\treference = CDIUtil.getNamedDeclaration(bean);\r\n \t\t\t\t}\r\n \t\t\t\tStringBuffer sb = new StringBuffer(bean.getSimpleJavaName());\r\n \t\t\t\tfor (IBean iBean : beans) {\r\n \t\t\t\t\tif(bean!=iBean) {\r\n \t\t\t\t\t\tsb.append(\", \").append(iBean.getSimpleJavaName());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DUPLCICATE_EL_NAME, sb.toString()), CDIPreferences.AMBIGUOUS_EL_NAMES, reference, bean.getResource());\r\n \t\t\t} else {\r\n \t\t\t\t/*\r\n \t\t\t\t * • the EL name of one bean is of the form x.y, where y is a valid bean EL name, and x is the EL name of the other bean,\r\n \t\t\t\t * the container automatically detects the problem and treats it as a deployment problem. \r\n \t\t\t\t */\r\n \t\t\t\tif(name.indexOf('.')>0) {\r\n \t\t\t\t\tStringTokenizer st = new StringTokenizer(name, \".\", false);\r\n \t\t\t\t\tStringBuffer xName = new StringBuffer();\r\n \t\t\t\t\twhile(st.hasMoreTokens()) {\r\n \t\t\t\t\t\tif(xName.length()>0) {\r\n \t\t\t\t\t\t\txName.append('.');\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\txName.append(st.nextToken());\r\n \t\t\t\t\t\tif(st.hasMoreTokens()) {\r\n \t\t\t\t\t\t\tString xNameAsString = xName.toString();\r\n \t\t\t\t\t\t\tSet<IBean> xBeans = cdiProject.getBeans(xNameAsString, true);\r\n \t\t\t\t\t\t\tif(!xBeans.isEmpty()) {\r\n \t\t\t\t\t\t\t\tString yName = name.substring(xNameAsString.length()+1);\r\n \t\t\t\t\t\t\t\tIStatus status = JavaConventions.validateJavaTypeName(yName, CompilerOptions.VERSION_1_6, CompilerOptions.VERSION_1_6);\r\n \t\t\t\t\t\t\t\tif (status.getSeverity() != IStatus.ERROR) {\r\n \t\t\t\t\t\t\t\t\tITextSourceReference reference = bean.getNameLocation();\r\n \t\t\t\t\t\t\t\t\tif(reference==null) {\r\n \t\t\t\t\t\t\t\t\t\treference = CDIUtil.getNamedDeclaration(bean);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.UNRESOLVABLE_EL_NAME, name, yName, xNameAsString, xBeans.iterator().next().getSimpleJavaName()), CDIPreferences.AMBIGUOUS_EL_NAMES, reference, bean.getResource());\r\n \t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "void intercept(BeanInvocation<_B> invocation) throws Exception;", "@Override\n\tpublic String getName() {\n\t\treturn \"Manual Inject\";\n\t}", "@Override\n public void setBeanName(String name) {\n System.out.println(\"## setBeanName(name) My bean Name is : \" + name);\n }", "@Override\n public String named() {\n return \"soul\";\n }", "private static String beanName(Object bean) {\r\n\t\tString fullClassName = bean.getClass().getName();\r\n\t\tString classNameTemp = fullClassName.substring(fullClassName\r\n\t\t\t\t.lastIndexOf(\".\") + 1, fullClassName.length());\r\n\t\treturn classNameTemp.substring(0, 1) + classNameTemp.substring(1);\r\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "public InternalNameServiceHandler() {\n }", "public interface BeanInterceptor<_B> {\n\n /**\n * This is invoked/executed by the framework.\n * The implementation must call <code>invocation.proceed()</code> to continue the interceptor chain.\n * The implementation may throw any Exception in which case the interceptor chain is aborted.\n */\n void intercept(BeanInvocation<_B> invocation) throws Exception;\n}", "@Nullable\n protected final String getBeanName() {\n return this.beanName;\n }", "public java.lang.String getBeanIdentifier();", "public interface IInterceptor {\n /* renamed from: a */\n void mo26940a(HttpRequest cVar, IResponse cVar2, ConcurrentBundle aVar);\n}", "public interface Nameable\n{\n\t/**\n\t * Returns the name of the NamedObj\n\t * @see NamedObj\n\t * @return The name of the NamedObj\n\t * */\n\tpublic String getName();\n\t\n\t/**\n\t * Set the name of the NamedObj. This must be unique inside the context of its container.\n\t * @param name Name of the NamedObj\n\t * @throws Exception if name it is not unique\n\t * @see NamedObj\n\t * */\n\tpublic void setName(String name) throws Exception;\n}", "public String getName()\r\n/* 91: */ {\r\n/* 92:112 */ return k_() ? aL() : \"container.minecart\";\r\n/* 93: */ }", "@Import(\"name\")\n\tString getName();", "@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }", "@Override\n\tprotected String buildDefaultBeanName(BeanDefinition definition) {\n\t\tClass<?> clasz = null;\n\t\ttry {\n\t\t\tclasz = ClassUtils.forName(definition.getBeanClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tif (clasz == null) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tif (clasz.getAnnotation(Controller.class) != null) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tClass<?> interfaceClass = ClassUtils.getImplementSuitInterface(clasz);\n\t\tif (interfaceClass != null) {\n\t\t\tString shortClassName = ClassUtils.getShortClassName(interfaceClass);\n\t\t\treturn Introspector.decapitalize(shortClassName);\n\t\t} else {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t}", "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}", "default String lambdaFieldName(T bean) {\n SerializedLambda serializedLambda = serialized();\n if (MethodHandleInfo.REF_invokeVirtual != serializedLambda.getImplMethodKind()) {\n throw new RuntimeException(\"unsupported lambda impl method kind \" + serializedLambda.getImplMethodKind()\n + \". Only work for [Class::Method] struct's lambda\");\n }\n String getter = serializedLambda.getImplMethodName();\n String fieldName = getter;\n if (getter.startsWith(\"get\")) {\n fieldName = Introspector.decapitalize(getter.substring(3));\n } else if (getter.startsWith(\"is\")) {\n String guessFieldName = Introspector.decapitalize(getter.substring(2));\n if (null == bean) {\n fieldName = guessFieldName;\n } else {\n try {\n bean.getClass().getDeclaredField(getter);\n fieldName = getter;\n } catch (NoSuchFieldException e) {\n // ignore substring when the field name is \"isXxx\"\n fieldName = guessFieldName;\n }\n }\n }\n return fieldName;\n }", "public UseBeanBaseTag()\n {\n super();\n initReservedAttributes();\n }", "@Override\n\tpublic BeanEntity getBeanDefinition(String name) {\n\t\treturn null;\n\t}", "String getControllingAttributeName();", "@Override\n public String getName() {\n return null;\n }", "private AddHarnessIdInterceptor() {}", "@Override\n public String getName() {\n return null;\n }", "BaseComponent getComponentName();", "private void validateInterceptorBindings(IClassBean bean) {\r\n \t\ttry {\r\n \t\t\tif(hasConflictedInterceptorBindings(bean)) {\r\n \t\t\t\t//TODO consider putting markers to interceptor bindings/stereotype declarations.\r\n \t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\taddError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS, reference, bean.getResource());\r\n \t\t\t}\r\n \t\t\tSet<IBeanMethod> methods = bean.getAllMethods();\r\n \t\t\tfor (IBeanMethod method : methods) {\r\n \t\t\t\tif(hasConflictedInterceptorBindings(method)) {\r\n \t\t\t\t\t//TODO consider putting markers to interceptor bindings/stereotype declarations.\r\n \t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(method.getMethod().getNameRange());\r\n \t\t\t\t\taddError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS, reference, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (JavaModelException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t} catch (CoreException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t}\r\n \t}", "@Override\n public String getName() {\n return null;\n }", "@Override\n public String getName() {\n return null;\n }", "@Override\n public String getName() {\n return null;\n }", "private static String getWrapperName(String name) {\n Class<?> toRet = WrapperClassGenerator.wrapperClassMap.get(name);\n if (toRet == null)\n return name;\n return toRet.getName();\n }", "public String getName() {\n/* 209 */ return this.name;\n/* */ }", "public BeanDefinitionHolder getDecoratedDefinition()\n/* */ {\n/* 221 */ return this.decoratedDefinition;\n/* */ }", "@Override\n public String getName() {\n return null;\n }", "@Override\n\tpublic void setBeanName(String beanName) {\n\t\tSystem.out.println(\"Bean Name:\"+beanName);\n\t\t\n\t}", "@Override\n\tpublic void setBeanName(String beanname) {\n\t\t\n\t\tSystem.out.println(\"Bean name is : \" + beanname);\n\t\t\n\t}", "public String generateBeanNameInner(BeanDefinition definition, BeanDefinitionRegistry registry) {\n\t\tString beanName = super.generateBeanName(definition, registry);\n\t\tClass<?> clasz = null;\n\t\ttry {\n\t\t\tclasz = ClassUtils.forName(definition.getBeanClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn beanName;\n\t\t}\n\t\tif (clasz == null) {\n\t\t\treturn beanName;\n\t\t}\n\n\t\tboolean nameRandom = false;\n\t\tfor (Annotation annotation : clasz.getAnnotations()) {\n\t\t\tif (annotation.annotationType().getSimpleName().equals(BeanNameRandom.class.getSimpleName())) {\n\t\t\t\tnameRandom = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (nameRandom) {\n\t\t\treturn beanName + \"_\" + RandomStringUtils.randomNumeric(10);\n\t\t} else {\n\t\t\treturn beanName;\n\t\t}\n\t}", "@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }", "ComponentBuilder named(String label);", "@JsonDecoder.OnInjected\n\t\tpublic void onInjected() {\n\t\t\tif (Data.getVer(BCU_VERSION) < Data.getVer(\"0.6.4.0\"))\n\t\t\t\tnames.put(name);\n\t\t}", "protected NamedHandler(String name) {\n\t\tif (name == null)\n\t\t\tname = \"\";\n\t\tthis.name = name;\n\t}", "@Override\n public boolean hasCustomName() {\n return false;\n }", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn null;\r\n\t}", "@Override\n public java.lang.String getBeanIdentifier() {\n return _muQuxianQujianLocalService.getBeanIdentifier();\n }", "@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }", "@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }", "@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn null;\r\n\t}", "@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }", "@Override\n\tpublic String name() {\n\t\treturn null;\n\t}", "public String getName() {\n/* 57 */ return this.name;\n/* */ }", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "public Object elGetReference(Object bean);", "NameTagVisibility getNameTagVisibility();", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "@Override\r\n\tpublic String getBind_housing_property_ind() {\n\t\treturn super.getBind_housing_property_ind();\r\n\t}", "@Override\n public String visit(NameExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n public String getName() {\n return FetchingIdlingResource.class.getSimpleName();\n }", "String generateBeanName(BeanDefinitionV5 definition, BeanDefinitionRegistryV5 registry);", "@Override\r\npublic void attributeReplaced(HttpSessionBindingEvent arg0) {\n\t\r\n}", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "public String getBeanName() {\r\n\t\treturn beanName;\r\n\t}", "public void scanCtNamedElement(CtNamedElement e) {\n ((CtNamedElement) (other)).setSimpleName(e.getSimpleName());\n super.scanCtNamedElement(e);\n }", "@Bean\n\tpublic LocaleChangeInterceptor localeChangeInterceptor() {\n\t\tLocaleChangeInterceptor lci = new LocaleChangeInterceptor();\n\t\tlci.setParamName(\"lang\");\n\t\tlog.info(\"Setting LocaleChangeInterceptor \" + lci.toString());\n\t\treturn lci;\n\t}", "public String getName () { return this.name; }", "public String getName(){return null;}", "public String getName()\r\n/* 24: */ {\r\n/* 25:20 */ return this.name;\r\n/* 26: */ }", "public String getName()\n/* */ {\n/* 109 */ return this.name;\n/* */ }", "public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }", "public String getName() {\n/* */ return this.field_176894_i;\n/* */ }", "@Override \n public String getName() {\n return NAME;\n }", "@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _vanBanPhapQuyLocalService.getBeanIdentifier();\n\t}", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}", "@ProviderType\npublic interface ServiceUserMapped {\n\n\n /**\n * The name of the osgi property holding the sub service name.\n */\n String SUBSERVICENAME = \"subServiceName\";\n\n}", "EPREFIX_TYPE getName();", "@Override\r\n\tpublic String getName()\r\n\t{\n\t\treturn null;\r\n\t}", "public StandardDTEDNameTranslator() {}", "public JExpr getNameExpr() { return _nameExpr; }", "@Override\n protected String getNameImpl()\n {\n return _nameExpr != null ? _nameExpr.getName() : null;\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void testIllegalPeriodInName() throws Exception\r\n {\r\n try\r\n {\r\n new ComponentDirective( \r\n \"fred.blogs\", m_activation, m_collection, m_lifestyle, m_classname, \r\n m_categories, m_context, null, null );\r\n fail( \"Did not throw an IllegalArgumentException for a name with a period.\" ); \r\n }\r\n catch( IllegalArgumentException e )\r\n {\r\n // ok\r\n }\r\n }" ]
[ "0.5620218", "0.5406796", "0.5393033", "0.52630275", "0.5254561", "0.5236678", "0.5152231", "0.5152231", "0.5128626", "0.51252574", "0.50669247", "0.50493354", "0.5041847", "0.5028284", "0.5025159", "0.49974388", "0.499187", "0.49679953", "0.49334005", "0.49234778", "0.4894771", "0.48925865", "0.4881617", "0.48681867", "0.48508742", "0.48398802", "0.4839557", "0.47997853", "0.47946554", "0.47946554", "0.47946554", "0.4794105", "0.47924504", "0.4785871", "0.47814846", "0.4773966", "0.47650453", "0.47644076", "0.47580248", "0.47459638", "0.47424188", "0.47274512", "0.47260517", "0.47218797", "0.47215647", "0.4709337", "0.47090515", "0.47090515", "0.47090515", "0.47081798", "0.47081798", "0.47081798", "0.47023943", "0.47014484", "0.4693985", "0.46918413", "0.46918413", "0.46903566", "0.46882826", "0.46881625", "0.46770343", "0.46742523", "0.46739715", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46650648", "0.46618646", "0.46540803", "0.4650368", "0.46452236", "0.46435586", "0.4640953", "0.46389693", "0.4635358", "0.46255994", "0.46207097", "0.4618617", "0.4615268", "0.46132365", "0.46092993", "0.46092215", "0.45998347", "0.4598152", "0.45969468", "0.45812798", "0.4579178", "0.45780793", "0.45778167", "0.45734328", "0.45721826", "0.45716578", "0.45689642" ]
0.0
-1
/ 2.5.3. Beans with no EL name decorator has a name (NonPortable behavior)
private void validateDecorator(IDecorator decorator) { if (decorator.getName() != null) { ITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME); if (declaration == null) { declaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME); } if (declaration == null) { declaration = CDIUtil.getNamedStereotypeDeclaration(decorator); } addError(CDIValidationMessages.DECORATOR_HAS_NAME, CDIPreferences.DECORATOR_HAS_NAME, declaration, decorator.getResource()); } /* * 2.6.1. Declaring an alternative * - decorator is an alternative (Non-Portable behavior) */ if (decorator.isAlternative()) { ITextSourceReference declaration = decorator.getAlternativeDeclaration(); if (declaration == null) { declaration = decorator.getDecoratorAnnotation(); } if(declaration == null) { //for custom implementations declaration = decorator.getNameLocation(); } addError(CDIValidationMessages.DECORATOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, decorator.getResource()); } /* * 3.3.2. Declaring a producer method * - decorator has a method annotated @Produces * * 3.4.2. Declaring a producer field * - decorator has a field annotated @Produces */ Set<IProducer> producers = decorator.getProducers(); for (IProducer producer : producers) { addError(CDIValidationMessages.PRODUCER_IN_DECORATOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), decorator.getResource()); } Set<IInjectionPoint> injections = decorator.getInjectionPoints(); Set<ITextSourceReference> delegates = new HashSet<ITextSourceReference>(); IInjectionPoint delegate = null; for (IInjectionPoint injection : injections) { ITextSourceReference delegateAnnotation = injection.getDelegateAnnotation(); if(delegateAnnotation!=null) { if(injection instanceof IInjectionPointField) { delegate = injection; delegates.add(delegateAnnotation); } if(injection instanceof IInjectionPointParameter) { if(((IInjectionPointParameter) injection).getBeanMethod().getAnnotation(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME)==null) { delegate = injection; delegates.add(delegateAnnotation); } else { /* * 8.1.2. Decorator delegate injection points * - injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate */ addError(CDIValidationMessages.ILLEGAL_INJECTION_POINT_DELEGATE, CDIPreferences.ILLEGAL_INJECTION_POINT_DELEGATE, delegateAnnotation, decorator.getResource()); } } } } if(delegates.size()>1) { /* * 8.1.2. Decorator delegate injection points * - decorator has more than one delegate injection point */ for (ITextSourceReference declaration : delegates) { addError(CDIValidationMessages.MULTIPLE_DELEGATE, CDIPreferences.MULTIPLE_DELEGATE, declaration, decorator.getResource()); } } else if(delegates.isEmpty()) { /* * 8.1.2. Decorator delegate injection points * - decorator does not have a delegate injection point */ IAnnotationDeclaration declaration = decorator.getDecoratorAnnotation(); addError(CDIValidationMessages.MISSING_DELEGATE, CDIPreferences.MISSING_DELEGATE, declaration, decorator.getResource()); } /* * 8.1.3. Decorator delegate injection points * - delegate type does not implement or extend a decorated type of the decorator, or specifies different type parameters */ if(delegate!=null) { IParametedType delegateParametedType = delegate.getType(); if(delegateParametedType!=null) { IType delegateType = delegateParametedType.getType(); if(delegateType != null) { if(!checkTheOnlySuper(decorator, delegateParametedType)) { Set<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes(); List<String> supers = null; if(!delegateType.isReadOnly()) { getValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false); } for (IParametedType decoratedParametedType : decoratedParametedTypes) { IType decoratedType = decoratedParametedType.getType(); if(decoratedType==null) { continue; } if(!decoratedType.isReadOnly()) { getValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false); } String decoratedTypeName = decoratedType.getFullyQualifiedName(); // Ignore the type of the decorator class bean if(decoratedTypeName.equals(decorator.getBeanClass().getFullyQualifiedName())) { continue; } if(decoratedTypeName.equals("java.lang.Object")) { //$NON-NLS-1$ continue; } if(supers==null) { supers = getSuppers(delegateParametedType); } if(supers.contains(decoratedParametedType.getSignature())) { continue; } else { ITextSourceReference declaration = delegate.getDelegateAnnotation(); if(delegateParametedType instanceof ITypeDeclaration) { declaration = (ITypeDeclaration)delegateParametedType; } String typeName = Signature.getSignatureSimpleName(decoratedParametedType.getSignature()); addError(MessageFormat.format(CDIValidationMessages.DELEGATE_HAS_ILLEGAL_TYPE, typeName), CDIPreferences.DELEGATE_HAS_ILLEGAL_TYPE, declaration, decorator.getResource()); break; } } } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateBeanName(IBean bean) {\r\n \t\tString name = bean.getName();\r\n \t\tif(name!=null && !name.startsWith(\"/\")) {\r\n \t\t\t// Collect all relations between the bean and other CDI elements.\r\n \t\t\tgetValidationContext().addVariableNameForELValidation(name);\r\n \t\t\tgetValidationContext().addLinkedCoreResource(name, bean.getSourcePath(), true);\r\n \t\t\t/*\r\n \t\t\t *\t5.3.1. Ambiguous EL names\r\n \t\t\t *\t- All unresolvable ambiguous EL names are detected by the container when the application is initialized.\r\n \t\t\t * Suppose two beans are both available for injection in a certain war, and either:\r\n \t\t\t * • the two beans have the same EL name and the name is not resolvable, or\r\n \t\t\t */\r\n \t\t\tSet<IBean> beans = cdiProject.getBeans(name, true);\r\n \t\t\tif(beans.size()>1 && beans.contains(bean)) {\r\n \t\t\t\tITextSourceReference reference = bean.getNameLocation();\r\n \t\t\t\tif(reference==null) {\r\n \t\t\t\t\treference = CDIUtil.getNamedDeclaration(bean);\r\n \t\t\t\t}\r\n \t\t\t\tStringBuffer sb = new StringBuffer(bean.getSimpleJavaName());\r\n \t\t\t\tfor (IBean iBean : beans) {\r\n \t\t\t\t\tif(bean!=iBean) {\r\n \t\t\t\t\t\tsb.append(\", \").append(iBean.getSimpleJavaName());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DUPLCICATE_EL_NAME, sb.toString()), CDIPreferences.AMBIGUOUS_EL_NAMES, reference, bean.getResource());\r\n \t\t\t} else {\r\n \t\t\t\t/*\r\n \t\t\t\t * • the EL name of one bean is of the form x.y, where y is a valid bean EL name, and x is the EL name of the other bean,\r\n \t\t\t\t * the container automatically detects the problem and treats it as a deployment problem. \r\n \t\t\t\t */\r\n \t\t\t\tif(name.indexOf('.')>0) {\r\n \t\t\t\t\tStringTokenizer st = new StringTokenizer(name, \".\", false);\r\n \t\t\t\t\tStringBuffer xName = new StringBuffer();\r\n \t\t\t\t\twhile(st.hasMoreTokens()) {\r\n \t\t\t\t\t\tif(xName.length()>0) {\r\n \t\t\t\t\t\t\txName.append('.');\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\txName.append(st.nextToken());\r\n \t\t\t\t\t\tif(st.hasMoreTokens()) {\r\n \t\t\t\t\t\t\tString xNameAsString = xName.toString();\r\n \t\t\t\t\t\t\tSet<IBean> xBeans = cdiProject.getBeans(xNameAsString, true);\r\n \t\t\t\t\t\t\tif(!xBeans.isEmpty()) {\r\n \t\t\t\t\t\t\t\tString yName = name.substring(xNameAsString.length()+1);\r\n \t\t\t\t\t\t\t\tIStatus status = JavaConventions.validateJavaTypeName(yName, CompilerOptions.VERSION_1_6, CompilerOptions.VERSION_1_6);\r\n \t\t\t\t\t\t\t\tif (status.getSeverity() != IStatus.ERROR) {\r\n \t\t\t\t\t\t\t\t\tITextSourceReference reference = bean.getNameLocation();\r\n \t\t\t\t\t\t\t\t\tif(reference==null) {\r\n \t\t\t\t\t\t\t\t\t\treference = CDIUtil.getNamedDeclaration(bean);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.UNRESOLVABLE_EL_NAME, name, yName, xNameAsString, xBeans.iterator().next().getSimpleJavaName()), CDIPreferences.AMBIGUOUS_EL_NAMES, reference, bean.getResource());\r\n \t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private static String beanName(Object bean) {\r\n\t\tString fullClassName = bean.getClass().getName();\r\n\t\tString classNameTemp = fullClassName.substring(fullClassName\r\n\t\t\t\t.lastIndexOf(\".\") + 1, fullClassName.length());\r\n\t\treturn classNameTemp.substring(0, 1) + classNameTemp.substring(1);\r\n\t}", "@Override\n public String named() {\n return \"soul\";\n }", "public String generateBeanNameInner(BeanDefinition definition, BeanDefinitionRegistry registry) {\n\t\tString beanName = super.generateBeanName(definition, registry);\n\t\tClass<?> clasz = null;\n\t\ttry {\n\t\t\tclasz = ClassUtils.forName(definition.getBeanClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn beanName;\n\t\t}\n\t\tif (clasz == null) {\n\t\t\treturn beanName;\n\t\t}\n\n\t\tboolean nameRandom = false;\n\t\tfor (Annotation annotation : clasz.getAnnotations()) {\n\t\t\tif (annotation.annotationType().getSimpleName().equals(BeanNameRandom.class.getSimpleName())) {\n\t\t\t\tnameRandom = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (nameRandom) {\n\t\t\treturn beanName + \"_\" + RandomStringUtils.randomNumeric(10);\n\t\t} else {\n\t\t\treturn beanName;\n\t\t}\n\t}", "@Import(\"name\")\n\tString getName();", "@Override\n\tpublic String getName() {\n\t\treturn \"Manual Inject\";\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "ComponentBuilder named(String label);", "@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }", "public String getName()\r\n/* 91: */ {\r\n/* 92:112 */ return k_() ? aL() : \"container.minecart\";\r\n/* 93: */ }", "public interface Nameable\n{\n\t/**\n\t * Returns the name of the NamedObj\n\t * @see NamedObj\n\t * @return The name of the NamedObj\n\t * */\n\tpublic String getName();\n\t\n\t/**\n\t * Set the name of the NamedObj. This must be unique inside the context of its container.\n\t * @param name Name of the NamedObj\n\t * @throws Exception if name it is not unique\n\t * @see NamedObj\n\t * */\n\tpublic void setName(String name) throws Exception;\n}", "public ProductDecorator() {}", "NameTagVisibility getNameTagVisibility();", "public BeanDefinitionHolder getDecoratedDefinition()\n/* */ {\n/* 221 */ return this.decoratedDefinition;\n/* */ }", "@Override\n\tpublic BeanEntity getBeanDefinition(String name) {\n\t\treturn null;\n\t}", "String generateBeanName(BeanDefinitionV5 definition, BeanDefinitionRegistryV5 registry);", "@Nullable\n protected final String getBeanName() {\n return this.beanName;\n }", "void registerAlias( String beanName, String alias );", "@Override\n public void setBeanName(String name) {\n System.out.println(\"## setBeanName(name) My bean Name is : \" + name);\n }", "BaseComponent getComponentName();", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "public java.lang.String getBeanIdentifier();", "@Override\n\tpublic String name() {\n\t\treturn null;\n\t}", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "@Override\n public String getName() {\n return null;\n }", "default String lambdaFieldName(T bean) {\n SerializedLambda serializedLambda = serialized();\n if (MethodHandleInfo.REF_invokeVirtual != serializedLambda.getImplMethodKind()) {\n throw new RuntimeException(\"unsupported lambda impl method kind \" + serializedLambda.getImplMethodKind()\n + \". Only work for [Class::Method] struct's lambda\");\n }\n String getter = serializedLambda.getImplMethodName();\n String fieldName = getter;\n if (getter.startsWith(\"get\")) {\n fieldName = Introspector.decapitalize(getter.substring(3));\n } else if (getter.startsWith(\"is\")) {\n String guessFieldName = Introspector.decapitalize(getter.substring(2));\n if (null == bean) {\n fieldName = guessFieldName;\n } else {\n try {\n bean.getClass().getDeclaredField(getter);\n fieldName = getter;\n } catch (NoSuchFieldException e) {\n // ignore substring when the field name is \"isXxx\"\n fieldName = guessFieldName;\n }\n }\n }\n return fieldName;\n }", "public void testIllegalPeriodInName() throws Exception\r\n {\r\n try\r\n {\r\n new ComponentDirective( \r\n \"fred.blogs\", m_activation, m_collection, m_lifestyle, m_classname, \r\n m_categories, m_context, null, null );\r\n fail( \"Did not throw an IllegalArgumentException for a name with a period.\" ); \r\n }\r\n catch( IllegalArgumentException e )\r\n {\r\n // ok\r\n }\r\n }", "@Override\n public String getName() {\n return null;\n }", "@Override\n public String getName() {\n return null;\n }", "@Override\n public String getName() {\n return null;\n }", "@Override\n public String getName() {\n return null;\n }", "public String getName () { return this.name; }", "public UseBeanBaseTag()\n {\n super();\n initReservedAttributes();\n }", "public interface AbstractComponentDecorator extends Component {\n void setComponent(Component component);\n}", "public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}", "public Object elGetValue(Object bean);", "public String getName() {\n/* 57 */ return this.name;\n/* */ }", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public Object elGetReference(Object bean);", "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}", "@AutoEscape\n public String getName();", "@Override\r\n\tpublic String getName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getName() {\r\n\t\treturn null;\r\n\t}", "@Override\n public String getName() {\n return null;\n }", "public String getName()\r\n/* 24: */ {\r\n/* 25:20 */ return this.name;\r\n/* 26: */ }", "@Override\n\tprotected String buildDefaultBeanName(BeanDefinition definition) {\n\t\tClass<?> clasz = null;\n\t\ttry {\n\t\t\tclasz = ClassUtils.forName(definition.getBeanClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tif (clasz == null) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tif (clasz.getAnnotation(Controller.class) != null) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tClass<?> interfaceClass = ClassUtils.getImplementSuitInterface(clasz);\n\t\tif (interfaceClass != null) {\n\t\t\tString shortClassName = ClassUtils.getShortClassName(interfaceClass);\n\t\t\treturn Introspector.decapitalize(shortClassName);\n\t\t} else {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t}", "public String getName() {\n/* 209 */ return this.name;\n/* */ }", "@JSProperty\n String getName();", "String getControllingAttributeName();", "Object getName() {\n return name;\n }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn null;\n\t}", "@Override\n\tString name();", "@Override\n\tpublic String getElementName() {\n\t\treturn null;\n\t}", "public $type $name () {\n }", "@Override\n public String name() {\n return name;\n }", "private static String getWrapperName(String name) {\n Class<?> toRet = WrapperClassGenerator.wrapperClassMap.get(name);\n if (toRet == null)\n return name;\n return toRet.getName();\n }", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "@Override \n public String getName() {\n return NAME;\n }", "public String getName()\n/* */ {\n/* 109 */ return this.name;\n/* */ }", "public InputDecorator getInputDecorator()\n/* */ {\n/* 604 */ return this._inputDecorator;\n/* */ }", "public String name() { return name; }", "public String getName() { return name.get(); }", "public interface Named {\n\n /**\n *\n * @return Name of the object\n */\n @NotNull\n String getName();\n}", "public String getName(){return null;}", "@Override\n protected String getNameImpl()\n {\n return _nameExpr != null ? _nameExpr.getName() : null;\n }", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Override\n public String getName() {\n return name;\n }", "@Override\n public String getName() {\n return name;\n }", "void register(String name, Object bean);", "@Override\n public String getName() {\n return name();\n }", "@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}", "public JExpr getNameExpr() { return _nameExpr; }", "@JSProperty(\"name\")\n @Nullable\n String getName();", "@Override\r\n\tpublic String getName()\r\n\t{\n\t\treturn null;\r\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "@Test\n public void getName() throws Exception {\n String name = new AttributeKey<Number>(Number.class, \"keyName\").getName();\n assertThat(name, is(\"keyName\"));\n }", "@Override\r\n\tprotected String getName() {\n\t\treturn NAME;\r\n\t}", "public String getName() { return name; }", "public String getName() {\n/* */ return this.field_176894_i;\n/* */ }", "@Override\n\t\tpublic String getInstanceName() {\n\t\t\treturn null;\n\t\t}", "abstract public String named();", "public String getName(){ return name; }", "public interface BeanFactory {\n\n /**\n * @param name\n * @return\n * @throws Exception\n */\n Object getBean(String name) throws Exception;\n\n}", "static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }", "public String getName(){return this.name;}" ]
[ "0.55254024", "0.5374504", "0.5333273", "0.5320459", "0.52616775", "0.5239785", "0.52332884", "0.52332884", "0.5129689", "0.5097954", "0.5095347", "0.5077105", "0.50728387", "0.50701785", "0.50447714", "0.5033737", "0.5020914", "0.4990801", "0.4987322", "0.49871278", "0.4982832", "0.4982519", "0.4978901", "0.49715483", "0.49565613", "0.49536723", "0.49470294", "0.4943863", "0.49373135", "0.48910344", "0.48910344", "0.48910344", "0.4882418", "0.4872306", "0.4870792", "0.48510966", "0.48472384", "0.4844621", "0.48368376", "0.48333654", "0.48310804", "0.48187983", "0.48177534", "0.48177534", "0.48177534", "0.48164392", "0.48142952", "0.4811947", "0.4808163", "0.48065853", "0.4805442", "0.4796944", "0.4795696", "0.47838923", "0.47804964", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47765556", "0.47755536", "0.47697988", "0.47658417", "0.47624785", "0.4751557", "0.47507322", "0.4747677", "0.47469622", "0.47460768", "0.47276402", "0.4727183", "0.47262153", "0.4722567", "0.4709853", "0.47090796", "0.47089443", "0.47089443", "0.47013167", "0.46995935", "0.46955442", "0.4693154", "0.46913102", "0.4685958", "0.46834177", "0.46829048", "0.46784282", "0.46715298", "0.46636084", "0.4661588", "0.46586066", "0.46557862", "0.465044", "0.46481645", "0.46469912" ]
0.0
-1
/ 2.2.2. Restricting the bean types of a bean
private void validateTyped(IBean bean) { Set<ITypeDeclaration> typedDeclarations = bean.getRestrictedTypeDeclaratios(); if (!typedDeclarations.isEmpty()) { Set<IParametedType> allTypes = bean.getAllTypes(); for (ITypeDeclaration typedDeclaration : typedDeclarations) { IType typedType = typedDeclaration.getType(); if (typedType != null) { boolean typeWasFound = false; for (IParametedType type : allTypes) { if (type != null && typedType.getFullyQualifiedName().equals(type.getType().getFullyQualifiedName())) { typeWasFound = true; break; } } if (!typeWasFound) { String message = bean instanceof IClassBean ? CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION_IN_BEAN_CLASS : bean instanceof IProducerField ? CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION_IN_PRODUCER_FIELD : bean instanceof IProducerMethod ? CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION_IN_PRODUCER_METHOD : CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION; addError(message, CDIPreferences.ILLEGAL_TYPE_IN_TYPED_DECLARATION, typedDeclaration, bean.getResource()); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void verifyReferencedTypes() {\n\t\tbeanType = resolve(getBuilder().getBean());\n\t\tbean = getContext().getModelSet().getBean(beanType, false);\n\t}", "private void validateSpecializingBean(IBean bean) {\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();\r\n \t\tif(specializesDeclaration!=null) {\r\n \t\t\tif(bean instanceof IDecorator) {\r\n \t\t\t\taddError(CDIValidationMessages.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());\r\n \t\t\t} else if(bean instanceof IInterceptor) {\r\n \t\t\t\taddError(CDIValidationMessages.INTERCEPTOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());\r\n \t\t\t}\r\n \t\t}\r\n \t\tIBean specializedBean = bean.getSpecializedBean();\r\n \t\tif(specializedBean!=null) {\r\n \t\t\tif(!specializedBean.getBeanClass().isReadOnly()) {\r\n \t\t\t\tgetValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), specializedBean.getResource().getFullPath(), false);\r\n \t\t\t}\r\n \r\n \t\t\tString beanClassName = bean.getBeanClass().getElementName();\r\n \t\t\tString beanName = bean instanceof IBeanMethod?beanClassName + \".\" + ((IBeanMethod)bean).getSourceMember().getElementName() + \"()\":beanClassName;\r\n \t\t\tString specializingBeanClassName = specializedBean.getBeanClass().getElementName();\r\n \t\t\tString specializingBeanName = specializedBean instanceof IBeanMethod?specializingBeanClassName + \".\" + ((IBeanMethod)specializedBean).getSourceMember().getElementName() + \"()\":specializingBeanClassName;\r\n \t\t\t/*\r\n \t\t\t * 4.3.1. Direct and indirect specialization\r\n \t\t\t * - X specializes Y but does not have some bean type of Y\r\n \t\t\t */\r\n \t\t\tSet<IParametedType> beanTypes = bean.getLegalTypes();\r\n \t\t\tSet<IParametedType> specializingBeanTypes = specializedBean.getLegalTypes();\r\n \t\t\tfor (IParametedType specializingType : specializingBeanTypes) {\r\n \t\t\t\tboolean found = false;\r\n \t\t\t\tfor (IParametedType type : beanTypes) {\r\n \t\t\t\t\tif(specializingType.getType().getFullyQualifiedName().equals(type.getType().getFullyQualifiedName())) {\r\n \t\t\t\t\t\tfound = true;\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\tif(!found) {\r\n \t\t\t\t\taddError(CDIValidationMessages.MISSING_TYPE_IN_SPECIALIZING_BEAN, CDIPreferences.MISSING_TYPE_IN_SPECIALIZING_BEAN,\r\n \t\t\t\t\t\t\tnew String[]{beanName, specializingBeanName, specializingType.getType().getElementName()},\r\n \t\t\t\t\t\t\tbean.getSpecializesAnnotationDeclaration(), bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t/*\r\n \t\t\t * 4.3.1. Direct and indirect specialization\r\n \t\t\t * - X specializes Y and Y has a name and X declares a name explicitly, using @Named\r\n \t\t\t */\r\n \t\t\tif(specializedBean.getName()!=null) {\r\n \t\t\t\tIAnnotationDeclaration nameDeclaration = bean.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\t\tif(nameDeclaration!=null) {\r\n \t\t\t\t\taddError(CDIValidationMessages.CONFLICTING_NAME_IN_SPECIALIZING_BEAN, CDIPreferences.CONFLICTING_NAME_IN_SPECIALIZING_BEAN,\r\n \t\t\t\t\t\t\tnew String[]{beanName, specializingBeanName},\r\n \t\t\t\t\t\t\tnameDeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t/*\r\n \t\t\t * 5.1.3. Inconsistent specialization\r\n \t\t\t * - Suppose an enabled bean X specializes a second bean Y. If there is another enabled bean that specializes Y we say that inconsistent\r\n \t\t\t * specialization exists. The container automatically detects inconsistent specialization and treats it as a deployment problem.\r\n \t\t\t */\r\n \t\t\tif(bean.isEnabled() && specializedBean instanceof IClassBean) {\r\n \t\t\t\tIClassBean supperClassBean = (IClassBean)specializedBean;\r\n \t\t\t\tSet<? extends IClassBean> allSpecializingBeans = supperClassBean.getSpecializingBeans();\r\n \t\t\t\tif(allSpecializingBeans.size()>1) {\r\n \t\t\t\t\tStringBuffer sb = new StringBuffer(bean.getSimpleJavaName());\r\n \t\t\t\t\tboolean moreThanTwo = false;\r\n \t\t\t\t\tfor (IClassBean specializingBean : allSpecializingBeans) {\r\n \t\t\t\t\t\tif(specializingBean!=bean && specializingBean.isEnabled()) {\r\n \t\t\t\t\t\t\tsb.append(\", \").append(specializingBean.getSimpleJavaName());\r\n \t\t\t\t\t\t\tmoreThanTwo = true;\r\n \t\t\t\t\t\t\tif(!specializingBean.getBeanClass().isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(specializingBean.getResource().getFullPath().toOSString(), bean.getSourcePath(), false);\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), specializingBean.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(moreThanTwo && specializesDeclaration!=null) {\r\n \t\t\t\t\t\taddError(CDIValidationMessages.INCONSISTENT_SPECIALIZATION, CDIPreferences.INCONSISTENT_SPECIALIZATION,\r\n \t\t\t\t\t\t\t\tnew String[]{sb.toString(), supperClassBean.getSimpleJavaName()},\r\n \t\t\t\t\t\t\t\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private void checkBeanClass(Object bean) throws JellyTagException\n {\n if (getBaseClass() != null\n && !getBaseClass().isAssignableFrom(bean.getClass()))\n {\n throw new JellyTagException(\"Bean is not of expected base class: \"\n + getBaseClass().getName());\n }\n }", "private void validateMixedClassBean(IClassBean bean) {\r\n \t\tITextSourceReference sessionDeclaration = CDIUtil.getSessionDeclaration(bean);\r\n \t\tITextSourceReference decoratorDeclaration = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tITextSourceReference interceptorDeclaration = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \r\n \t\tif (sessionDeclaration != null) {\r\n \t\t\t/*\r\n \t\t\t * 3.2. Session beans\r\n \t\t\t * - bean class of a session bean is annotated @Decorator\r\n \t\t\t */\r\n \t\t\tif (decoratorDeclaration != null) {\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_DECORATOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tsessionDeclaration, bean.getResource());\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_DECORATOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tdecoratorDeclaration, bean.getResource());\r\n \t\t\t}\r\n \t\t\t/*\r\n \t\t\t * 3.2. Session beans\r\n \t\t\t * - bean class of a session bean is annotated @Interceptor\r\n \t\t\t */\r\n \t\t\tif (interceptorDeclaration != null) {\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_INTERCEPTOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tsessionDeclaration, bean.getResource());\r\n \t\t\t\taddError(CDIValidationMessages.SESSION_BEAN_ANNOTATED_INTERCEPTOR, CDIPreferences.SESSION_BEAN_ANNOTATED_INTERCEPTOR_OR_DECORATOR,\r\n \t\t\t\t\t\tinterceptorDeclaration, bean.getResource());\r\n \t\t\t}\r\n \t\t}\r\n \t}", "Object getBean();", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "@Override\n protected boolean isMultipleBeans()\n {\n return false;\n }", "protected boolean mayBeNestedBeanType(Class<?> fieldType) {\n return !fieldType.isPrimitive() // not primitive types\n && !fieldType.isArray() // not array type, array's nested bean is unsupported for the check, simply\n && !Object.class.equals(fieldType) // e.g. generic type\n && !String.class.isAssignableFrom(fieldType) // not String\n && !Number.class.isAssignableFrom(fieldType) // not Integer, Long, ...\n && !TemporalAccessor.class.isAssignableFrom(fieldType) // not LocalDate, ...\n && !java.util.Date.class.isAssignableFrom(fieldType) // not old date\n && !Boolean.class.isAssignableFrom(fieldType) // not boolean\n && !Classification.class.isAssignableFrom(fieldType) // not CDef\n && !File.class.isAssignableFrom(fieldType) // not File\n && !isCollectionFamilyType(fieldType); // not Collection family\n }", "private void validateManagedBean(IClassBean bean) {\r\n \t\tIAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tIAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);\r\n \t\tif (decorator != null && interceptor != null) {\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, decorator, bean.getResource());\r\n \t\t\taddError(CDIValidationMessages.BOTH_INTERCEPTOR_AND_DECORATOR, CDIPreferences.BOTH_INTERCEPTOR_AND_DECORATOR, interceptor, bean.getResource());\r\n \t\t}\r\n \r\n \t\tIAnnotationDeclaration declaration = CDIUtil.getDifferentScopeDeclarationThanDepentend(bean);\r\n \t\tif (declaration != null) {\r\n \t\t\tIType type = bean.getBeanClass();\r\n \t\t\ttry {\r\n \t\t\t\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a public field declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tIField[] fields = type.getFields();\r\n \t\t\t\tfor (IField field : fields) {\r\n \t\t\t\t\tif (Flags.isPublic(field.getFlags()) && !Flags.isStatic(field.getFlags())) {\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_PUBLIC_FIELD, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tdeclaration, bean.getResource());\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\t/*\r\n \t\t\t\t * 3.1. Managed beans\r\n \t\t\t\t * - managed bean with a parameterized bean class declares any scope other than @Dependent\r\n \t\t\t\t */\r\n \t\t\t\tString[] typeVariables = type.getTypeParameterSignatures();\r\n \t\t\t\tif (typeVariables.length > 0) {\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SCOPE_FOR_MANAGED_BEAN_WITH_GENERIC_TYPE, CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN,\r\n \t\t\t\t\t\t\tdeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 3.1.4. Specializing a managed bean\r\n \t\t * - managed bean class annotated @Specializes does not directly extend the bean class of another managed bean\r\n \t\t */\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();\r\n \t\tif (specializesDeclaration != null) {\r\n \t\t\tsaveAllSuperTypesAsLinkedResources(bean);\r\n \t\t\ttry {\r\n \t\t\t\tIBean sBean = bean.getSpecializedBean();\r\n \t\t\t\tif (sBean != null) {\r\n \t\t\t\t\tif (sBean instanceof ISessionBean || sBean.getAnnotation(CDIConstants.STATELESS_ANNOTATION_TYPE_NAME) != null\r\n \t\t\t\t\t\t\t|| sBean.getAnnotation(CDIConstants.SINGLETON_ANNOTATION_TYPE_NAME) != null) {\r\n \t\t\t\t\t\t// The specializing bean directly extends an enterprise bean class\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\r\n \t\t\t\t\t\t\t\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t// Validate the specializing bean extends a non simple bean\r\n \t\t\t\t\t\tboolean hasDefaultConstructor = true;\r\n \t\t\t\t\t\tIMethod[] methods = sBean.getBeanClass().getMethods();\r\n \t\t\t\t\t\tfor (IMethod method : methods) {\r\n \t\t\t\t\t\t\tif (method.isConstructor()) {\r\n \t\t\t\t\t\t\t\tif (Flags.isPublic(method.getFlags()) && method.getParameterNames().length == 0) {\r\n \t\t\t\t\t\t\t\t\thasDefaultConstructor = true;\r\n \t\t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\thasDefaultConstructor = false;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!hasDefaultConstructor) {\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN,\tspecializesDeclaration, bean.getResource());\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// The specializing bean extends nothing\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_SPECIALIZING_MANAGED_BEAN, CDIPreferences.ILLEGAL_SPECIALIZING_MANAGED_BEAN, specializesDeclaration, bean.getResource());\r\n \t\t\t\t}\r\n \t\t\t} catch (JavaModelException e) {\r\n \t\t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\t * 9.3. Binding an interceptor to a bean\r\n \t\t * - managed bean has a class level interceptor binding and is declared final or has a non-static, non-private, final method\r\n \t\t * - non-static, non-private, final method of a managed bean has a method level interceptor binding\r\n \t\t */\r\n \t\ttry {\r\n \t\t\tSet<IInterceptorBinding> bindings = bean.getInterceptorBindings();\r\n \t\t\tif(!bindings.isEmpty()) {\r\n \t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t} else {\r\n \t\t\t\t\tIMethod[] methods = bean.getBeanClass().getMethods();\r\n \t\t\t\t\tfor (int i = 0; i < methods.length; i++) {\r\n \t\t\t\t\t\tint flags = methods[i].getFlags();\r\n \t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(methods[i].getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\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} else {\r\n \t\t\t\tSet<IBeanMethod> beanMethods = bean.getAllMethods();\r\n \t\t\t\tfor (IBeanMethod method : beanMethods) {\r\n \t\t\t\t\tif(!method.getInterceptorBindings().isEmpty()) {\r\n \t\t\t\t\t\tif(Flags.isFinal(bean.getBeanClass().getFlags())) {\r\n \t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());\r\n \t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_CLASS, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tIMethod sourceMethod = method.getMethod();\r\n \t\t\t\t\t\t\tint flags = sourceMethod.getFlags();\r\n \t\t\t\t\t\t\tif(Flags.isFinal(flags) && !Flags.isStatic(flags) && !Flags.isPrivate(flags)) {\r\n \t\t\t\t\t\t\t\tITextSourceReference reference = CDIUtil.convertToSourceReference(sourceMethod.getNameRange());\r\n \t\t\t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INTERCEPTOR_BINDING_METHOD, CDIPreferences.ILLEGAL_INTERCEPTOR_BINDING_METHOD, reference, bean.getResource());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (JavaModelException e) {\r\n \t\t\tCDICorePlugin.getDefault().logError(e);\r\n \t\t}\r\n \t}", "@Override\n protected boolean accept(Field f) {\n\t\t return !Collection.class.isAssignableFrom(f.getType()) &&\n\t\t \t\t!List.class.isAssignableFrom(f.getType()) &&\n\t\t \t\t\t\t!BaseEntity.class.isAssignableFrom(f.getType())\n\t\t \t\t\t\t&& acceptToStringField(f);\n\t\t }", "@Override\r\n\tpublic boolean supports(Class<?> c) {\n\t\treturn RoleWiseAccessBean.class.isAssignableFrom(c);\r\n\t}", "public interface OuterBean {\n void testRequired(User user);\n\n void testRequiresNew(User user);\n}", "public abstract TypeBindings bindingsForBeanType();", "public interface IBeanWrapper {\r\n\r\n\tIBeanPropertyWrapper getBeanPropertyWrapperById(Object id) throws NoSuchFieldException;\r\n\t\r\n\tIBeanPropertyWrapper getBeanPropertyWrapperByName(String propertyName) throws NoSuchFieldException;\r\n\r\n\tvoid setProperty(String propertyName, Object value)\r\n\t\t\tthrows NoSuchFieldException, NoSuchMethodException,\r\n\t\t\t\t\tInvocationTargetException, IllegalAccessException;\r\n\t\r\n\tObject getProperty(String propertyName)\r\n\t\t\tthrows NoSuchFieldException, NoSuchMethodException,\r\n\t\t\t\t\tInvocationTargetException, IllegalAccessException;\r\n\r\n\tString getPropertyAsString(String propertyName)\r\n\t\t\tthrows NoSuchFieldException, NoSuchMethodException,\r\n\t\t\t\t\tInvocationTargetException, IllegalAccessException;\r\n\r\n\tClass getPropertyType(String propertyName)\r\n\t\t\tthrows NoSuchFieldException, NoSuchMethodException,\r\n\t\t\t\t\tInvocationTargetException, IllegalAccessException;\r\n\r\n\tIBeanPropertyWrapper[] getBeanPropertyWrappers(IObjectFilter filter);\r\n\t\r\n\tIBeanPropertyWrapper[] getBeanPropertyWrappers();\r\n\r\n\tIBeanPropertyWrapper[] getPreferredBeanPropertyWrappers();\r\n\r\n\tString[] getPropertyNames();\r\n\r\n\tString[] getPreferredPropertyNames();\r\n\r\n}", "void beforeInit(Object bean, Class<?> clazz) throws Exception;", "private static BeanUtilsBean createBeanUtilsBean()\n {\n ConvertUtilsBean cub = new ConvertUtilsBean();\n \n // TODO: is there a smarter way to tell beanutils not to use defaults?\n \n final boolean[] booleanArray = new boolean[0];\n final byte[] byteArray = new byte[0];\n final char[] charArray = new char[0];\n final double[] doubleArray = new double[0];\n final float[] floatArray = new float[0];\n final int[] intArray = new int[0];\n final long[] longArray = new long[0];\n final short[] shortArray = new short[0];\n \n \n cub.register(new BooleanConverter(), Boolean.TYPE);\n cub.register(new BooleanConverter(), Boolean.class);\n cub.register(\n new BooleanArrayConverter(), booleanArray.getClass());\n cub.register(new ByteConverter(), Byte.TYPE);\n cub.register(new ByteConverter(), Byte.class);\n cub.register(\n new ByteArrayConverter(byteArray), byteArray.getClass());\n cub.register(new CharacterConverter(), Character.TYPE);\n cub.register(new CharacterConverter(), Character.class);\n cub.register(\n new CharacterArrayConverter(), charArray.getClass());\n cub.register(new DoubleConverter(), Double.TYPE);\n cub.register(new DoubleConverter(), Double.class);\n cub.register(\n new DoubleArrayConverter(doubleArray), doubleArray.getClass());\n cub.register(new FloatConverter(), Float.TYPE);\n cub.register(new FloatConverter(), Float.class);\n cub.register(new FloatArrayConverter(), floatArray.getClass());\n cub.register(new IntegerConverter(), Integer.TYPE);\n cub.register(new IntegerConverter(), Integer.class);\n cub.register(new IntegerArrayConverter(), intArray.getClass());\n cub.register(new LongConverter(), Long.TYPE);\n cub.register(new LongConverter(), Long.class);\n cub.register(new LongArrayConverter(), longArray.getClass());\n cub.register(new ShortConverter(), Short.TYPE);\n cub.register(new ShortConverter(), Short.class);\n cub.register(new ShortArrayConverter(), shortArray.getClass());\n // TODO: investigate:\n // StringArrayConverter doesn't properly convert an array of tokens with\n // elements containing an underscore, \"_\".\n // Hacked a replacement class :(\n // cub.register(new StringArrayConverter(),\n // String[].class);\n cub.register(new StrArrayConverter(), String[].class);\n cub.register(new IntegerArrayConverter(), Integer[].class);\n \n // BigDecimal, BigInteger, Class, Date, String, Time, TimeStamp\n // do not use defaults in the default configuration of ConvertUtilsBean\n \n return new BeanUtilsBean(cub, new PropertyUtilsBean());\n }", "private boolean isProxy(Object bean) {\n return (bean instanceof Advised);\n }", "public String beanType() {\n return beanType;\n }", "Modifications<?> getMasterBeanModifications();", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "@Override\n public abstract boolean isAssignableBy(TypeUsage other);", "private void _badType(int type, Object value)\n {\n if (type < 0) {\n throw new IllegalStateException(String.format(\n \"Internal error: missing BeanDefinition for id %d (class %s)\",\n type, value.getClass().getName()));\n }\n throw new IllegalStateException(String.format(\n \"Unsupported type: %s (%s)\", type, value.getClass().getName()));\n }", "public interface Person {\n String getName();\n void setAge(String age);\n void setRating();\n\n Person getOwnerProxy(PersonBean person);\n}", "@Override\r\n\t\tpublic boolean shouldSkipClass(Class<?> clazz) {\n\t\t\tif (clazz.equals(BeanPropertyBindingResult.class)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public interface IndicatorBean {\n\n String getCondition();\n\n BuyAndSellIndicatorTo.CompareBean getCompare();\n\n BuyAndSellIndicatorTo.RuleFirstBean getRuleFirst();\n\n BuyAndSellIndicatorTo.RuleSecondBean getRuleSecond();\n\n}", "public void beanInheritance()\n\t{\n\t\tPhone iphone = (Phone) appContext.getBean(\"iphone\");\n\t\tSystem.out.println(iphone.toString());\n\t}", "public interface DependentBean {\n void print();\n}", "@Override\n\tpublic void registerPrimaryTypes() {\n\t\tclassType = registerJavaType(getBean().getName(), CLASS);\n\t\tinterfaceType = registerJavaType(\"I\" + getBean().getName(), INTERFACE);\n\n\t\t// Provide lookup\n\t\tbean.setTypes(classType, interfaceType);\n\n\t\tsetExtends(classType, interfaceType);\n\t}", "@Override\n protected Class<ShowbaseUserBean> getUserBeanType() {\n return ShowbaseUserBean.class;\n }", "public sealed interface EntityMapper<D, E>permits CarMapper,\n ModelMapper, ModelOptionMapper, PricingClassMapper, UserInfoMapper,\n TownMapper, AddressMapper, RoleMapper, BookingMapper, RentMapper {\n\n E toEntity(D dto);\n\n D toDto(E entity);\n\n Collection<E> toEntity(Collection<D> dtoList);\n\n Collection<D> toDto(Collection<E> entityList);\n\n @Named(\"partialUpdate\")\n @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\n void partialUpdate(@MappingTarget E entity, D dto);\n}", "void registerBeans(@Observes AfterBeanDiscovery event, BeanManager manager) {\n {\n AnnotatedType<Office> oat = manager.createAnnotatedType(Office.class);\n BeanAttributes<Office> oa = manager.createBeanAttributes(oat);\n InjectionTargetFactory<Office> factory = manager.getInjectionTargetFactory(oat);\n Bean<?> bean = manager.createBean(oa, Office.class, factory);\n event.addBean(bean);\n }\n // create a serializable synthetic class bean\n {\n AnnotatedType<SerializableOffice> oat = manager.createAnnotatedType(SerializableOffice.class);\n BeanAttributes<SerializableOffice> oa = manager.createBeanAttributes(oat);\n InjectionTargetFactory<SerializableOffice> factory = manager.getInjectionTargetFactory(oat);\n Bean<?> bean = manager.createBean(oa, SerializableOffice.class, factory);\n event.addBean(bean);\n }\n // create a synthetic decorator\n {\n AnnotatedType<VehicleDecorator> oat = manager.createAnnotatedType(VehicleDecorator.class);\n BeanAttributes<VehicleDecorator> oa = addDecoratorStereotype(manager.createBeanAttributes(oat));\n InjectionTargetFactory<VehicleDecorator> factory = manager.getInjectionTargetFactory(oat);\n Bean<?> bean = manager.createBean(oa, VehicleDecorator.class, factory);\n assertTrue(bean instanceof Decorator<?>);\n event.addBean(bean);\n }\n\n assertNotNull(zooBean);\n\n // create synthetic producer field\n {\n AnnotatedType<Zoo> zoo = manager.createAnnotatedType(Zoo.class);\n assertEquals(1, zoo.getFields().size());\n AnnotatedField<? super Zoo> field = zoo.getFields().iterator().next();\n BeanAttributes<Lion> attributes = Reflections.cast(starveOut(manager.createBeanAttributes(field)));\n ProducerFactory<Zoo> factory = getManagerImpl(manager).getProducerFactory(field, zooBean);\n event.addBean(manager.createBean(attributes, Zoo.class, factory));\n }\n // create synthetic producer method\n {\n AnnotatedType<Zoo> zoo = manager.createAnnotatedType(Zoo.class);\n AnnotatedMethod<? super Zoo> method = null;\n for (AnnotatedMethod<? super Zoo> _method : zoo.getMethods()) {\n if (_method.getBaseType().equals(Tiger.class)) {\n method = _method;\n }\n }\n assertNotNull(method);\n BeanAttributes<Tiger> attributes = Reflections.cast(starveOut(manager.createBeanAttributes(method)));\n ProducerFactory<Zoo> factory = getManagerImpl(manager).getProducerFactory(method, zooBean);\n event.addBean(manager.createBean(attributes, Zoo.class, factory));\n }\n }", "public PeopleBean() {\n\n }", "public void testRegisterBeanMixed() throws Exception\n {\n checkBeanRegistration(MIXED_BEANREG_BUILDER, \"Action\");\n checkFormEventRegistration(\"textBeanReg -> ACTION\");\n }", "@Override\r\n\tpublic <T extends HippoBean> void cloneBean(T sourceBean) {\n\t\t\r\n\t}", "ComponentBean getBean();", "@Override\n public <E> void configurePermissibleValues(List<E> values, Class<E> type)\n {\n }", "public BeanType(Class<T> type) {\n if (type == null) {\n throw new NullPointerException(\"Got null for bean type\");\n }\n this.type = type;\n }", "@Override\n\tpublic boolean isResponsibleFor(final Class< ? > clazz) {\n\t\treturn PriceListDescriptorDTO.class.isAssignableFrom(clazz) || PriceListDescriptor.class.isAssignableFrom(clazz);\n\t}", "public Class<T> getBeanClass() {\n return this.type;\n }", "public boolean isHandled(StatusBean bean);", "@Test\n public void testGetBeanCopier() {\n//TODO: Test goes here... \n/* \ntry { \n Method method = BeanUtil.getClass().getMethod(\"getBeanCopier\", Class<?>.class, Class<?>.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "<V> IBeanRuntime<V> registerBean(Class<V> beanType);", "@Test\n\tpublic void testValidateInvalidWrongType() {\n\t\tRapidBean bean = createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\");\n\t\ttry {\n\t\t\tprop.validate(bean);\n\t\t\tAssert.fail(\"expected ValidationException\");\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic <T> boolean canProvide(Class<T> type) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public void setBeanClass(Class<?> beanClass) {\r\n this.beanClass = beanClass;\r\n }", "@Test\n public void shouldHaveANoArgsConstructor() {\n assertThat(AssignForceBatch.class, hasValidBeanConstructor());\n }", "public <T> T getBean(String beanName, Class<T> ofType) throws CouldNotResolveBeanException;", "public interface BeanSelfAware {\n\n //设定代理到类内部,嵌套调用时使用代理进行方法调用\n void setSelf(Object obj);\n\n}", "public interface BeanFactory {\n\n// BeanDefinition getBeanDefinition(String beanID);\n\n Object getBean(String beanID);\n}", "public interface TopBean extends Serializable{\n}", "public interface BeanResolver {\n\n\n\t/**\n\t * Returns the bean of the correct type.\n\t * \n\t * @param <T>\t\tClass of bean.\n\t * @param beanName\tName of the bean to return.\n\t * @param ofType\tClass of the bean to get.\n\t * \n\t * @return The bean with matching bean name.\n\t * @throws CouldNotResolveBeanException if bean can not be located.\n\t **/\n\tpublic <T> T getBean(String beanName, Class<T> ofType) throws CouldNotResolveBeanException;\n}", "public interface FlexibleSearchBeanService extends BaseCrudService<SearchBean>{\n}", "public void test_change_bean() {\r\n Object bean1 = new MyGoodBean();\r\n Object newBean1 = new MyGoodBean();\r\n\r\n BeanId beanId1 = getBeanIdRegister().register(\"bean1\");\r\n BeanId beanIdNE = getBeanIdRegister().register(\"notExisting\");\r\n\r\n\r\n BeanRepository beanRepository = getBeanRepository();\r\n\r\n beanRepository.addBean(beanId1, bean1);\r\n\r\n assertEquals(bean1, beanRepository.getBean(beanId1));\r\n\r\n beanRepository.changeBean(beanId1, newBean1);\r\n\r\n assertEquals(newBean1, beanRepository.getBean(beanId1));\r\n\r\n boolean fired = false;\r\n\r\n try {\r\n \tbeanRepository.changeBean(beanIdNE, new Object());\r\n } catch (IllegalStateException e) {\r\n \tfired = true;\r\n\t\t}\r\n assertTrue(\"The exception did not fire\", fired);\r\n }", "private Resource getOntClass(Object bean) {\r\n\t\treturn ontClass(bean).addProperty(javaclass, bean.getClass().getName());\r\n\t}", "@RemotingBean\npublic interface Projectable {\n}", "protected abstract void populateBeanFromRequest(BeanType bean, Request request);", "protected static Class<?> getLogicClassForBean(Object obj) {\n\t\tString clsName = ClassNameUtil.getEntityNameForBean(obj);\n\t\treturn getInstance().getLogicClassForBeanName(clsName);\n\t}", "public void testSetOnlyStoresAllowableTypes() {\n MetaDataFactory f = MetaDataFactory.getDefaultInstance();\n MutableBooleanValue allowableObject = (MutableBooleanValue) f.getValueFactory()\n .createBooleanValue().createMutable();\n allowableObject.setValue(Boolean.TRUE);\n\n NumberValue unallowableObject = (NumberValue) f.getValueFactory()\n .createNumberValue();\n\n TypedSet typedSet = new TypedSet(new HashSet(), BooleanValue.class);\n\n try {\n typedSet.add(allowableObject);\n } catch (IllegalArgumentException e) {\n fail(\"Adding a \" + allowableObject.getClass() + \" should be permitted.\");\n }\n\n // check that the mutable list will not allow a forbiden type\n try {\n typedSet.add(unallowableObject);\n fail(\"Adding any thing other than a \" + allowableObject.getClass() +\n \" should throw an IllegalArgumentException.\");\n } catch (IllegalArgumentException e) {\n // expected.\n }\n }", "public void test_add_and_overwrite_bean() {\r\n Object bean1 = new MyGoodBean();\r\n Object newBean1 = new MyGoodBean();\r\n\r\n BeanId beanId1 = getBeanIdRegister().register(\"bean1\");\r\n\r\n BeanRepository beanRepository = getBeanRepository();\r\n\r\n assertNull(beanRepository.getBean(beanId1));\r\n\r\n beanRepository.addBean( beanId1, bean1);\r\n\r\n assertEquals(bean1, beanRepository.getBean(beanId1));\r\n\r\n beanRepository.addBean( beanId1, newBean1);\r\n\r\n assertEquals(newBean1, beanRepository.getBean(beanId1));\r\n }", "@Override\n public boolean isGeneric() { \n return false;\n }", "public abstract boolean isAssignable();", "@Override\n public abstract boolean isAssignableBy(ResolvedType other);", "public void setBeanOverridingAllowed(final boolean beanOverridingAllowed) {\n\t\tthis.beanOverridingAllowed = beanOverridingAllowed;\n\t}", "public final void setBean(String bean) {\n this.bean = bean;\n }", "@Override\n public BeanWraper createBeanWraper() {\n \treturn newBeanWraper();\n }", "protected boolean isBindingCandidate(Object value) {\n\t\treturn (value != null && !value.getClass().isArray() && !(value instanceof Collection) &&\n\t\t\t\t!(value instanceof Map) && !BeanUtils.isSimpleValueType(value.getClass()));\n\t}", "public interface BaseBean extends Serializable {\n}", "public boolean getErrorOnUseBeanInvalidClassAttribute();", "public interface BeanMapper<A, B> extends Mapper<A, B> {\n void setBeanMapperConsumer(BeanMapperConsumer beanMapperConsumer);\n}", "@Override\n @SuppressWarnings(\"unchecked\")\n public T toBeanType(Object value) {\n return (T) value;\n }", "public boolean isAssignable(Class<?> type);", "public ClasseBean() {\r\n }", "public ClasseBean() {\r\n }", "@Override\n protected void checkSubclass() {\n }", "void setNotVeryEffectiveTo(List<Type> notVeryEffectiveTo) {\n this.notVeryEffectiveTo = notVeryEffectiveTo;\n }", "private GenericBean createTestBean(final String name, final String prename, final String dateofbirth) {\n\t\tString descr = \"<beantype name=\\\"TestBean\\\" idtype=\\\"keyprops\\\">\" + \"<property name=\\\"name\\\" key=\\\"true\\\"/>\"\n\t\t\t\t+ \"<property name=\\\"prename\\\" key=\\\"true\\\"/>\"\n\t\t\t\t+ \"<property name=\\\"dateofbirth\\\" type=\\\"date\\\" key=\\\"true\\\"/>\" + \"</beantype>\";\n\t\tGenericBean bean = null;\n\t\tTypeRapidBean testBeanType = (TypeRapidBean) RapidBeansTypeLoader.getInstance().lookupType(\"TestBean\");\n\t\tif (testBeanType == null) {\n\t\t\tbean = TestHelper.createGenericBeanInstance(descr);\n\t\t\tRapidBeansTypeLoader.getInstance().registerType(bean.getType());\n\t\t} else {\n\t\t\tbean = new GenericBean(testBeanType);\n\t\t}\n\t\tbean.setPropValue(\"name\", name);\n\t\tbean.setPropValue(\"prename\", prename);\n\t\tbean.setPropValue(\"dateofbirth\", dateofbirth);\n\t\treturn bean;\n\t}", "Bean duplicateBean( String id, String alias, Bean source, boolean isAnonymous);", "@Override\n public boolean supports(Class<?> clazz) {\n return clazz == ClimbUserForm.class;\n }", "public interface BeanProcessor {\n\n\n void process(Object bean, Class<?> clazz) throws Exception;\n\n //before all beans loaded.\n void beforeInit(Object bean, Class<?> clazz) throws Exception;\n\n //after all beans loaded.\n void afterInit(Object bean, Class<?> clazz) throws Exception;\n}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "private void checkBeanDefinition() throws JellyTagException\n {\n int count = countAttributes(BEAN_DEFINITION_ATTRS);\n\n if (count > 1)\n {\n throw new JellyTagException(\n \"Exactly one of the attributes must be used: \"\n + \"class, ref, beanName, beanClass!\");\n }\n if (count < 1 && !isOptional() && getDefaultClass() == null)\n {\n throw new MissingAttributeException(ATTR_CLASS);\n }\n }", "public void initExpTypeBeanForExistingExperiment(){\r\n \t\r\n }", "public UserDeletedRole toBeanIf();", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}" ]
[ "0.5921226", "0.58370477", "0.5738226", "0.57121855", "0.5675084", "0.5657862", "0.5657862", "0.5594405", "0.5535939", "0.5496445", "0.5486436", "0.547472", "0.54124236", "0.5395356", "0.5376508", "0.53734744", "0.5341238", "0.5233692", "0.5206972", "0.517274", "0.51493734", "0.5124088", "0.5081161", "0.5080546", "0.50769526", "0.5073828", "0.50701344", "0.5039026", "0.5026334", "0.5026167", "0.4997219", "0.4980583", "0.49765053", "0.49762064", "0.49715528", "0.4969037", "0.49580395", "0.49565977", "0.49516633", "0.49465367", "0.49293604", "0.49232557", "0.4913045", "0.4888709", "0.48843673", "0.48783144", "0.48624393", "0.4850998", "0.48407423", "0.48332763", "0.48270595", "0.4825968", "0.4824913", "0.4818669", "0.48108295", "0.47964346", "0.47911638", "0.4787489", "0.47854868", "0.4778601", "0.47711897", "0.4768268", "0.47664604", "0.4755616", "0.4733291", "0.4726069", "0.47255084", "0.47178563", "0.4713808", "0.4709652", "0.47090727", "0.47081104", "0.47081104", "0.46949127", "0.46799612", "0.46792868", "0.46750465", "0.4668236", "0.46670887", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.46616873", "0.4660257", "0.4657133", "0.4656493", "0.4656489", "0.4656489", "0.4656489", "0.4656489" ]
0.58388543
1
Created by Administrator on 2017/7/26.
public interface ICourseInfoService { Integer selectCount(Map<String, Object> params); List<Map<String, Object>> selectList(Map<String, Object> params); List<CourseInfo> selectAll(); /** * 通过课程主键id查询课程 * * @param ids * @return */ List<CourseInfo> selectCourseByIds(Map<String, Object> ids); /** * 通过课程id查询课程总数 * * @param ids * @return */ Integer selectCourseCountByIds(Map<String, Object> ids); /** * 通过课程id查询课程信息 * * @param courseId * @return */ CourseInfo selectOne(String courseId); /** * 将projectInfo中的学时要求,必选题量与courseInfo中的数据组装到map中 * * @param projectCourses * @param courseInfos * @return */ List<Map<String, Object>> saveProjectCourseInfoDate(List<ProjectCourse> projectCourses, List<CourseInfo> courseInfos); /** * 通过课程id查询课程信息 * * @param courseId * @return */ CourseInfo selectCourseInfoByCourseId(String courseId); /** * 根据courseTypeId或者courseName查询课程 * * @param params * @return */ List<Map<String, Object>> selectCourseList(Map<String, Object> params); /** * 根据courseTypeId或者courseName查询课程总条数 * * @param params * @return */ Integer selectCourseCount(Map<String, Object> params); /** * 课程下的总题量 * * @param params * @return */ int selectCourseQuestionCount(Map<String, Object> params); /** * 课程转移 * * @param params */ void courseMove(Map<String, Object> params); int insertSelective(Map<String, Object> params); int insertMessage(CourseMessage courseMessage); int updateMessage(CourseMessage courseMessage); int insertBatch(List< Map<String, Object>> list); int updateBatch(List< Map<String, Object>> list); int updateByPrimaryKeySelective(Map<String, Object> params); int deleteByPrimaryKey(Map<String, Object> params); void deleteByCourseId(Map<String, Object> params); /** * 根据courseIds查询课程信息 * @param courseIds * @return */ List<CourseInfo> selectCourses(List<String> courseIds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\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 entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\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\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void memoria() {\n \n }", "private Rekenhulp()\n\t{\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private TMCourse() {\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public Pitonyak_09_02() {\r\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void create() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public void autoDetails() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo6081a() {\n }", "private static void oneUserExample()\t{\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\n\tpublic void create() {\n\n\t}", "private UsineJoueur() {}", "@Override\n protected void getExras() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo12930a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "protected Doodler() {\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void einkaufen() {\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n void init() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private Singletion3() {}", "@Override\n public void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "private void getStatus() {\n\t\t\n\t}", "public void mo1531a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private MApi() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void startUp() {\n }", "private SingleTon() {\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }" ]
[ "0.63874805", "0.6137591", "0.587012", "0.5864592", "0.5839086", "0.58213085", "0.5766893", "0.57560873", "0.5749132", "0.5747988", "0.5727005", "0.5725723", "0.5723277", "0.5723277", "0.5720482", "0.5699263", "0.569707", "0.5693975", "0.56928897", "0.56928897", "0.56786054", "0.5654412", "0.56518674", "0.56355286", "0.561747", "0.56170654", "0.561556", "0.56026995", "0.56026995", "0.56026995", "0.56026995", "0.56026995", "0.56026995", "0.56026995", "0.5596876", "0.55965894", "0.5577997", "0.557705", "0.5575136", "0.5570289", "0.5552049", "0.55438447", "0.5519593", "0.55188483", "0.55118066", "0.55110306", "0.55106694", "0.5502682", "0.55018616", "0.54992175", "0.5497162", "0.5490481", "0.5484099", "0.54807144", "0.5478783", "0.5466197", "0.5465441", "0.54587966", "0.5452524", "0.54482526", "0.54482526", "0.54482526", "0.54482526", "0.54482526", "0.54482526", "0.5442535", "0.5441922", "0.5413839", "0.5411663", "0.5410587", "0.54091954", "0.54024047", "0.5402208", "0.5396378", "0.53908896", "0.53780216", "0.5373976", "0.53707147", "0.53673095", "0.5365269", "0.53606284", "0.53591543", "0.5350159", "0.53452677", "0.534462", "0.5340376", "0.5338349", "0.53377646", "0.53377646", "0.5333325", "0.5333325", "0.5333325", "0.5333325", "0.5333325", "0.5324289", "0.53230107", "0.5314853", "0.5314541", "0.5314383", "0.5311692", "0.5311692" ]
0.0
-1
new tutorial published to tell all subscribed users
void notifyAllAboutChange();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void subscriptions() {\n\t\ttry {\n\t\t\tList<Subscription> subscriptions = PlatformClient\n\t\t\t\t\t.subscriptions(getUser());\n\t\t\trender(subscriptions);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get subscriptions : %s\", e.getMessage());\n\t\t\trender();\n\t\t}\n\t}", "public void listSubscribedTopics() {\r\n for (Topic topic : subscriberTopics){\r\n System.out.print(topic);\r\n }\r\n }", "private static void multipleUsersExample()\t{\n\t}", "List<ClientTopicCouple> listAllSubscriptions();", "@Override\n\t\tpublic void onUserListSubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "private void listenOnlineUsers() {\n final String username = MyAccount.getInstance().getName();\n new Subscriber(Constants.ONLINE_TOPIC, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n // Get current user in chat box\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }\n })\n .listen();\n }", "public void topicsAdvertisedByPub() {\r\n int index = 1;\r\n System.out.println(\"Topics advertised by this publisher: \");\r\n for(Topic topic: pubTopics){\r\n System.out.println(index + \"->\" + topic + \"\\n\");\r\n index++;\r\n }\r\n }", "@Override\n\tpublic Response topics() {\n\t\tList<Topic> topics = null;\n\t\ttry {\n\t\t\ttopics = userResourceAccess.getTopicsForUser(getUser());\n\t\t} catch (GovernanceExeption e) {\n\t\t\te.printStackTrace();\n\t\t\treturn error(Status.INTERNAL_SERVER_ERROR, \"Can not get topics\");\n\n\t\t}\n\n\t\tCollection<org.ow2.play.governance.platform.user.api.rest.bean.Topic> out = Collections2\n\t\t\t\t.transform(\n\t\t\t\t\t\ttopics,\n\t\t\t\t\t\tnew Function<Topic, org.ow2.play.governance.platform.user.api.rest.bean.Topic>() {\n\t\t\t\t\t\t\tpublic org.ow2.play.governance.platform.user.api.rest.bean.Topic apply(\n\t\t\t\t\t\t\t\t\tTopic input) {\n\t\t\t\t\t\t\t\torg.ow2.play.governance.platform.user.api.rest.bean.Topic topic = new org.ow2.play.governance.platform.user.api.rest.bean.Topic();\n\t\t\t\t\t\t\t\ttopic.name = input.getName();\n\t\t\t\t\t\t\t\ttopic.ns = input.getNs();\n\t\t\t\t\t\t\t\ttopic.prefix = input.getPrefix();\n\t\t\t\t\t\t\t\ttopic.resourceUrl = getResourceURI(input);\n\t\t\t\t\t\t\t\treturn topic;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\n\t\treturn ok(out\n\t\t\t\t.toArray(new org.ow2.play.governance.platform.user.api.rest.bean.Topic[out\n\t\t\t\t\t\t.size()]));\n\t}", "@Test\n public void testForumSubscribe() {\n try {\n ForumDTO forumDTO = forumService.subscribeTo(FORUM_ID, USER_ID_2);\n assertTrue(forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME)\n );\n assertTrue(forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME_2)\n );\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public void listSubscribers()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tId\\n\";\n\n\t\tList<Customer> customers = this.company.getSubs();\n\n\t\tfor(int i=0; i<customers.length(); i++)\n\t\t{\n\t\t\tstr += customers.get(i).getName() + \"\\t\" + customers.get(i).getSurname() + \"\\t\" + customers.get(i).getMail() + \"\\t\" + customers.get(i).getPassword() + \"\\t\" + customers.get(i).getId() + \"\\n\";\n\n\t\t}\n\t\t\n\t\tSystem.out.println(str);\n\n\n\t}", "@Test\n public void getAllUsers() {\n IUser userOne = new User(\"UserOne\", \"password\");\n IUser userTwo = new User(\"UserTwo\", \"password\");\n channel.join(userOne);\n channel.join(userTwo);\n\n Collection<IRecognizable> users = channel.getAllUsersInfo();\n assertEquals(2,users.size());\n\n\n\n }", "public List<User> getSubscribers() {\n return subscribers;\n }", "private void Inscrire() {\n\t\t\r\n\t\tSystem.out.println(\"inscription\");\r\n }", "public void setSubscribers(List<User> subscribers) {\n this.subscribers = subscribers;\n }", "public void setSubscribers(Collection<User> subscribers) {\r\n\tthis.subscribers = subscribers;\r\n\t}", "public void getFriendRequests() {\n DocumentReference userDocument = dbref.getUserDocument();\n userDocument.collection(\"PendingFriendRequest\").addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot value,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n for (QueryDocumentSnapshot doc : value) {\n\n Users user = doc.toObject(Users.class);\n Instructors.add(user);\n }\n printFriendRequestNames();\n }\n });\n }", "@Override\n\tpublic void onUserListSubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "@Override\n\tpublic void onGetOnlineUsersDone(AllUsersEvent arg0) {\n\t\t\n\t}", "Subscriptions() {\n // Will get filled in with set methods\n }", "public void addSubscriptions(String subscribeTo){\n\t subscriptions.add(subscribeTo);\n\t}", "@Override\n\tpublic void showTaggedUsers() {\n\t\t\n\t}", "public void SubToTopic(String key, String user) \r\n\t{\r\n\t\tTopic top= topics.get(key);\r\n\t\tUser currentUser= retrieveUser(user);\r\n\t\t\r\n\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Commits\"))\r\n\t\t{\r\n\t\t\ttop.setSub(currentUser);\r\n\t\t\ttop.addObserver(currentUser);\r\n\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Commits\");\r\n\t\t}\r\n\t\telse \r\n\t\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Issues\"))\r\n\t\t\t{\r\n\t\t\t\ttop.setSub(currentUser);\r\n\t\t\t\ttop.addObserver(currentUser);\r\n\t\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Issues\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Discussion\"))\r\n\t\t\t\t{\r\n\t\t\t\t\ttop.setSub(currentUser);\r\n\t\t\t\t\ttop.addObserver(currentUser);\r\n\t\t\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Discussion\");\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Tasks\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttop.setSub(currentUser);\r\n\t\t\t\t\t\ttop.addObserver(currentUser);\r\n\t\t\t\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Tasks\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.println(\"Topic not found\");\r\n\t}", "@GetMapping(value = {\"/user/list\"})\r\n public String userSubscription(@PageableDefault(page = 0, size = 10, sort = \"createdAt\", direction = Sort.Direction.ASC) Pageable pageable,\r\n HttpServletRequest request, ModelMap model, RedirectAttributes redirectAttributes) {\r\n String ret = baseTemplate + \"user/list\";\r\n try {\r\n Page<UserSubscriptions> userSubscriptions = userSubscriptionRepository.findAll(pageable);\r\n model.addAttribute(\"usersubscription\", userSubscriptions);\r\n model.addAttribute(\"pagingUrl\", \"/ajax/super/paging/usersubscription\");\r\n model.addAttribute(\"pageable\", pageable);\r\n } catch (Exception e) {\r\n System.err.println(e.getMessage());\r\n }\r\n return ret;\r\n }", "public List<User> getSubscriptions() {\n return subscriptions;\n }", "private static void subscriberFillTest() {\r\n\t\t// Test list of subscribers\r\n\t\tfor (int i = 0; i < listClient.size(); i++) {\r\n\t\t\tSystem.out.println(listClient.get(i).getClient_ID() + \" \" + listClient.get(i).getKey());\r\n\t\t}\r\n\t}", "private List<String> getSubscribersForThisProduct(Event event) {\n List<Entity> entities = esClient.queryTable(ProfileResource.TABLE).type(\"profile\").limit(20).execute();\n Set<String> phoneNums = new HashSet<String>();\n System.out.println(\"Found \" + entities.size()+\" subscribers\");\n for (Entity e: entities) {\n phoneNums.add( (String) e.get(\"phone_num\") );\n }\n return new ArrayList<String>(phoneNums);\n }", "private void showAllTwoots() {\n if (onlyShowFollowing) {\n messages.setItems(feed.getFollowingMessages());\n stage.setTitle(\"Twooter - following only\");\n } else {\n messages.setItems(feed.getMessages());\n stage.setTitle(\"Twooter - all twoots\");\n }\n }", "@Test\n\tpublic void test() {\n\n\t\tSystem.out.println(\"------User Records Creation--------\");\n\n\t\ttry {\n\t\t\tint userId1 = userJDBCTemplate.register(\n\t\t\t\t\tnew User(0, \"Ivan\", \"Ivanov\", \"Ivan888\", \"[email protected]\", \"pass1234\"));\n\t\t\tint userId2 = userJDBCTemplate.register(\n\t\t\t\t\tnew User(0, \"Petar\", \"Petrov\", \"Petar894\", \"[email protected]\", \"pass5678\"));\n\t\t\tint userId3 = userJDBCTemplate.register(\n\t\t\t\t\tnew User(0, \"Georgi\", \"Ivanov\", \"Georgi892\", \"[email protected]\", \"password\"));\n\t\t\tint userId4 = userJDBCTemplate.register(\n\t\t\t\t\tnew User(0, \"Maria\", \"Ivanova\", \"Maria890\", \"[email protected]\", \"password\"));\n\t\t\tsubscriptionJDBCTemplate.subscribe(userId1, userId2);\n\t\t\tsubscriptionJDBCTemplate.subscribe(userId1, userId3);\n\t\t\tsubscriptionJDBCTemplate.subscribe(userId1, userId4);\n\t\t\tsubscriptionJDBCTemplate.subscribe(userId3, userId2);\n\t\t\tsubscriptionJDBCTemplate.subscribe(userId4, userId2);\n\t\t\tsubscriptionJDBCTemplate.unsubscribe(userId3, userId2);\n\t\t\t\n\t\t\tSystem.out.println(\"------Listing User ID \" + userId2 + \"Subscriptions--------\");\n\t\t\tList<Subscription> subscriptions = subscriptionJDBCTemplate.listSubscriptions(userId2);\n\t\t\tfor (Subscription subscription : subscriptions) {\n\t\t\t\tSystem.out.print(\"User ID : \" + subscription.getUserId());\n\t\t\t\tSystem.out.println(\", Subscriber ID : \" + subscription.getSubscriberId());\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"------Listing User ID \" + userId1 + \" Subscibers--------\");\n\t\t\tList<Subscription> subscribers = subscriptionJDBCTemplate.listSubscibers(userId1);\n\t\t\tfor (Subscription subscription : subscribers) {\n\t\t\t\tSystem.out.print(\"User ID : \" + subscription.getUserId());\n\t\t\t\tSystem.out.println(\", Subscriber ID : \" + subscription.getSubscriberId());\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"User ID \" + userId2 + \" subscribed to User ID \" + userId1 + \" - \" + subscriptionJDBCTemplate.checkIfSubscribed(userId1, userId2));\n\t\t\tSystem.out.println(\"User ID \" + userId2 + \" subscribed to User ID \" + userId3 + \" - \" + subscriptionJDBCTemplate.checkIfSubscribed(userId3, userId2));\n\t\t} catch (UserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void oneUserExample()\t{\n\t}", "public void subscribeNewsLetter()\n\t{\n\t\trefApplicationGenericUtils.checkForElement(objectRepository.get(\"TaxonomyPage.SubscribeNewsLetter\"), \"SubscribeNewsLetter\");\n\t\t\n\t\t\n\t\t//scroll till the new letter section\n\t\trefApplicationGenericUtils.scrollToViewElement(objectRepository.get(\"TaxonomyPage.SubscribeNewsLetter\"), \"SubscribeNewsLetter\");\n\t\t\n\t\t\n\t\t//Click on the subscribe\n\t\t\n\t\t\n\t}", "public static void aviUsers() {\n\t\tsendNotification();\r\n\t}", "@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}", "List<Subscription> findActiveSubscriptions(User user);", "private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app\")\n .getReference(\"users/\"+user.getUid()+\"/subscriptions\");\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot dataSnapshot) {\n mSubscriptions.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n Subscription subscription = snapshot.getValue(Subscription.class);\n\n savedSubs.add(subscription);\n mSubscriptions.add(subscription);\n }\n\n adapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n // TODO\n }\n });\n }", "void onUserAdded();", "private void doSubscribe(IoSession session, MessageProtocol request) throws Exception {\n \tbyte[] msg = request.getMessage();\n \t\n \tif (msg == null) {\n \t\t// 用户名不能为空: 06 ff 01 00 01 00 00\n \t\tLOGGER.warn(\"username required.\");\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{1}, (short) 0));\n \t\treturn;\n \t} \n\n\t\tString user = new String(msg, MessageConstants.CHARSET_UTF8);\n\t\t\n\t\t// step 2\n\t\tint channel = request.getChannel();\n\t\tSet<IoSession> receivers = channels.get(channel);\n\t\t\n\t\tif (receivers == null) {\n\t\t\t// 订阅频道不存在: 06 ff 01 00 02 00 00\n\t\t\tLOGGER.warn(\"channel not found: \" + channel);\n\t\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{2}, (short) 0));\n\t\t\treturn;\n\t\t}\n \t\n\t\t// step 3\n\t\tsynchronized (users) {\n \tif (users.contains(user)) {\n \t\t// 用户名已存在: 06 ff 01 00 03 00 00\n \t\tLOGGER.warn(\"user found: \" + user);\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{3}, (short) 0));\n \t\treturn;\n \t} else {\n \t\tusers.add(user);\n \t}\n\t\t}\n\t\t\n\t\t// step 4\n\t\tsession.setAttribute(MessageConstants.KEY_USERNAME, user);\n\t\tsession.setAttribute(MessageConstants.KEY_CHANNEL, channel);\n\t\treceivers.add(session);\n\t\t\n\t\tLOGGER.info(\"doSubscribe: user = \" + user + \", users = \"+ users.size() + \", channel = \" + channel + \", receivers = \" + receivers.size());\n\t\t// 返回订阅成功命令: 06 ff 01 00 00 00 00\n\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{0}, (short) 0));\n }", "public void ShowAllUsers()\r\n {\r\n userList.forEach((s) -> { System.out.println(s); });\r\n }", "public List<Utilizator> listUsers();", "public DefaultListModel getSubscribers()\r\n\t{\r\n\t\treturn subscription;\r\n\t}", "public void getAllUsers() {\n\t\t\n\t}", "public ArrayList getSubscriptions(){\n\t return subscriptions;\n\t}", "private void sendFirebaseLoginSubscribeSuccess() {\n String SUBSCRIPTION_SUBSCRIBED = \"subscribed\";\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_STATUS_KEY, SUBSCRIPTION_SUBSCRIBED);\n mFireBaseAnalytics.setUserProperty(LOGIN_STATUS_KEY, LOGIN_STATUS_LOGGED_IN);\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_PLAN_ID, getActiveSubscriptionId());\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_PLAN_NAME, getActiveSubscriptionPlanName());\n }", "int countByExample(UserTopicExample example);", "int countByExample(UserTopicExample example);", "@Test\r\n\tpublic void testGetContributors() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tObservableList<Contributor> con = cm.getContributors();\r\n\t\tfor(Contributor c:con) {\r\n\t\t\tassertTrue(cm.getContributors().contains(c));\r\n\t\t}\r\n\t}", "@Override\r\npublic void addUserToCourse(User user, Course course) {\n\tSystem.out.println(\"Student \"+user.getName()+ \" has joined the \"+course.getCourseName()+\".\");\r\n\t\t\r\n}", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void printUsersTest() {\n\t\tsrv.printUsers();\n\t}", "public void setSubscriptions(List<User> subscriptions) {\n this.subscriptions = subscriptions;\n }", "public List<List<String>> getUserSubjects(int userId) {\r\n \t\r\n \tCollection<Integer> userLikesSource = jungCompleteGraph.getNeighbors(userId);\r\n \tuserLikesSource.containsAll(getSourceNodes());\r\n \tList<List<String>> userSubjects = new ArrayList<List<String>>();\r\n \t\r\n \tfor (Integer ver: userLikesSource) {\r\n \t\tList<String> tmp = new ArrayList<>();\r\n \t\t\r\n \t\tfor (String edge :jungCompleteGraph.getOutEdges(ver)){\r\n \t\t\tif(edge.contains(\"http://purl.org/dc/terms/subject\")){\r\n \t\t\t\tList<String> tokens = Arrays.asList(getURI(jungCompleteGraph.getDest(edge)).replace(\"http://dbpedia.org/resource/Category:\", \"\").split(\"_\")); \r\n \t\t\t\ttmp.addAll(tokens);\r\n \t\t\t}\r\n \t\t}\r\n \t\tuserSubjects.add(tmp);\r\n \t}\r\n \treturn userSubjects;\r\n \t\r\n }", "public void subscribe() {\n Fitness.getRecordingClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .subscribe(DataType.TYPE_STEP_COUNT_CUMULATIVE)\r\n .addOnCompleteListener(\r\n new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if (task.isSuccessful()) {\r\n Log.i(TAGFit, \"Successfully subscribed!\");\r\n } else {\r\n Log.w(TAGFit, \"There was a problem subscribing.\", task.getException());\r\n }\r\n }\r\n });\r\n }", "@Test\r\n\tpublic void testGetSubjects() {\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub1));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub2));\r\n\t}", "public void populateSubscriptions()\n {\n JSONObject dataJSON = new JSONObject();\n\n httpRequestHandler.sendHTTPRequest(Request.Method.GET,\"/subscription/allCategories\", dataJSON, new HTTPRequestHandler.VolleyCallback() {\n\n @Override\n public void onSuccess(JSONObject jSONObject) throws JSONException {\n JSONArray subscriptionArray = jSONObject.getJSONArray(\"categories\");\n\n subscriptions = new HashMap<>();\n\n for(int i = 0 ; i < subscriptionArray.length() ; i++)\n {\n JSONObject singleEntry = (JSONObject) subscriptionArray.get(i);\n subscriptions.put(singleEntry.getString(\"Category_Name\"), false);\n }\n\n String[] mySubscriptions = userDetails.getSubscribedCategories();\n\n for(int j = 0 ; j < mySubscriptions.length ; j++)\n {\n subscriptions.put(mySubscriptions[j], true);\n }\n\n Log.d(\"Subscribe\", \"My subscriptions \"+subscriptions.toString());\n }\n });\n }", "private void isSubscribed(final String communityId, String uid) {\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference()\n .child(\"Subscribe\")\n .child(uid)\n .child(communityId);\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.exists()) {\n subscribe.setText(\"Unsubscribe\");\n } else {\n subscribe.setText(\"Subscribe\");\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "int getSubscriptionCount();", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onMessageEvent(MessageEventBus event) {\n for (int i = 0; i < list.size(); i++) {\n User userData = list.get(i);\n Integer id = userData.getId();\n String name = userData.getName();\n String username = userData.getUsername();\n String email = userData.getEmail();\n Log.i(\"@@@@@\", \"onMessageEvent : userData : \" + userData.toString());\n textView.append(\"User Id : \" + id + \"\\n\" + \"Name : \" + name + \"\\n\" + \"UserName : \" + username + \"\\n\" + \"Email : \" + email + \"\\n\\n\");\n }\n Toast.makeText(this, event.message, Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void visitEntry(User user) {\n\t\t\n\t\tObservableList<String> messages = user.getFeed().getItems();\n\t\tString currentMessage;\n\t\t\n\t\tfor(int i = 0; i < messages.size(); i++) {\n\t\t\t\n\t\t\tcurrentMessage = messages.get(i);\n\t\t\t\n\t\t\t//Only count the messages sent by the user\n\t\t\tif(currentMessage.startsWith(\" - You\")) {\n\t\t\t\t\n\t\t\t\tmessageCount++;\n\t\t\t\t\n\t\t\t\t//Criteria for a positive message\n\t\t\t\tif(currentMessage.contains(\"cool\") || currentMessage.contains(\"awesome\") || currentMessage.contains(\"happy\") || \n\t\t\t\t currentMessage.contains(\"fun\") || currentMessage.contains(\"exciting\"))\n\t\t\t\t{\n\t\t\t\t\tpositiveCount++;\n\t\t\t\t\t\n\t\t\t\t}//end if\n\t\t\t\t\n\t\t\t}//end if\n\t\t\t\n\t\t}//end for\n\t\t\n\t}", "messages.Facademessages.Subscribe getSubscribe();", "@Override\n public void onUserClicked(Users users) {\n\n }", "boolean hasSubscribe();", "public void getUsersByWeek() throws IOException, SystemException {\n List<UserSubscribeDTO> usersList = planReminderService\n .getUsersByWeeks();\n LOGGER.info(\"userLIst Recievec:\" + usersList);\n shootReminderMails(usersList);\n }", "public void getAllTopics(com.google.protobuf.Empty request,\n io.grpc.stub.StreamObserver<forum.ExistingTopics> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getGetAllTopicsMethod(), getCallOptions()), request, responseObserver);\n }", "void publishMe();", "public void onlineUsers(ArrayList<String> users);", "List<UserTopic> selectByExample(UserTopicExample example);", "List<UserTopic> selectByExample(UserTopicExample example);", "@RequestMapping(value = \"/topics\", method = RequestMethod.GET)\n public String topicsList(ModelMap model, HttpSession session) {\n\t String userCode = session.getAttribute(\"currentUserCode\").toString();\n\t String userRole = session.getAttribute(\"currentUserRole\").toString();\n\t List<mStaff> staffs = staffService.listStaffs();\n\t HashMap<String, String> mStaffCode2Name = new HashMap<String, String>();\n\t for(mStaff st: staffs)\n\t\t mStaffCode2Name.put(st.getStaff_Code(), st.getStaff_Name());\n\t \n\t List<mTopics> topicsList = tProjectService.loadTopicListByStaff(userRole, userCode);\n\t System.out.println(name() + \"::topicsList\"\n\t \t\t+ \", staffs.sz = \" + staffs.size() + \", topicsList.sz = \" + topicsList.size());\n\t for(mTopics p: topicsList){\n\t\t p.setPROJDECL_User_Code(mStaffCode2Name.get(p.getPROJDECL_User_Code()));\n\t\t System.out.println(name() + \"::topicsList, userName = \" + p.getPROJDECL_User_Code());\n\t }\n\t \n\t model.put(\"topicsList\", topicsList);\n\t model.put(\"topics\", status);\n\t return \"cp.topics\";\n }", "String getNewTopic();", "protected SubscriptionsStore getSubscriptions() {\n return subscriptions;\n }", "public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }", "Long setLiveNotificationUsers(long idUserFrom, long idChannel, long key, boolean isPrivately);", "@Override\n public void gotHelper(String message) {\n UsersRequest user = new UsersRequest(this);\n user.getUsers(this);\n }", "private void notifyWishlists(String title) {\n\t\tfor(User u:LibrarySystem.getInstance().users) {\n\t\t\tfor(String wish:u.getWishlist()) {\n\t\t\t\tif(wish.equalsIgnoreCase(title)) {\n\t\t\t\t\tu.notify(\"An item from your wishlist had been added: \" + title + \"!\");\n\t\t\t\t\t//u.getWishlist().remove(title);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void updateLists(){\n subjects.clear();\n for(Message m : user.getMessages()){\n subjects.add(String.format(\"From - %-\" + (40 - m.getFrom().length()) +\"s %20s\", m.getFrom(), m.getTimestamp().substring(0,16)));\n }\n listViewAdapter.notifyDataSetChanged();\n }", "public String getTutorial(){\n return tutorial;\n }", "void subscribe();", "boolean hasTopicSubscription();", "List<String> showNewsAndMessages();", "public void setSubscribed(boolean isSubscribed) {\n\t\tthis.isSubscribed = isSubscribed;\n\t}", "public void addToFollowedUsers(String followedUsers);", "@Override\n public void onSubscribe(String channel, int subscribedChannels) {\n System.out.println(\"Client is Subscribed to channel : \"+ channel);\n }", "private void subscribeTopics(String token) throws IOException {\n GcmPubSub pubSub = GcmPubSub.getInstance(this);\n for (String topic : TOPICS) {\n pubSub.subscribe(token, \"/topics/\" + topic, null);\n }\n }", "boolean hasSubscription();", "private static void ClientObserver() {\n NewsAgency agency = new NewsAgency();\n\n // il canale televisivo le osserva, rilancia\n agency.addObserver( new NewsChannel( \"rai1\") );\n agency.addObserver( new NewsChannel( \"rai2\") );\n\n agency.setNews( \"30 e lode a tutti\" );\n agency.setNews( \"Data test\" );\n }", "public List<UserModel> getAllUsers()\n {\n List<UserModel> userModels =new ArrayList<>();\n //user.findAll().forEach(topics::add);\n for(UserModel userModel : userRepository.findAll())\n {\n userModels.add(userModel);\n }\n return userModels;\n }", "@Override\n\t\t\t\tpublic void newSubscriptionRequest(LinphoneCore lc, LinphoneFriend lf,\n\t\t\t\t\t\tString url) {\n\t\t\t\t\t\n\t\t\t\t}", "public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }", "@Test\r\n public void testAdminSaveSubscriptionAuthorized() throws Exception {\r\n saveJoePublisher();\r\n saveSamSyndicator();\r\n DatatypeFactory fac = DatatypeFactory.newInstance();\r\n List<Subscription> subs = new ArrayList<Subscription>();\r\n Subscription s = new Subscription();\r\n\r\n s.setMaxEntities(10);\r\n s.setBrief(false);\r\n GregorianCalendar gcal = new GregorianCalendar();\r\n gcal.setTimeInMillis(System.currentTimeMillis());\r\n gcal.add(Calendar.HOUR, 1);\r\n s.setExpiresAfter(fac.newXMLGregorianCalendar(gcal));\r\n s.setSubscriptionFilter(new SubscriptionFilter());\r\n s.getSubscriptionFilter().setFindBusiness(new FindBusiness());\r\n s.getSubscriptionFilter().getFindBusiness().setFindQualifiers(new FindQualifiers());\r\n s.getSubscriptionFilter().getFindBusiness().getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);\r\n s.getSubscriptionFilter().getFindBusiness().getName().add(new Name(UDDIConstants.WILDCARD, null));\r\n subs.add(s);\r\n Holder<List<Subscription>> items = new Holder<List<Subscription>>();\r\n items.value = subs;\r\n publisher.adminSaveSubscription(authInfoJoe(), TckPublisher.getSamPublisherId(), items);\r\n for (int i = 0; i < items.value.size(); i++) {\r\n tckSubscription.deleteSubscription(authInfoSam(), items.value.get(i).getSubscriptionKey());\r\n }\r\n\r\n deleteJoePublisher();\r\n deleteSamSyndicator();\r\n\r\n }", "Collection<Subscription> getSubscriptions();", "void printUsers() {\n if (server.hasUsers()) {\n writer.println(\"Connected users: \" + server.getUserNames());\n } else {\n writer.println(\"No other users connected\");\n }\n }", "public String getCampaignUserLikes() {\n return userPollLikes;\n }", "@Override\n\tpublic void newSubscriptionRequest(LinphoneCore lc, LinphoneFriend lf,\n\t\t\tString url) {\n\t\t\n\t}", "int countByExample(OfUserWechatExample example);", "private void subscribeShortLink() {\n mProductDetailsViewModel.getShortLink().observe(this, shortLink -> {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(TEXT_PLAIN);\n intent.putExtra(Intent.EXTRA_SUBJECT, getResources().getString(R.string.app_name));\n intent.putExtra(Intent.EXTRA_TEXT, shortLink.toString());\n startActivity(intent);\n });\n }", "public void showteachers(){\n for (int i=0; i<tlist.size(); i++){\n System.out.println(tlist.get(i).getTeacher());\n }\n }", "List<User> addUsersToShowableList(UserListRequest userListRequest);", "private void addUserAsMarker() {\n firestoreService.findUserById(new OnUserDocumentReady() {\n @Override\n public void onReady(UserDocument userDocument) {\n if(userDocument != null && userDocument.getUserid().equals(preferences.get(\"user_id\",0L))) {\n String id = preferences.get(DOCUMENT_ID, \"\");\n //Add current user to ListInBounds\n userDocumentAll.setDocumentid(id);\n userDocumentAll.setUsername(userDocument.getUsername());\n userDocumentAll.setPicture(userDocument.getPicture());\n userDocumentAll.setLocation(userDocument.getLocation());\n userDocumentAll.setFollowers(userDocument.getFollowers());\n userDocumentAll.setIsvisible(userDocument.getIsvisible());\n userDocumentAll.setIsprivate(userDocument.getIsprivate());\n userDocumentAll.setIsverified(userDocument.getIsverified());\n userDocumentAll.setUserid(userDocument.getUserid());\n userDocumentAll.setToken(userDocument.getToken());\n oneTimeAddableList.add(userDocumentAll);\n }\n }\n\n @Override\n public void onFail() {\n\n }\n\n @Override\n public void onFail(Throwable cause) {\n\n }\n });\n\n }", "public List getTopicSubscriberList()\n {\n return Collections.unmodifiableList(topicSubscriberList);\n }", "public void sendFollowingRequest (String username) {\n communicator.getDB()\n .collection(\"users\")\n .whereEqualTo(\"username\",username)\n .limit(1)\n .get()\n .addOnCompleteListener(task -> {\n if (task.getResult() != null) {\n if (!(task.getResult().isEmpty())){\n for (QueryDocumentSnapshot document : task.getResult()) {\n String UID = document.getId();\n addRequestToMailBox(UID);\n }\n }\n }\n });\n }", "private void subscriptionComplete(String username, String email){\n //preparo la schermata da mostrare\n TextView name = (TextView) findViewById(R.id.user_name_confirm);\n if(name!=null) name.setText(username);\n TextView description = (TextView) findViewById(R.id.new_user_description);\n String desc = getString(R.string.registration_confirmed_description);\n desc = desc.replace(\"FUCKINGMAIL\",email);\n if(description!=null) description.setText(desc);\n //eseguo lo scambio dei layout mostrati\n View first = findViewById(R.id.subscribe_first);\n View second = findViewById(R.id.subscribe_second);\n if(first!=null && second != null) {\n first.setVisibility(View.INVISIBLE);\n second.setVisibility(View.VISIBLE);\n }\n //nascondo pulsanti da toolbar\n menu.findItem(R.id.next).setVisible(false);\n\n }", "public void Admin_Configuration_EmailSubscriptions()\n\t{\n\t\tAdmin_Configuration_EmailSubscriptions.click();\n\t}" ]
[ "0.6335029", "0.6189457", "0.5901636", "0.58030486", "0.57814825", "0.5759302", "0.57544935", "0.57102996", "0.57068956", "0.5696143", "0.56790483", "0.5642353", "0.5634878", "0.5609841", "0.5575165", "0.5572994", "0.55419195", "0.55412376", "0.55281466", "0.54910475", "0.54794127", "0.5463849", "0.5432646", "0.54238725", "0.5421278", "0.54016525", "0.54001737", "0.5399902", "0.53632575", "0.53428876", "0.53408223", "0.5338609", "0.5334689", "0.52981085", "0.5291912", "0.52868485", "0.5271558", "0.5259818", "0.52555615", "0.52221423", "0.52115196", "0.52076083", "0.51919556", "0.51919556", "0.5184452", "0.5184236", "0.51826936", "0.51820713", "0.51807165", "0.51664424", "0.51642567", "0.5159368", "0.51541555", "0.51457787", "0.5142232", "0.5140685", "0.51376456", "0.51370597", "0.51175296", "0.5117524", "0.5113856", "0.51035553", "0.5102379", "0.50988317", "0.5094942", "0.5094942", "0.5090981", "0.5080108", "0.50777304", "0.5076186", "0.50759", "0.50729144", "0.506952", "0.50684196", "0.50645435", "0.50510794", "0.5049321", "0.503591", "0.50354767", "0.50308955", "0.5030701", "0.502894", "0.5028816", "0.5026762", "0.50220096", "0.50206447", "0.5015757", "0.5015215", "0.5012258", "0.50087047", "0.5004191", "0.50029236", "0.49981695", "0.49978626", "0.49963567", "0.49959362", "0.49935704", "0.49923474", "0.49921006", "0.49903953", "0.4984655" ]
0.0
-1
description: author: freed on 2019/9/14
public interface LoginView { void showProgress(); void hideProgress(); void setUsernameError(); void setPasswordError(); void navigateToHome(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int describeContents() { return 0; }", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "@Override\n public String getDescription() {\n return description;\n }", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\n public void author()\n {\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public void describeTo(Description arg0) {\n \n }", "public String getDescription(){ return description; }", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "@Override\n public String describe() {\n return null;\n }", "@Override public int describeContents() { return 0; }", "@Override\r\n public int describeContents() {\r\n return 0;\r\n }", "@Override\n protected String getDescription() {\n return null;\n }", "@Override\n public String getDescription() {\n return name;\n }", "@Override\n public void author_()\n {\n }", "@Override\n public String getDescription()\n {\n return null;\n }", "@Override\n public String getDescription() {\n return \"Asset issuance\";\n }", "public String getDescription()\r\n {\r\n return \"unknow\";\r\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn author;\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "public abstract String description();", "public abstract String description();", "public abstract void description();", "@Override\r\n\tpublic String getDescription() {\n\t\treturn \"\";\r\n\t}", "public void setDescription(String description){this.description=description;}", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "@Override\n public String getDescription() {\n return description;\n }", "@Override\n public void setDescription(String arg0)\n {\n \n }", "private stendhal() {\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public String getDescription ();", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:02.373 -0500\", hash_original_method = \"00F8174F9E89D0C972FA6D3F19742382\", hash_generated_method = \"D90463461B2A94FF94D13FDF69BB80C9\")\n \npublic int describeContents() {\n return 0;\n }", "public String getDescription() { return description; }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public String getDescription() {\n return descriptionText;\n }", "@Override\n public void perish() {\n \n }", "public String description();", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn null;\r\n\t}", "@Override\n public String getDescription() {\n return \"Alias buy\";\n }", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();" ]
[ "0.6314426", "0.6259366", "0.6197575", "0.61886597", "0.61086166", "0.60977423", "0.60634404", "0.60318345", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.59810174", "0.5978951", "0.5960026", "0.5933431", "0.5933431", "0.59180033", "0.5905325", "0.5862545", "0.5858717", "0.58491844", "0.5829305", "0.5820562", "0.5818845", "0.5813142", "0.5803935", "0.57978326", "0.5795915", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.57912856", "0.5786117", "0.5786117", "0.5777197", "0.5757727", "0.57230604", "0.5722847", "0.572198", "0.5719874", "0.57026345", "0.5700706", "0.56961524", "0.56921196", "0.56823826", "0.56823826", "0.56823826", "0.56823826", "0.56823826", "0.5673987", "0.5672427", "0.5668408", "0.56650484", "0.5653921", "0.56385696", "0.56371045", "0.56065625", "0.5594481", "0.5594481", "0.5588519", "0.55822897", "0.55822897", "0.55822897", "0.55822897", "0.55822897", "0.55822897", "0.55822897" ]
0.0
-1
Adiciona uma nova conta ao Banco.
public void addAccount(BankAccount newAccount) { accounts.add(newAccount); // Insere no final do vetor. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adicionar(ContaBancaria conta) {\n contas.add(conta);\n }", "public void inserir(ContaBancaria contaBancaria) {\n\t\tcontas.add(contaBancaria);\n\n\t}", "public void adicionarObraBD(Obra obra) {\n ContentValues values = new ContentValues();\n values.put(ID_OBRA, obra.getId());\n values.put(IMG_CAPA, obra.getImgCapa());\n values.put(TITULO, obra.getTitulo());\n values.put(RESUMO, obra.getResumo());\n values.put(EDITOR, obra.getEditor());\n values.put(ANO, obra.getAno());\n values.put(TIPO_OBRA, obra.getTipoObra());\n values.put(DESCRICAO, obra.getDescricao());\n values.put(LOCAL, obra.getLocal());\n values.put(EDICAO, obra.getEdicao());\n values.put(ASSUNTOS, obra.getAssuntos());\n values.put(PRECO, obra.getPreco());\n values.put(CDU_ID, obra.getCdu_id());\n values.put(DATA_REGISTO, obra.getDataRegisto());\n values.put(DATA_ATUALIZADO, obra.getDataAtualizado());\n\n this.db.insert(TABLE_OBRA, null, values);\n }", "void adicionaComentario(Comentario comentario);", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}", "private void criaContaCliente (String cpf) {\n this.contasClientes.put(cpf, new Conta(cpf));\n }", "public void inserir(Comentario c);", "private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\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 ContaBancaria() {\n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "public void salvarNoBanco() {\n\n try {\n ofertaDisciplinaFacade.save(oferta);\n// JsfUtil.addSuccessMessage(\"Pessoa \" + pessoa.getNome() + \" criado com sucesso!\");\n oferta= null;\n// recriarModelo();\n } catch (Exception e) {\n JsfUtil.addErrorMessage(e, \"Ocorreu um erro de persistência\");\n }\n }", "public CriaBanco (Context context){\n\n super (context, NOME_BD, null, VERSAO);\n }", "public static Contiene insertContiene(int cantidad_contiene,\n float costo_adicional_contiene,\n Paquete paquete,Servicio servicio){\n \n \n Contiene miContiene = new Contiene(cantidad_contiene, costo_adicional_contiene, \n paquete, servicio); \n \n try {\n miContiene.registrarContiene();\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return miContiene;\n }", "public static void tambahPasienBaru(Pasien pasienBaru) {\r\n daftarPasien.add(pasienBaru);\r\n }", "public void add(Conseiller c) {\n\t\t\r\n\t}", "public void associaListaContatti(int IDContatto, int IDListaContatti) {\n\t\t\n\t\ttry {\n \t\n\t\t\tContattoListaContattiDAO.createContattoListaContatti(IDContatto, IDListaContatti);\n \n } catch (SQLException exception) {\n \t\n exception.printStackTrace();\n \n }\n\n\t}", "public void añadircliente(ClienteHabitual cliente) throws SQLException{\n Connection conexion = null;\n \n try{\n conexion = GestionSQL.openConnection();\n if(conexion.getAutoCommit()){\n conexion.setAutoCommit(false);\n }\n \n ClientesHabitualesDatos clientesdatos = new ClientesHabitualesDatos(conexion);\n clientesdatos.insert(cliente);\n conexion.commit();\n System.out.println(\"Cliente ingresado con exito\");\n \n }catch(SQLException ex){\n System.out.println(\"Error al insertar \"+ex);\n try{\n //Tratamos la excepcion y se agega un rollback para evitar males mayores en la BD\n conexion.rollback();\n System.out.println(\"Procediendo a rollback\");\n }catch(SQLException ex1){\n System.out.println(\"Error en rollback de insertado \"+ex1);\n }\n }finally{\n if (conexion != null){\n conexion.close();\n }\n }\n }", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "public void adiciona(Servidor novo) {\n String sql = \"insert into servidor \"\n + \"(nome, email, codcampus, cargo, papel, login, senha, adm, logado, definitivo)\"\n + \" values (?,?,?,?,?,?,?,?,?,?)\";\n\n try (Connection con = new ConnectionFactory().Conn()) {\n PreparedStatement stmt;\n stmt = con.prepareStatement(sql);\n\n stmt.setString(1, novo.getNome());\n stmt.setString(2, novo.getEmail());\n stmt.setInt(3, novo.getCampus());\n stmt.setString(4, novo.getCargo());\n stmt.setString(5, novo.getPapel());\n stmt.setString(6, novo.getLogin());\n stmt.setString(7, novo.getSenha());\n stmt.setInt(8, novo.isAdm());\n stmt.setInt(9, novo.isLogado());\n stmt.setInt(10, novo.isSystem());\n\n stmt.execute();\n stmt.close();\n\n JOptionPane.showMessageDialog(null, \"Servidor adicionado\", \"\", JOptionPane.INFORMATION_MESSAGE);\n\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Erro ao Adicionar\", \"\", JOptionPane.ERROR_MESSAGE);\n throw new RuntimeException(e);\n }\n }", "@Override\n public void agregarComentario(String pNumFinca, String pComentario) throws SQLException {\n Comentario comentario = new Comentario(pComentario, Integer.parseInt(pNumFinca));\n bdPropiedad.manipulationQuery(\"INSERT INTO COMENTARIO (ID_PROPIEDAD, COMENTARIO) VALUES (\" + \n comentario.getIdPropiedad() + \", '\" + comentario.getComentario() + \"')\");\n comentarios.add(comentario);\n }", "public Banco(String nome) { // essa linha é uma assinatura do metodo\n \tthis.nome = nome;\n }", "public void adicionadoConversa (IConversa conversa) {\n this.conversas.add(conversa);\n }", "public void add(Object objeto) throws BolsaCompletaException {\r\n\r\n\t\tif (lista.size() < tope) { // chequeamos que la bolsa ya no este llena\r\n\t\t\tlista.add(objeto);// agregamos el objeto a la bolsa\r\n\t\t\tSystem.out.println(\"Se Agrego el objeto a la bolsa\");\r\n\t\t} else {\r\n\r\n\t\t\t throw new BolsaCompletaException(\" Cosas \");//recordar agregar throws\r\n\t\t\t//throw new RuntimeException(\"No Caben Mas elementos\");\r\n\t\t}\r\n\r\n\t}", "public void adiciona(Computador computador)throws SQLException{\n\n\t\tString sql = \"insert into \" + TABELA + \" (codigo,descricao,preco) values (?,?,?)\";\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\t//setar os parametros da query sql\n\t\tstmt.setLong(1, computador.getCodigo());\n\t\tstmt.setString(2, computador.getDescricao());\n\t\tstmt.setFloat(3, computador.getPreco());\n\n\t\tstmt.execute();\n\t\tstmt.close();\n\t}", "@Override\n\tpublic void createBanque(Banque b) {\n\t\t\n\t}", "public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n cliente = new Cliente();\n\n }\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n\n }", "public void inserirContato() {\n\t\tSystem.out.println(\"Digite o nome do novo contato: \");\n\t\tString contato = scanner.nextLine();\n\t\tlistaDeContatos.add(contato);\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "public void adicionaExame(ExameColposcopico exame) {\n\t\tEntityManager entityManager = ExameColposcopioFactory.carregaBanco();\n//\t\thttps://www.guj.com.br/t/hibernate-jsf-erro-ao-persistir-objeto/337939\n\t\tif (!entityManager.getTransaction().isActive()) \n\t\t\tentityManager.getTransaction().begin();\n\t\tentityManager.persist(exame);\n\t\tentityManager.getTransaction().commit();\n\t}", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public com.spirit.cartera.entity.CuentasPorCobrarIf addCuentasPorCobrar(com.spirit.cartera.entity.CuentasPorCobrarIf model)\r\n throws com.spirit.exception.GenericBusinessException \r\n {\r\n CuentasPorCobrarEJB value = new CuentasPorCobrarEJB();\r\n try {\r\n value.setId(model.getId());\r\n value.setCarteraId(model.getCarteraId());\r\n value.setCodigo(model.getCodigo());\r\n value.setPreimpreso(model.getPreimpreso());\r\n value.setFechaEmision(model.getFechaEmision());\r\n value.setComentario(model.getComentario());\r\n value.setTipodocumentoId(model.getTipodocumentoId());\r\n value.setReferenciaId(model.getReferenciaId());\r\n value.setValor(model.getValor());\r\n value.setSaldo(model.getSaldo());\r\n value.setFacturaId(model.getFacturaId());\r\n value.setFechaFactura(model.getFechaFactura());\r\n value.setOficinaId(model.getOficinaId());\r\n value.setObservacion(model.getObservacion());\r\n value.setClienteId(model.getClienteId());\r\n value.setRazonSocial(model.getRazonSocial());\r\n value.setIdentificacion(model.getIdentificacion());\r\n value.setClienteOficinaId(model.getClienteOficinaId());\r\n queryManagerLocal.persist(value);\r\n } catch (Exception e) {\r\n log.error(\"Error al insertar información en cuentasPorCobrar.\", e);\r\n\t\t\tthrow new GenericBusinessException(\r\n\t\t\t\t\t\"Error al insertar información en cuentasPorCobrar.\");\r\n }\r\n \r\n return getCuentasPorCobrar(value.getPrimaryKey());\r\n }", "private void addCoche(ClickEvent clickEvent) throws NotFoundExcept {\r\n\t\tCocheDTO cocheDTO = new CocheDTO();\r\n\t\taddCocheSetValues(cocheDTO);\r\n\t\tcocheService.create(cocheDTO);\r\n\t\taddCocheEraseFields();\r\n\t\tthis.refresh(clickEvent);\r\n\t}", "public static void adicionar(Object c){\n objetos.Adicionar(c);\n }", "public void add(Combustivel c) {\n combs.add(c);\n fireTableRowsInserted(combs.size() - 1, combs.size() - 1);\n }", "public void addTipoContrato(String nombre, int diasIndemnizacion)throws BusinessException;", "public void insertar(Cliente c) {\n if (cabeza == null) { //En caso de que la cabeza sea nula, el dato sera el primero de la lista.\n cabeza = new NodoCliente(c);\n } else {\n if (c.getEspacios() <= cabeza.getDato().getEspacios()) { //Con ayuda de la condicion \"if\" y \"else\" de abajo, se orden los datos por espacios reservados,\n NodoCliente aux = new NodoCliente(c); //de menor a mayor.\n aux.setNext(cabeza);\n cabeza = aux;\n } else {\n if (cabeza.getNext() == null) {\n cabeza.setNext(new NodoCliente(c));\n } else {\n NodoCliente aux = cabeza;\n while (aux.getNext() != null && c.getEspacios() > aux.getNext().getDato().getEspacios()) {\n aux = aux.getNext();\n }\n NodoCliente temp = new NodoCliente(c);\n temp.setNext(aux.getNext());\n aux.setNext(temp);\n }\n }\n }\n }", "@Override\n public ComprobanteContable createComprobante(Aerolinea a, Boleto boleto, Cliente cliente, String tipo, NotaDebito nota) throws CRUDException {\n\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n return comprobante;\n }", "com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();", "@RequestMapping(value = \"/bancos\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Banco> createBanco(@Valid @RequestBody Banco banco) throws URISyntaxException {\n log.debug(\"REST request to save Banco : {}\", banco);\n if (banco.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"banco\", \"idexists\", \"A new banco cannot already have an ID\")).body(null);\n }\n Banco result = bancoService.save(banco);\n return ResponseEntity.created(new URI(\"/api/bancos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"banco\", result.getId().toString()))\n .body(result);\n }", "@FXML\n private void addNewCoach() {\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"insert into szkolka.uzytkownik(imie, nazwisko, id_tu) values('\" +\n coachName.getText() + \"', '\" + coachSurname.getText() + \"', 2);\");\n st.close();\n coachName.setText(\"\");\n coachSurname.setText(\"\");\n setCoachesTable();\n }\n } catch (SQLException e) {\n warningText.setVisible(true);\n }\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public agregarArticulo(String user, String password, String vend, String codigoVend) {\n initComponents();\n usu = user;\n contra = password;\n\n try {\n model = new ConnectionTableDB(usu, contra, \"adv_facturacion\", \"SELECT tipo_producto from tipo_producto\", false);\n\n for (int i = 0; i < model.getRowCount(); i++) {\n tipo.addItem(String.valueOf(model.getValueAt(i, 0)));\n }\n //this.getContentPane().setBackground(Color.white);\n } catch (SQLException ex) {\n Logger.getLogger(agregarArticulo.class.getName()).log(Level.SEVERE, null, ex);\n }\n model.desconectar();\n }", "public void addHabitacion(Habitacion habitacion) throws Exception \n\t\t{\n\t\t\t\n\t\t\tDAOHabitacion daoHabitacion = new DAOHabitacion( );\n\t\t\ttry\n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoHabitacion.setConn(conn);\n\t\t\t\tdaoHabitacion.addHabitacion(habitacion);\n\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoHabitacion.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void adicionarItem(Cerveja cerveja, Integer quantidade){\r\n\t\t\r\n\t\t// filtra o item adicionado\r\n\t\tOptional<ItemVenda> itemVendaOptional = buscarItemPorCerveja(cerveja);\r\n\t\t\r\n\t\tItemVenda itemVenda = null;\r\n\t\t\r\n\t\t// caso o item ja exista no carrinho de compras altere somente a quantidade\r\n\t\tif(itemVendaOptional.isPresent()){\r\n\t\t\titemVenda = itemVendaOptional.get();\r\n\t\t\t\r\n\t\t\t//altera a quantidade somando a quantidade atual + a nova quantidade informada \r\n\t\t\titemVenda.setQuantidade(itemVenda.getQuantidade() + quantidade);\r\n\t\t\t\r\n\t\t\t\r\n\t\t// \tadicione um novo item no carrinho\r\n\t\t}else{\r\n\t\t\titemVenda = new ItemVenda();\r\n\t\t\titemVenda.setCerveja(cerveja);\r\n\t\t\titemVenda.setQuantidade(quantidade);\r\n\t\t\titemVenda.setValorUnitario(cerveja.getValor());\r\n\t\t\t\r\n\t\t\t// possiciona o novo item criado na primeira posicao da lista\r\n\t\t\titens.add(0, itemVenda);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean adicionar(Veiculo veiculo) {\n\t\treturn false;\n\t}", "public void addBomba() \r\n {\r\n misBombas.add(new Bomba(this));\r\n }", "public void addNewBenificiary() {\n\t\t\tsetColBankCode(null);\n\t\t\tsetCardNumber(null);\n\t\t\tsetPopulatedDebitCardNumber(null);\n\t\t\tsetApprovalNumberCard(null);\n\t\t\tsetRemitamount(null);\n\t\t\tsetColAuthorizedby(null);\n\t\t\tsetColpassword(null);\n\t\t\tsetApprovalNumber(null);\n\t\t\tsetBooAuthozed(false);\n\t\t\tbankMasterList.clear();\n\t\t\tlocalbankList.clear();// From View V_EX_CBNK\n\t\t\tlstDebitCard.clear();\n\n\t\t\t// to fetch All Banks from View\n\t\t\t//getLocalBankListforIndicatorFromView();\n\t\t\tlocalbankList = generalService.getLocalBankListFromView(session.getCountryId());\n\n\t\t\tList<BigDecimal> duplicateCheck = new ArrayList<BigDecimal>();\n\t\t\tList<ViewBankDetails> lstofBank = new ArrayList<ViewBankDetails>();\n\t\t\tif (localbankList.size() != 0) {\n\t\t\t\tfor (ViewBankDetails lstBank : localbankList) {\n\t\t\t\t\tif (!duplicateCheck.contains(lstBank.getChequeBankId())) {\n\t\t\t\t\t\tduplicateCheck.add(lstBank.getChequeBankId());\n\t\t\t\t\t\tlstofBank.add(lstBank);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetBankMasterList(lstofBank);\n\t\t\tsetBooRenderSingleDebit(true);\n\t\t\tsetBooRenderMulDebit(false);\n\t\t}", "public void carregarCliente() {\n\t\tgetConnection();\n\t\ttry {\n\t\t\tString sql = \"SELECT CLIENTE FROM CLIENTE ORDER BY CLIENTE\";\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tcbCliente.addItem(rs.getString(\"CLIENTE\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\tSystem.out.println(\"ERRO\" + e.toString());\n\t\t}\n\t}", "public void create(Membre membre) {\n try {\n// em = getEntityManager();\n// entManager.getTransaction().begin();\n entManager.persist(membre);\n// entManager.getTransaction().commit();\n } finally {\n// if (entManager.getTransaction() != null) {\n// entManager.close();\n// }\n }\n }", "public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }", "@Override\n public ComprobanteContable createComprobante(\n Aerolinea a, Boleto boleto, Cliente cliente, String tipo) throws CRUDException {\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n return comprobante;\n }", "@Override\n\tpublic void agregar(Alumno alumno) {\n\t\tcomision.add(alumno);\n\t}", "public void atualizarIdContaEmpresaCobrancaConta(Integer idContaAntigo, Integer idContaNovo)throws ErroRepositorioException;", "public static void inserir(Venda venda)\r\n throws Exception {\r\n venda.setId(totalVenda++);\r\n listaVenda.add(venda);\r\n }", "@Override\r\n\tpublic Bloco0 criarBloco(MovimentoMensalIcmsIpi movimentoMensalIcmsIpi) {\n\t\tLOG.log(Level.INFO, \"Montando o BLOCO 0, com INICIO em: {0} e TERMINO: {1} \", movimentoMensalIcmsIpi.getDataInicio());\r\n\t\tBloco0 bloco0 = new Bloco0();\r\n\t\t\r\n\t\t/**\r\n\t\t * TODO (Para ver/pensar melhor)\r\n\t\t * Ver se eu tenho que fazer alguma validação aqui. Ex.: irá preecher registro X para aquele Mês?\r\n\t\t * Tentar capturar possiveis erros.: Ex o famosão -> @NullPointerException\r\n\t\t */\r\n\t\t\r\n\t\tbloco0.setReg0000(reg0000Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0001(reg0001Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0005(reg0005Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0100(reg0100Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0150(reg0150Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0190(reg0190Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0200(reg0200Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0400(reg0400Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0450(reg0450Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n//\t\tbloco0.setReg0460(reg0460Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n//\t\tbloco0.setReg0990(montarEncerramentoDoBloco0(bloco0));\r\n\t\t\r\n\t\tLOG.log(Level.INFO, \"Montagem do BLOCO 0, TEMINADA! {0} \" ,bloco0);\r\n\t\treturn bloco0;\r\n\t}", "public void insert(Calificar c){\n Session session = sessionFactory.openSession();\n \n Transaction tx = null;\n \n try{\n tx = session.beginTransaction();\n \n session.persist(c);\n tx.commit();\n }\n catch(Exception e){\n if(tx != null){ tx.rollback(); }\n e.printStackTrace();\n }\n finally { session.close(); }\n }", "private void populaFaixaEtariaCat()\n {\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Até 15 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 16 a 19 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 20 a 30 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 31 a 45 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 46 a 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Mais de 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Todas as idades\"));\n\n }", "private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }", "public int criarConta(double valor){\n\t\tint idAux;\n\n\t\t// lock no banco\n\t\tthis.lockBanco.lock();\n\n\t\ttry{\n\t\t\t// criar a conta\n\t\t\tConta conta = new Conta(this.lastId, valor);\n\n\t\t\t// meter no map\n\t\t\tthis.contas.put(lastId, conta);\n\n\t\t\t// incrementar o id\n\t\t\tidAux = this.lastId;\n\t\t\tthis.lastId++;\n\n\t\t} finally{\n\t\t\t// unlock do banco\n\t\t\tthis.lockBanco.unlock();\n\t\t}\n\n\t\treturn idAux;\n\t}", "ParqueaderoEntidad agregar(String nombre);", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "private void registrar() {\n String nombre = txtNombre.getText();\n if (!nombre.trim().isEmpty()) {\n Alumno a = new Alumno();\n \n // cont++ , ++cont\n// contIds++;\n a.setNombre(nombre);\n a.setId(++contIds);\n \n listaAlumnos.add(a);\n\n lblCantidad.setText(\"Cantidad de nombres: \" + listaAlumnos.size());\n\n txtNombre.setText(null);\n txtNombre.requestFocus();\n // Actualiza la interfaz gráfica de la tabla\n tblNombres.updateUI();\n \n// int cont = 1;\n// System.out.println(\"------------------\");\n// System.out.println(\"Listado de alumnos\");\n// System.out.println(\"------------------\");\n// for (String nom : listaNombres) {\n// System.out.println(cont+\") \"+nom);\n// cont++;\n// }\n// System.out.println(\"------------------\");\n }\n }", "void addContinent(Continent continent);", "private void insertar(String nombre, String Contra) {\n ini.Tabla.insertar(nombre, Contra);\n AVLTree arbol = new AVLTree();\n Nod nodo=null;\n ini.ListaGen.append(0,0,\"\\\\\",nombre,\"\\\\\",\"\\\\\",arbol,\"C\",nodo); \n \n }", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }", "@Override\n public ComprobanteContable createAsientoDiarioBoleto(Boleto boleto) throws CRUDException {\n\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n /*Aerolinea a = em.find(Aerolinea.class, boleto.getIdAerolinea().getIdAerolinea());\n if (a != null) {\n buff.append(a.getNumero());\n }*/\n buff.append(boleto.getIdAerolinea().getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas \n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n Cliente c = em.find(Cliente.class, boleto.getIdCliente().getIdCliente());\n op = Optional.ofNullable(c);\n\n if (!op.isPresent()) {\n throw new CRUDException(\"No se encontro un Cliente para el boleto\");\n }\n\n comprobante.setIdCliente(c);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(ComprobanteContable.Tipo.ASIENTO_DIARIO);\n\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), ComprobanteContable.Tipo.ASIENTO_DIARIO);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setIdNumeroGestion(numero);\n\n return comprobante;\n }", "public void adicionar(Pessoa pessoa){\n adicionar(raiz, pessoa);\n }", "public void addConsumable(Consumable consumable) {\n KinoXP.consumableList.add(consumable);\n DBConsumables dbConsumables = new DBConsumables();\n dbConsumables.insert(consumable);\n }", "public static void adicionarContato(Scanner sc, Agenda agenda) {\n\t\ttry {\n\t\tSystem.out.println(\"Criando o contato entre com as informacoes: \");\n\t\tString nome = lerInformacaoString(sc, \"entre com o nome do contato: \");\n\t\tString telefone = lerInformacaoString(sc, \"entre com o telefone: \");\n\t\tString email = lerInformacaoString(sc, \"entre com o email: \");\n\t\t\n\t\t//criando o objeto passando os parementro que pegamos acima\n\t\tContato contato = new Contato();\n\t\tcontato.setNome(nome);\n\t\tcontato.setTelefone(telefone);\n\t\tcontato.setEmail(email);\n\t\t\n\t\tSystem.out.println(\"contato criado\");\n\t\tSystem.out.println(contato);\n\t\t\n\t\t//adicionando o contato na agenda\n\t\tagenda.adicionarContato(contato);\n\t\t\n\t\t//tratando a exception\n\t\t}catch(AgendaCheiaException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"Contatos da agenda \");\n\t\t\tSystem.out.println(agenda);\n\t\t}\n\t\t\n\t}", "public void addNen(Nen ac) {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tem.persist(ac);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t}", "public ComentPregunta addComentario(String c, Pregunta p, Usuario autor);", "private void criarConexao(){\n\n try {\n\n clientOpenHelper = new ClientOpenHelper(this);\n\n conexao = clientOpenHelper.getWritableDatabase();\n\n Snackbar.make(layoutMain, R.string.Aviso, Snackbar.LENGTH_SHORT)\n .setAction(R.string.ok,null)\n .show();\n clienteRepositorio = new ClienteRepositorio(conexao);\n }catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Error\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }", "private void agregarMarcadorAlto() {\n SharedPreferences preferencias = actividadJuego.getSharedPreferences(\"marcadorAlto\", Context.MODE_PRIVATE);\n int puntos = preferencias.getInt(\"puntos\",0);\n\n txtMarcador = new Text(ControlJuego.ANCHO_CAMARA/2,ControlJuego.ALTO_CAMARA-80,\n fontMonster,\"Marcador mayor: \"+puntos,actividadJuego.getVertexBufferObjectManager());\n attachChild(txtMarcador);\n }", "void addBank(IBank bank) throws RemoteException;", "@FXML\n public void insereCidade(){\n try{ \t\n \tif(txtNome.getText().equals(\"\"))\n \t\tthrow new NullPointerException();\n \t\n \tif(txtNome.getText().matches(\".*\\\\d+.*\"))\n \t\tthrow new TemNumeroException();\n \t\n \tif(txtUf.getSelectionModel().isEmpty())\n \t\tthrow new NullPointerException();\n\n \tCidade c = new Cidade();\n \tc.setNome(txtNome.getText());\n \tc.setUf(txtUf.getSelectionModel().getSelectedItem());\n \tc.insere(conn);\n \tattTblCidade();\n \tlimpaCidade();\n \tMensagens.msgInformacao(\"Parabéns\",\"Cidade cadastrada com sucesso\");\n \t\n \t}catch (TemNumeroException e){\n \t\tMensagens.msgErro(\"FALHA\",\"O campo destacado não pode conter números\"); \n \t\t}catch (NullPointerException e){\n \t\t\tMensagens.msgErro(\"FALHA\",\"Preencha todos os campos\"); \n \t}catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "private void controladorNuevoColectivo(Controlador controlador){\n this.contNuevoColectivo = controlador.getNuevoColectivo();\n nuevoColectivo.setControlCreateCollective(contNuevoColectivo);\n }", "public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }", "@Override\n public void add(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)\");\n\n pstmt.setString(1, entity.getNombre());\n pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n \n pstmt.execute();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n public AsientoContable crearTotalCancelar(final Boleto b, final ComprobanteContable cc,\n final ContabilidadBoletaje conf, final Aerolinea a, final NotaDebitoTransaccion idTransaccion) {\n\n AsientoContable totalCancelar = new AsientoContable();\n\n totalCancelar.setGestion(cc.getGestion());\n //totalCancelar.setAsientoContablePK(new AsientoContablePK(0, cc.getGestion()));\n totalCancelar.setIdLibro(cc);\n totalCancelar.setGestion(cc.getGestion());\n totalCancelar.setFechaMovimiento(DateContable.getCurrentDate());\n totalCancelar.setEstado(ComprobanteContable.EMITIDO);\n //totalCancelar.setIdBoleto(b.getIdBoleto);\n totalCancelar.setIdBoleto(b);\n totalCancelar.setIdNotaTransaccion(idTransaccion);\n totalCancelar.setTipo(AsientoContable.Tipo.BOLETO);\n\n if (b.getTipoCupon().equals(Boleto.Cupon.INTERNACIONAL)) {\n totalCancelar.setMontoDebeExt(b.getTotalMontoCobrar());\n totalCancelar.setMontoDebeNac(b.getTotalMontoCobrar() != null\n ? b.getTotalMontoCobrar().multiply(b.getFactorCambiario().setScale(Contabilidad.VALOR_DECIMAL_2, BigDecimal.ROUND_DOWN))\n : null);\n totalCancelar.setIdPlanCuenta(conf.getIdTotalBoletoUs());\n totalCancelar.setMoneda(Moneda.EXTRANJERA);\n } else if (b.getTipoCupon().equals(Boleto.Cupon.NACIONAL)) {\n Double montoHaber = b.getTotalMontoCobrar() != null ? b.getTotalMontoCobrar().doubleValue() / b.getFactorCambiario().doubleValue() : 0.0f;\n totalCancelar.setMontoDebeExt(new BigDecimal(montoHaber).setScale(Contabilidad.VALOR_DECIMAL_2, BigDecimal.ROUND_DOWN));\n totalCancelar.setMontoDebeNac(b.getTotalMontoCobrar());\n totalCancelar.setIdPlanCuenta(conf.getIdTotalBoletoBs());\n totalCancelar.setMoneda(Moneda.NACIONAL);\n }\n\n return totalCancelar;\n }", "@Override\r\n\tpublic void onBoAdd(ButtonObject bo) throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoAdd(bo);\r\n\t\tgetBillCardPanelWrapper().getBillCardPanel().setHeadItem(\"pp_archive\", 0);\r\n\t}", "public void inserir(Cliente cliente){\n\t\tclientes[indice++] = cliente;\n\t\t\n\t}", "void insert(CTipoComprobante record) throws SQLException;", "public void creaListaContatti(ListaContatti l) {\n\t\t\n\t\ttry {\n \t\n\t\t\tListaContattiDAO.createListaContatti(l);\n \n } catch (SQLException exception) {\n \t\n exception.printStackTrace();\n \n }\n\n\t}", "public TelaCaixa() {\n initComponents();\n InterfaceUtils.preparaTela(this);\n\n List<Caixa> caixas;\n Caixa caixa = null;\n CaixaJpaController caixaController = new CaixaJpaController(ipsum2.Ipsum2.getFactory());\n caixas = caixaController.getEntityManager().createNamedQuery(\"Caixa.findAll\").getResultList();\n for (Caixa c : caixas) {\n if (c.getCodcaixa() == 1) {\n caixa = c;\n }\n }\n if (caixa == null) {\n caixa = new Caixa();\n caixa.setCodcaixa(1);\n caixa.setSaldo(0.0);\n caixa.setStatus(Short.parseShort(\"1\"));\n try {\n caixaController.create(caixa);\n } catch (Exception ex) {\n Logger.getLogger(TelaCaixa.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n if (caixa.getStatus() == 1) {\n statusCaixa.setText(\"Aberto\");\n alterar.setEnabled(true);\n novoLanc.setEnabled(true);\n\n } else {\n statusCaixa.setText(\"Fechado\");\n alterar.setEnabled(false);\n novoLanc.setEnabled(false);\n }\n List<Lancamento> lancamentos;\n LancamentoJpaController lancamentoController = new LancamentoJpaController(ipsum2.Ipsum2.getFactory());\n lancamentos = lancamentoController.getEntityManager().createNamedQuery(\"Lancamento.findAll\").getResultList();\n this.listLancamentos = lancamentos;\n lancamentos = lancamentoController.getEntityManager().createNamedQuery(\"Lancamento.findByEstorno\").setParameter(\"estorno\", (short) 0).getResultList();\n this.listLancamentosAtivos = lancamentos;\n double saldoCaixa = 0.0;\n for (Lancamento l : lancamentos) {\n if (l.getLancamentoEntrada() != null && l.getEstorno() == 0) {\n saldoCaixa += l.getValor();\n }\n if (l.getLancamentoSaida() != null && l.getEstorno() == 0) {\n saldoCaixa -= l.getValor();\n }\n if (l.getLancamentoRecforn() != null && l.getEstorno() == 0) {\n saldoCaixa += l.getValor();\n }\n if (l.getLancamentoPagfunc() != null && l.getEstorno() == 0) {\n saldoCaixa -= l.getValor();\n }\n }\n saldo.setText(\"R$ \" + String.valueOf(saldoCaixa).replace(\".\", \",\"));\n this.saldoFinal = saldoCaixa;\n caixa.setSaldo(saldoCaixa);\n this.caixa = caixa;\n try {\n caixaController.edit(caixa);\n } catch (Exception ex) {\n Logger.getLogger(TelaCaixa.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n this.insereTabela(lancamentos);\n\n }", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "void addAdvert(Advert advert);", "public void inicializar() {\r\n\t\tthis.bloqueado = false;\r\n\t}", "public boolean insert(Contribuyente contribuyente){\n return true;\n }", "@Override\n\tpublic int agregarCliente(ClienteBean cliente) throws Exception {\n\t\treturn 0;\n\t}", "public Banco(){}", "private void addCom() {\n\n cons = new GridBagConstraints();\n cons.gridx = 0;\n cons.gridy = 0;\n cons.gridwidth = 1;\n cons.fill = GridBagConstraints.HORIZONTAL;\n panelFormulario.add(lbNome, cons);\n\n cons = new GridBagConstraints();\n cons.gridx = 1;\n cons.gridy = 0;\n cons.gridwidth = 2;\n cons.ipadx = 100;\n cons.fill = GridBagConstraints.HORIZONTAL;\n panelFormulario.add(txNome, cons);\n\n //------------------\n cons = new GridBagConstraints();\n cons.gridx = 0;\n cons.gridy = 1;\n cons.gridwidth = 1;\n cons.fill = GridBagConstraints.HORIZONTAL;\n panelFormulario.add(lbSenha, cons);\n\n cons = new GridBagConstraints();\n cons.gridx = 1;\n cons.gridy = 1;\n cons.gridwidth = 2;\n cons.ipadx = 100;\n cons.fill = GridBagConstraints.HORIZONTAL;\n panelFormulario.add(txSenha, cons);\n\n super.add(panelFormulario);\n\n }", "public JanelaTipoContato() {\r\n initComponents();\r\n try {\r\n\r\n List<TipoContato> tipoContatos = (List<TipoContato>) (Object) tipoContatoDao.pesquisarTodos();\r\n adicionarListaTipoContatosTabela(tipoContatos);\r\n } catch (Exception exception) {\r\n }\r\n }", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "public void addDicas(){\n\t\tMetaDica metaDicaOac = new MetaDica(oac, \"user1\", \"Não falte as aulas, toda aula tem ponto extra!\");\n\t\tmetaDicaOac.setConcordancias(5);\n\t\tdao.persist(metaDicaOac);\n\n\t\tdicaExerciciosOac = new DicaConselho(\"Os exercicios extras valem muitos pontos, nao deixe de fazer\");\n\t\tdicaExerciciosOac.setTema(temaOacExercicios);\n\t\ttemaOacExercicios.setDisciplina(oac);\n\t\tdicaExerciciosOac.setUser(\"user5\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user2\");\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 20;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 25;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\t\tdao.persist(dicaExerciciosOac);\n\n\t\tdicaRevisaoIcOac = new DicaAssunto(\"Antes das aulas faça uma boa revisao de IC\");\n\t\ttemaOacRevisaoIC.setDisciplina(oac);\n\t\tdicaRevisaoIcOac.setTema(temaOacRevisaoIC);\n\t\tdicaRevisaoIcOac.setUser(\"user4\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user5\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\n\t\t//cria meta dica em si\n\t\tMetaDica metaDicaSi1 = new MetaDica(si1, \"user2\", \"Seja autodidata! Procure por cursos online\");\n\t\tdao.persist(metaDicaSi1);\n\n\t\tdicaLabSi = new DicaConselho(\"Faça todo os labs, não deixe acumular\");\n\t\ttemaMinitestesSi.setDisciplina(si1);\n\t\tdicaLabSi.setTema(temaMinitestesSi);\n\t\tdicaLabSi.setUser(\"user1\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user2\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user3\");\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdao.persist(dicaLabSi);\n\n\t\tdicaPlaySi = new DicaConselho(\"Comece a configurar o Play no primeiro dia de aula, pois dá muuuito trabalho\");\n\t\ttemaPlaySi.setDisciplina(si1);\n\t\tdicaPlaySi.setTema(temaPlaySi);\n\t\tdicaPlaySi.setUser(\"user2\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user5\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user4\");\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdao.persist(dicaPlaySi);\n\n\t\tdicaMaterialSi = new DicaMaterial(\"http://www.wthreex.com/rup/process/workflow/ana_desi/co_swarch.htm\");\n\t\ttemaMaterialSi.setDisciplina(si1);\n\t\tdicaMaterialSi.setTema(temaMaterialSi);\n\t\tdicaMaterialSi.setUser(\"user2\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user5\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user4\");\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdao.persist(dicaMaterialSi);\n\n\n\t\t//cria meta dica logica\n\t\tMetaDica metaDicaLogica = new MetaDica(logica, \"user3\", \"Copie para o seu caderno tudo que o professor copiar no quadro, TUDO!\");\n\t\tdao.persist(metaDicaLogica);\n\n\t\tdicaListasLogica = new DicaConselho(\"Faça todas as listas possíveis\");\n\t\ttemaListasLogica.setDisciplina(logica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setUser(\"user6\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user3\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user5\");\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdao.persist(dicaListasLogica);\n\n\t\tdicaProjetoLogica = new DicaAssunto(\"Peça ajuda ao monitor responsável por seu grupo, começe o projeto assim que for lançado!\");\n\t\ttemaProjetoLogica.setDisciplina(logica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setUser(\"user4\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user1\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user2\");\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdao.persist(dicaProjetoLogica);\n\n\t\tdao.flush();\n\n\t}", "public RegistrarCompra() {\n initComponents();\n tabelaFornecedor.setModel(modelFornecedor);\n\n }", "public void entregarVehiculo(Modelo modeloAAdjudicar) {\n\t\t\n\t}", "private void registrarCoactivoOficioBien(CoactivoOficioBienDTO coactivoOficioBienDTO) {\n CoactivoOficioBien coactivoOficioBien = CoactivoOficioBienHelper.toLevel1Entity(coactivoOficioBienDTO, null);\n em.persist(coactivoOficioBien);\n }", "public static void crearequipo(String nombre,String ciudad,String pais) {\r\n\r\n\t\t\tConnection c = ConnectionDB.conectarMySQL();\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement stmt = c\r\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO equipo (nombre , ciudad ,pais ) Values('\"+ nombre + \"','\" + ciudad + \"','\" + pais + \"')\");\r\n\t\t\t\tstmt.executeUpdate();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}" ]
[ "0.7521302", "0.7133539", "0.607964", "0.59886163", "0.58943444", "0.5874176", "0.5863581", "0.5853229", "0.5789041", "0.57797396", "0.5731139", "0.57240605", "0.5702662", "0.5686906", "0.56540346", "0.56342375", "0.56301886", "0.5608532", "0.5603331", "0.55953014", "0.5588335", "0.5580681", "0.5578129", "0.5527585", "0.5525433", "0.5506309", "0.5499449", "0.54967475", "0.5494592", "0.5478109", "0.5467119", "0.5466492", "0.5456531", "0.54340345", "0.5431145", "0.541611", "0.5415926", "0.5404784", "0.5401622", "0.5397846", "0.5392026", "0.53895324", "0.53860116", "0.5383304", "0.5365915", "0.53639185", "0.5361365", "0.5346116", "0.53387076", "0.5329198", "0.53266305", "0.5322057", "0.53200495", "0.5301187", "0.5298902", "0.5297487", "0.5289604", "0.5285577", "0.52747047", "0.52690226", "0.5263306", "0.52550465", "0.52524614", "0.52501696", "0.5249876", "0.5247125", "0.52471083", "0.52414787", "0.5230988", "0.52252704", "0.52192897", "0.52119756", "0.52061987", "0.5203671", "0.52001387", "0.51972634", "0.51955485", "0.519146", "0.5190834", "0.5175146", "0.517428", "0.5169599", "0.5167446", "0.5163097", "0.5162442", "0.516166", "0.5158332", "0.51538324", "0.51530075", "0.51427674", "0.51369077", "0.51367784", "0.51347816", "0.5133782", "0.5126267", "0.5123743", "0.51202446", "0.5118511", "0.51181763", "0.51165956", "0.51145935" ]
0.0
-1
(SelectionSort) Ordena todas as contas no banco, em ordem crescente, pelos seus saldos (balance).
public void sortBalance() { for (int i=0; i < accounts.size() - 1; i++) { int posicao_menor = i; for (int j=i + 1; j < accounts.size(); j++) { // Cada iteração vai acumulando (a esquerda) a área ordenada. if (accounts.get(j).getBalance() < accounts.get(posicao_menor).getBalance()) posicao_menor = j; } // Troca (swap) BankAccount temp = accounts.get(i); accounts.set(i, accounts.get(posicao_menor)); accounts.set(posicao_menor, temp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n ArrayList<BankAccount> accounts = makeBankingSystem();\n \n Collections.sort(accounts, BankAccount.createComparatorByBalance(false));\n for (BankAccount c: accounts){\n System.out.println(c.getName(c)+\", \"+c.getBalance(c));\n \n }\n \n}", "public void ordenarHabitantesAsc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n }", "public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }", "@Override\r\n\t public int compareTo(ComparableAccount obj) \r\n\t {\r\n\t\t if(getBalance() > obj.getBalance()) \r\n\t\t {\r\n\t\t\t return 1;\r\n\t\t }\r\n\t else if(this.getBalance()<obj.getBalance()) \r\n\t {\r\n\t \t return -1;\r\n\t }\r\n\t else \r\n\t {\r\n\t \t return 0;\r\n\t }\r\n\t }", "private void balancearAgrega(Vertice<T> v){\n\tif(v == this.raiz){\n\t v.color = Color.NEGRO;\n\t return;\n\t}else if(v.padre.getColor() == Color.NEGRO){\n\t return;\n\t}\n\tVertice<T> abuelo = v.padre.padre;\n\tif(v.padre == abuelo.derecho){\n\t if(abuelo.izquierdo != null &&\n\t abuelo.izquierdo.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.izquierdo.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\t \n\t }else if(v.padre.izquierdo == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraDerecha(v.padre);\n\t\tbalancearAgrega(v2); \n\t }else if(v.padre.derecho == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraIzquierda(abuelo);\n\t }\n\t}else if(v.padre == abuelo.izquierdo){\n\t if(abuelo.derecho != null &&\n\t abuelo.derecho.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.derecho.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\n\t }else if(v.padre.derecho == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraIzquierda(v.padre);\n\t\tbalancearAgrega(v2); \n\t \n\t }else if(v.padre.izquierdo == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraDerecha(abuelo);\n\t }\n\t} \t\n\t\n }", "@Override\n\tpublic int compare(Account o1, Account o2) {\n\t\treturn ((Double)(o1.getBalance())).compareTo(o2.getBalance());\n\t}", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }", "protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\tdtm.addRow(redovi);\r\n\t\t}\r\n\t}", "private void listBalances() {\n\t\t\r\n\t}", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "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 }", "public void sortCompetitors(){\n\t\t}", "@Override\n\tpublic int compareTo(TaxaConhecimentoDto o) {\n\t\treturn valor.compareTo(o.getValor());\n\t}", "public void SortByPrice() {\n for (int i = 1; i < LastIndex; i++) {\n int x = i;\n while (x >= 1) {\n if (ForChild[x - 1].getPrice() > ForChild[x].getPrice()) {\n Confectionery sweets = ForChild[x - 1];\n ForChild[x - 1] = ForChild[x];\n ForChild[x] = sweets;\n\n }\n x -= 1;\n }\n }\n }", "private void ordenaLista(List<AgrupamentoTipoBean> valoresMap) {\n\t\tCollections.sort(valoresMap, new Comparator<AgrupamentoTipoBean>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int compare(AgrupamentoTipoBean o1, AgrupamentoTipoBean o2) {\n\t\t\t\treturn o1.getQuantidade() > o2.getQuantidade() ? -1 : +1;\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public boolean netzPlanBerechnung() throws SQLException {\n if(this.netz.getFreierPuffer() > -1) {\n // Abhängigkeiten setzen\n this.defineOrdersFirst(vorgangList);\n this.refInitSize = initVorgang.size(); \n \n for(int i=0; i< this.initVorgang.size(); ++i) {\n if(this.listIdCheck(initVorgang.get(i).getVorgangId())==false) { \n sortierteVorgaenge.add(initVorgang.get(i));\n }\n }\n \n for(int j=0; j<sortierteVorgaenge.size(); ++j) {\n sortierteVorgaenge.get(j).setNachf(con.ladeAlleNachf(sortierteVorgaenge.get(j).getVorgangId()));\n for(int k=0; k< sortierteVorgaenge.get(j).getNachf().size(); ++k) {\n if(this.listIdCheck(sortierteVorgaenge.get(j).getNachf().get(k).getVorgangId())==false) {\n sortierteVorgaenge.add(sortierteVorgaenge.get(j).getNachf().get(k));\n }\n }\n }\n \n for(int l=0; l<sortierteVorgaenge.size(); ++l) {\n if(l<this.refInitSize) {\n sortierteVorgaenge.get(l).setFez(sortierteVorgaenge.get(l).getDauer()); \n } \n if(l>=refInitSize) {\n vorgaengerCash = con.ladeAlleVorg(sortierteVorgaenge.get(l).getVorgangId()); \n for(int z=0; z<vorgaengerCash.size(); ++z) {\n for(int y=0; y<sortierteVorgaenge.size(); ++y) {\n if(vorgaengerCash.get(z).getVorgangId() == sortierteVorgaenge.get(y).getVorgangId()) {\n vorgaengerCash.get(z).setFez(sortierteVorgaenge.get(y).getFez());\n }\n }\n }\n this.minSt = vorgaengerCash.get(0).getFez();\n \n for(int p=0; p<vorgaengerCash.size(); ++p) {\n double minRef = vorgaengerCash.get(p).getFez();\n \n if(minRef < minSt) {\n minSt = minRef;\n }\n sortierteVorgaenge.get(l).setFaz(minSt);\n \n sortierteVorgaenge.get(l).setFez(sortierteVorgaenge.get(l).getFaz() + sortierteVorgaenge.get(l).getDauer());\n vorgaengerCash.clear();\n }\n }\n }\n System.out.println(\"===============================================================\");\n System.out.println(\"START DER BERECHNUNG DER SPAETESTEN ANFANGSZEITEN UND ENDZEITEN\");\n System.out.println(\"===============================================================\");\n this.sortierteVorgaengeRef = sortierteVorgaenge;\n this.defineOrdersLast(sortierteVorgaenge);\n this.refBackInitSize = backInit.size();\n for(int n=0; n<backInit.size(); ++n) {\n for(int o=0; o<sortierteVorgaenge.size(); ++o) {\n if(backInit.get(n).getVorgangId()==sortierteVorgaenge.get(o).getVorgangId()) {\n sortierteVorgaenge.get(o).setSez(netz.getEnde());\n sortierteVorgaenge.get(o).setSaz(netz.getEnde() - sortierteVorgaenge.get(o).getDauer());\n for(int x=0; x<sortierteVorgaengeRef.size(); ++x) {\n if(sortierteVorgaengeRef.get(x).getVorgangId()==backInit.get(n).getVorgangId()) {\n }\n }\n }\n }\n } \n \n for(int u=sortierteVorgaengeRef.size()-1; u>-1; --u) {\n vorgaengerCash = con.ladeAlleVorg(sortierteVorgaengeRef.get(u).getVorgangId());\n \n if(vorgaengerCash.size() != 0) {\n for(int y=0; y < vorgaengerCash.size(); ++y) {\n for(int c=0; c<sortierteVorgaenge.size(); ++c) {\n if(vorgaengerCash.get(y).getVorgangId()== sortierteVorgaenge.get(c).getVorgangId()) {\n for(int v=0; v<sortierteVorgaenge.size(); ++v) {\n if(sortierteVorgaengeRef.get(u).getVorgangId()== sortierteVorgaenge.get(v).getVorgangId()) {\n if(this.refSaz > sortierteVorgaenge.get(c).getSez() - sortierteVorgaenge.get(c).getDauer() || sortierteVorgaenge.get(c).getSaz()==0) {\n sortierteVorgaenge.get(c).setSez(sortierteVorgaenge.get(v).getSaz());\n sortierteVorgaenge.get(c).setSaz(sortierteVorgaenge.get(c).getSez() - sortierteVorgaenge.get(c).getDauer());\n this.refSaz = sortierteVorgaenge.get(c).getSez();\n }\n }\n } \n }\n }\n }\n }\n }\n vorgaengerCash.clear();\n }\n \n if(this.checkBetriebsmittelStatus(sortierteVorgaenge)==false) {\n this.netzDurabilityCheck = false;\n System.out.println(\"=================================================================================================\");\n System.out.println(\"Es ist nicht möglich den Netzplan mit den vorhandenen Betriebsmittelkapazitäten auszufuehren!!!\\n\");\n System.out.println(\"=================================================================================================\"); \n for(int n=0; n < bmgOutOfKapa.size(); ++n) {\n System.out.println(\"Dies liegt an dem Betriebsmittel mit der Id: \"+bmgOutOfKapa.get(n).getBetrMittelGrId());\n System.out.println(\"Betriebsmittelname: \"+bmgOutOfKapa.get(n).getNameBetrMittelGr());\n System.out.println(\"Der Vorgang, der die Kapazitaet der Betriebsmittelgruppe ueberschritten hat: \"+bmgOutOfKapa.get(n).getVorgangId());\n } \n } else {\n this.netzDurabilityCheck = true;\n System.out.println(\"=================================================================================================\");\n System.out.println(\"Die Betriebsmittelkapazitaeten reichen aus um den Netzplan auszufuehren!!!\\n\");\n System.out.println(\"=================================================================================================\");\n for(int d=0; d<sortierteVorgaenge.size(); ++d) {\n System.out.println(\"VorgangId: \"+sortierteVorgaenge.get(d).getVorgangId());\n System.out.println(\"VorgangsName: \"+sortierteVorgaenge.get(d).getName());\n System.out.println(\"VorgangsDauer: \"+sortierteVorgaenge.get(d).getDauer());\n System.out.println(\"VorgangsFaz: \"+sortierteVorgaenge.get(d).getFaz());\n System.out.println(\"VogangsFez:\" +sortierteVorgaenge.get(d).getFez());\n System.out.println(\"VorgangsSaz: \"+sortierteVorgaenge.get(d).getSaz());\n System.out.println(\"VorgangsSez: \"+sortierteVorgaenge.get(d).getSez()+\"\\n\\n\\n\");\n }\n } \n return this.netzDurabilityCheck;\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "public void sort(){\n\t\tCollections.sort(_ligacoes, (new Comparator<Ligacao>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Ligacao l1, Ligacao l2){\n\t\t\t\tint resultado = Integer.compare(l1.getCusto(), l2.getCusto());\n\t\t\t\tif (resultado == 0)\n\t\t\t\t\tresultado = Boolean.compare(l1.isAerea(), l2.isAerea());\n\t\t\t\treturn resultado;\n\t\t\t}\n\t\t}));\n\t}", "public void sortGlobalAccountBalances()\n\t{\n\t\tCollections.sort(globalAccountBalances, new GlobalAccountBalanceBean.GlobalAccountBalanceBeanComparator());\n\t}", "@Test\n public void testCreateComparatorByBalance() {\n System.out.println(\"createComparatorByName\");\n // in decreasing order\n boolean increasing = false;\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n BankAccount instance2 = new BankAccount(\"Nelly\", 199.99);\n int result = BankAccount.createComparatorByBalance(increasing).compare(instance, instance2);\n assertTrue(result > 0);\n int result2 = BankAccount.createComparatorByBalance(increasing).compare(instance2, instance);\n assertTrue(result2 < 0);\n // in increasing order\n increasing = true;\n int result3 = BankAccount.createComparatorByBalance(increasing).compare(instance2, instance);\n assertTrue(result3 > 0);\n }", "@Override\n\tpublic int compare(Cabina o1, Cabina o2) {\n\t\treturn o1.getNumero()-o2.getNumero();\n\t}", "public void ordenarComunidadCiudad() {\r\n Collections.sort(ciudades, new ComunidadCiudadComparator());\r\n }", "private void sortiranje(SelectConditionStep<?> select, UniverzalniParametri parametri) {\n select.orderBy(ROBA.STANJE.desc());\n }", "public int compareTo(ContaPoupanca aux){\n return this.getNomeDoCliente().compareTo(aux.getNomeDoCliente());\n }", "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }", "private static void sortFriends() {\n friends.postValue(friends.getValue());\n }", "@Override\n public int compare(Bloque b1, Bloque b2) {\n if (b1.frecuencia != b2.frecuencia){\n return b1.frecuencia -b2.frecuencia;\n }\n return b1.id.compareTo(b2.id);\n }", "private void cbOrdonariActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbOrdonari.getSelectedIndex() == 0) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUME);\n }\n if (cbOrdonari.getSelectedIndex() == 1) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_PRENUME);\n }\n if (cbOrdonari.getSelectedIndex() == 2) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_DATA_NASTERII);\n }\n if (cbOrdonari.getSelectedIndex() == 3) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUMAR_TELEFON);\n }\n }", "public void ordenarHabitantesDesc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n Collections.reverse(ciudades);\r\n }", "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "public void dodajRezultatSortirano(Rezultat rezultat) {\r\n\t\tSODodajRezultat.izvrsi(rezultat, lista);\r\n\t}", "public static ArrayList<Vkladi> rascetPolozBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tSystem.out.println(\"Polozitelnii balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "public List<DietaBalanceada> consultar_dietaBalanceada();", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }", "public void ordenarXNombreBurbuja() {\r\n\t\tfor (int i = datos.size(); i > 0; i-- ) {\r\n\t\t\tfor (int j=0; j<i-1; j++) {\r\n\t\t\t\tif(\tdatos.get(j).compare(datos.get(j), datos.get(j+1)) == (1)) {\r\n\t\t\t\t\tJugador tmp = datos.get(j);\r\n\t\t\t\t\tdatos.set(j, datos.get(j+1));\r\n\t\t\t\t\tdatos.set((j+1), tmp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void balancearElimina(Vertice<T> v){\n\t//Caso 1 RAIZ\n\tif(v.padre == null){\n\t this.raiz = v;\n\t v.color = Color.NEGRO;\n\t return;\n\t}\n\t//Vertice<T> hermano = getHermano(v);\n\t//Caso 2 HERMANO ROJO\n\tif(getHermano(v).color == Color.ROJO){\n\t v.padre.color = Color.ROJO;\n\t getHermano(v).color = Color.NEGRO;\n\t if(v.padre.izquierdo == v)\n\t\tsuper.giraIzquierda(v.padre);\n\t else\n\t\tsuper.giraDerecha(v.padre);\n\t //Actualizar V\n\t // hermano = getHermano(v);\n\t \n\t}\n\t//Caso 3 TODOS SON NEGROS\n\tif(v.padre.color == Color.NEGRO && existeNegro(getHermano(v)) && existeNegro(getHermano(v).izquierdo) && existeNegro(getHermano(v).derecho)){\n\t getHermano(v).color = Color.ROJO;\n\t //Checar color\n\t //v.color = Color.ROJO; //POR H DE HERMANO 20:00\n\t\tbalancearElimina(v.padre);\n\t\treturn;\n\t}\n\t//Caso 4 HERMANO Y SOBRINOS NEGROS Y PADRE ROJO\n\tif(existeNegro(getHermano(v)) && v.padre.color == Color.ROJO && existeNegro(getHermano(v).izquierdo)\n\t && existeNegro(getHermano(v).derecho)){\n\t v.padre.color = Color.NEGRO;\n\t getHermano(v).color = Color.ROJO;\n\t return;\n\t \n\t}\n\t//Caso 5 HERMANO NEGRO Y SOBRINOS BICOLORES\n\tif(getHermano(v).color == Color.NEGRO && (!(existeNegro(getHermano(v).izquierdo) && existeNegro(getHermano(v).derecho)))){\n\t if(v.padre.derecho == v){\n\t if(!existeNegro(getHermano(v).derecho)){\n\t\t getHermano(v).color = Color.ROJO;\n\t\t getHermano(v).derecho.color = Color.NEGRO;\n\t\t super.giraIzquierda(getHermano(v));\n\t }else{\n\t\t if(!existeNegro(getHermano(v).izquierdo)){\n\t\t getHermano(v).color = Color.ROJO;\n\t\t getHermano(v).izquierdo.color = Color.NEGRO;\t \n\t\t super.giraDerecha(getHermano(v));\n\t\t }\n\t }\n\t }\n\t}\n\t//Caso 6 SOBRINO INVERSO DE V ES ROJO\n\tif(v.padre.izquierdo == v){\n\t if(!existeNegro(getHermano(v).derecho)){\n\t\tgetHermano(v).color = v.padre.color;\n\t\t v.padre.color = Color.NEGRO;\n\t\t getHermano(v).derecho.color = Color.NEGRO;\n\t\t super.giraIzquierda(v.padre);\n\t }\n\t}else{\n\t if(!existeNegro(getHermano(v).izquierdo)){\n\t\tgetHermano(v).color = v.padre.color;\n\t\t v.padre.color = Color.NEGRO;\n\t\t getHermano(v).izquierdo.color = Color.NEGRO;\n\t\t super.giraDerecha(v.padre);\n\t }\n\t}\t\n }", "public int[] selectionSort(int[] lista) {\r\n\t for (int i = 0; i < lista.length; i++) {\r\n\t int inicial = lista[i];\r\n\t int minId = i;\r\n\t for (int j = i+1; j < lista.length; j++) {\r\n\t if (lista[j] < inicial) {\r\n\t inicial = lista[j];\r\n\t minId = j;\r\n\t }\r\n\t }\r\n\t // swapping\r\n\t int cambiar = lista[i];\r\n\t lista[i] = inicial;\r\n\t lista[minId] = cambiar;\r\n\t }\r\n\t return lista;\r\n\t}", "public void bubbleSort() {\n \tfor (int i = 0; i < contarElementos()-1; i++) {\n\t\t\tboolean intercambiado= false;\n\t\t\tfor (int j = 0; j < contarElementos()-1; j++) {\n\t\t\t\tif (encontrarNodoEnElndice(j).getElemento().compareTo(encontrarNodoEnElndice(j+1).getElemento())>0) {\n\t\t\t\t\tintercambiar(j, j+1);\n\t\t\t\t\tintercambiado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!intercambiado) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "@Override\n\tpublic int compareTo(Acao o) {\n\t\treturn o.getDataCadastro().compareTo(this.getDataCadastro());\n\t}", "public void sortareDesc(List<Autor> autoriList){\n\t\tboolean ok;\t\t\t\t \n\t\tdo { \n\t\t ok = true;\n\t\t for (int i = 0; i < autoriList.size() - 1; i++)\n\t\t if (autoriList.get(i).getNrPublicatii() < autoriList.get(i+1).getNrPublicatii()){ \n\t\t \t Autor aux = autoriList.get(i);\t\t//schimbarea intre autori\n\t\t \t Autor aux1 = autoriList.get(i+1);\t\n\t\t \t try {\n\t\t \t\t \trepo.schimbareAutori(aux,aux1);\n\t\t\t } catch (Exception e) {\n\t\t\t System.out.println(e.getMessage());\n\t\t\t }\n\t\t\t\t ok = false;\n\t\t\t}\n\t\t}\n\t while (!ok);\n\t }", "@Override\n public int compareTo(PalavraReservadaModel o) {\n return new ComparadorPalavraReservadas().compare(this, o);\n }", "public void sort() {\n }", "public String doSort();", "@Override\r\n public int compareTo(AccountHolder otherAccountHolder) {\n\t\r\n\t\tif (this.getCombinedBalance() < otherAccountHolder.getCombinedBalance()) {\r\n\t\t return -1;\r\n\t\t} else if (this.getCombinedBalance() > otherAccountHolder.getCombinedBalance()) {\r\n\t\t return 1;\r\n\t\t} else {\r\n\t\t return 0;\r\n\t\t}\r\n }", "private void sortDice() {\r\n for (int index = 0; index < dice.size(); index++) {\r\n for (int subIndex = index; subIndex < dice.size(); subIndex++) {\r\n if (dice.get(subIndex).compareTo((dice.get(index))) > 0) {\r\n final Integer temp = dice.get(index);\r\n dice.set(index, dice.get(subIndex));\r\n dice.set(subIndex, temp);\r\n }\r\n }\r\n }\r\n }", "@Override\n public int compareTo(Aluno aluno) {\n if (this.getRegistroAcademico() > aluno.getRegistroAcademico()) {\n return -1;\n }\n if (this.getRegistroAcademico() < aluno.getRegistroAcademico()) {\n return 1;\n }\n return 0;\n }", "void sortUI();", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public void sortAZ(List<Chore> chores){\n Collections.sort(chores, new Comparator<Chore>() {\n @Override\n public int compare(Chore chore, Chore t1) {\n return chore.getName().compareTo(t1.getName());\n }\n });\n }", "private void checkSortedAmount() {\n\n\t\tList<String> actualAmountList = new ArrayList<String>();\n\t\tList<WebElement> elementList = util.findElementsByXpath(\"//td[5]/span\");\n\t\tfor (WebElement we : elementList) {\n\t\t\tactualAmountList.add(we.getText());\n\t\t}\n\n\t\tassertEquals(actualAmountList, dataService.getAscendingAmounts());\n\t\tdriver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\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}", "private void sortByLastName() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int alphaSmallerIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getHolder().getLastNameFirstName().compareTo(accounts[alphaSmallerIndex].getHolder().getLastNameFirstName()) < 0) {\n alphaSmallerIndex = j;\n }\n Account acc = accounts[alphaSmallerIndex];\n accounts[alphaSmallerIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "public static ArrayList<Vkladi> rascetObsciBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tint z = 0;\r\n\t\tfor (Krediti kredit : kred) {\r\n\r\n\t\t\tz = z + kredit.getDolg();\r\n\t\t}\r\n\t\tint y = 0;\r\n\t\ty = z + t;\r\n\t\tSystem.out.println(\"Symarnii balanse Scetov= \" + y + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "@Override\n\t\tpublic int compareTo(Contatto o) {\n\t\t\tif(cognome.compareTo(o.cognome) > 0)\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(cognome.compareTo(o.cognome) < 0)\n\t\t\t\t\treturn -1;\n\t\t\t\telse {\n\t\t\t\t\tif(nome.compareTo(o.nome) > 0)\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(nome.compareTo(o.nome) < 0)\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "public static void sortMoney(List<? extends Valuable> money) {\n\t\tComparator<Valuable> com = new ValueComparator();\n\t\tCollections.sort(money, com);\n\t\tprintList(money);\n\t}", "public static ArrayList<Krediti> rascetOtricBalans() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Krediti vkla : kred) {\r\n\r\n\t\t\tt = t + vkla.getDolg();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Otrictelni balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundKrediti;\r\n\t}", "public void menorEmQuantidade(){\n qtadePorNum.sort(new Matriz.PairValueComparator());\n }", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(\"balance\".equals(e.getActionCommand())){\n\t\t\tsortType = 1;\n\t\t}else if(\"sold\".equals(e.getActionCommand())){\n\t\t\tsortType = 2;\n\t\t}else if(\"spoiled\".equals(e.getActionCommand())){\n\t\t\tsortType = 3;\n\t\t}\n\t\trefresh();\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void setVoteOrder() {\n\t\tfor (int i = 1; i < temp.size(); i++) {\n\t\t\t// deleting the comma from the name\n\t\t\tString s = temp.elementAt(i).replaceAll(\",\", \"\");\n\t\t\t// creating a vector \"tempVoteOrder\" to store the preferences of\n\t\t\t// each voter\n=======\n\t\t\tCandidats.add(candidat);\n\t\t\ttempCandidats = tempCandidats.replaceFirst(\n\t\t\t\t\ttempCandidats.substring(0, tempCandidats.indexOf(\",\") + 1),\n\t\t\t\t\t\"\");// delete the first candidat in the String\n\t\t}\n\t\tfor (int j = 0; j < Candidats.size(); j++)\n\t\t\tCandidats.elementAt(j).setVowsPerRound(Candidats.size());// fill the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// vector\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// size\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"candidats\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0's\n\t}", "@Test\n\tpublic void peorCasoOrderAndSelectTest() {\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 1; \n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(15), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}", "List<Employee> sort(Sorting selectedSortColoumn) throws SQLException;", "@Test\n\tpublic void mejorCasoOrderAndSelectTest() {\n\t\t// TODO!\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length / 2; i++)\n\t\t\tconjunto[i] = 1;\n\t\tfor (int i = conjunto.length / 2; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 2;\n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(2), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}", "@Override\n\tpublic int compareTo(Account o) {\n\t\treturn 1;\n\t}", "public int compare(Valuable a, Valuable b) {\n\t\tif(a.getCurrency().equalsIgnoreCase(b.getCurrency())){\n\t\t\tif(a.getValue() - b.getValue() > 0) {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t\tif(a.getValue() - b.getValue() < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\treturn a.getCurrency().compareToIgnoreCase(b.getCurrency());\n\t}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public void changeSortOrder();", "@Override\r\n public int compareTo(Object o) {\r\n ClienteEntity pCliente= (ClienteEntity)o;\r\n return this.envios.size()<pCliente.envios.size()?-1:this.envios.size()>pCliente.envios.size()?1:0; }", "public void ordenarAdyacenciasPorPeso() {\n\t\tfor(int i = 1; i <= cantNodos; i++) {\n\t\t\tCollections.sort(adyacencias[i], new PesoNodoComparator(pesoNodos));\n\t\t}\n\t}", "private void sort(){\r\n\t\tCollections.sort(people,new PeopleComparator(columnSelect.getSelectedIndex(),(String)sortOrder.getSelectedItem()));\r\n\t\tpersonTableModel.fireTableDataChanged();\r\n\t}", "private Sort() { }", "public void billeBriques() {\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Parcours des briques pour vérifier les contacts\n\t\tListIterator <Brique> iter = niveauEnCours.grilleBriques.listIterator(0);\n\t\tint contact = 0;\n\n\t\twhile (iter.hasNext() && contact == 0) {\n\t\t\tBrique b = iter.next();\n\n\t\t\t// Étude des contacts avec les 8 points de la bille\n\n\t\t\t// Contact GaucheHaut de la bille\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\tcontact = 2;\n\t\t\t\tb.coup();\n\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact DroiteHaut de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.DH();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 4;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact GaucheBas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.GB();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 8;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact DroiteBas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.DB();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 6;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact haut de la bille\n\t\t\tint[] p = billeEnCours.MH();\n\t\t\tif (contact == 0) {\n\t\t\t\tif (p[1] <= b.bas && p[1] >= b.haut && p[0] <= b.droite && p[0] >= b.gauche) {\n\t\t\t\t\tcontact = 3;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact bas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.MB();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 7;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact droite de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.DM();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 5;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact gauche de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.GM();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 1;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\t// Mise à jour de la vitesse \n\n\t\t\t// Rencontre d'un coin\n\t\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\t\tbilleEnCours.demiTour();\n\t\t\t}\n\n\t\t\t// Contact Classique\n\t\t\t// Gauche - Droite\n\t\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t\t}\n\n\t\t\t// Haut - Bas\n\t\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\t\tint[] nv = {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t\t}\t\t\t\n\n\t}", "@Override\n public List<Client> clientsSortedByMoneySpent(){\n log.trace(\"clientsSortedByMoneySpent -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).sorted(Comparator.comparing(Client::getMoneySpent).reversed()).collect(Collectors.toList());\n log.trace(\"clientsSortedByMoneySpent: result={}\", result);\n return result;\n }", "private int[] comparaSeAtaqueGanhouNoDado() {\n int size_ataque;\n int size_defesa;\n\n if (dadosAtaque[1] == 0) {\n size_ataque = 1;\n } else if (dadosAtaque[2] == 0) {\n size_ataque = 2;\n } else {\n size_ataque = 3;\n }\n\n if (dadosDefesa[1] == 0) {\n size_defesa = 1;\n } else if (dadosDefesa[2] == 0) {\n size_defesa = 2;\n } else {\n size_defesa = 3;\n }\n\n int[] resultado = new int[Math.max(size_defesa, size_ataque)];\n\n for (int i = resultado.length - 1; i >= 0; i--) {\n\n if (dadosAtaque[i] > 0 && dadosDefesa[i] > 0) {\n if (dadosAtaque[i] > dadosDefesa[i]) {\n resultado[i] = 1;\n } else {\n resultado[i] = 0;\n }\n } else {\n resultado[i] = 2;\n }\n }\n return resultado;\n }", "public fechBalance() {\n initComponents(); \n \n bd=new coneccionBD();\n acum1=0;\n acum2=0;\n acum3=0;\n acum4=0;\n acum5=0;\n padreNivel=\"\";\n }", "private static void sortingMemo() {\n\t\t\n\t}", "public void radixSorting() {\n\t\t\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 }", "@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}", "public void ordenaArray(){\t\t\n\t\tCollections.sort(anos, new Comparator<Integer>(){\n\t\t\t@Override\n\t\t\tpublic int compare(Integer ano1, Integer ano2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn ano1.compareTo(ano2);\n\t\t\t}\n\t\t});\n\t}", "public void balance(){\n\t\tnamesTree.balance();\n\t\taccountNumbersTree.balance();\n\t}", "public List<Balance> getAddBalanceList() {\r\n\t\tList<Balance> balanceList = new ArrayList<Balance>();\r\n\t\tif (selectedItem != null) {\r\n\t\t\tList<Book> bookList = new ArrayList<Book>();\r\n\t\t\tfor (BalanceData b : GlobalBalance.instance().list()) {\r\n\t\t\t\t// Flag no se ha encontrado\r\n\t\t\t\tboolean founded = false;\r\n\t\t\t\t// Recuperar la lista de books a las que pertenece el balance\r\n\t\t\t\tbookList = bookService.getBooksByIdBalance(b.getId());\r\n\t\t\t\tfor (Book book : bookList) {\r\n\t\t\t\t\t// Si el book seleccionado ya pertenece al balance\r\n\t\t\t\t\tif (selectedItem.getId().compareTo(book.getId()) == 0) {\r\n\t\t\t\t\t\t// Flag se ha encontrado\r\n\t\t\t\t\t\tfounded = true;\r\n\t\t\t\t\t\t// Detener el bucle\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\t// Si el balance no ha sido agregado ya al book\r\n\t\t\t\tif (!founded) {\r\n\t\t\t\t\t// Agregarlo a la lista\r\n\t\t\t\t\tbalanceList.add(b.getEntity());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn balanceList;\r\n\t}", "@Override\n public int compareTo(Object o) { \n if(this.getGrade()==((BoardCandidate)o).getGrade()){\n return (int)(Math.random()*10-Math.random()*10);\n }\n return this.getGrade()-((BoardCandidate)o).getGrade();\n }", "public static void trieParPrix() {\n\t\tCollections.sort(exemplaires.getExemplaires(), new Comparator<Exemplaire>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Exemplaire exemplaire1, Exemplaire exemplaire2) {\n\t\t\t\tif (exemplaire1.getPrix() == exemplaire2.getPrix())\n\t\t\t\t\treturn 0;\n\t\t\t\telse if (exemplaire1.getPrix() > exemplaire2.getPrix())\n\t\t\t\t\treturn 1;\n\t\t\t\telse\n\t\t\t\t\treturn -1;\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic int compare(Inventariable<T> o1, Inventariable<T> o2) {\n\t\treturn o1.getCodigo()-o2.getCodigo();\n\t}", "public void ordenarEquipoPorCiudad(){\n Collections.sort(listaEquipos, Equipo.CompararPorCiudad);\n }", "@Override\n\tpublic int compareTo(NiveauEtude o) {\n\t\treturn code.compareTo(o.code);\n\t}", "@Test(dependsOnMethods = \"verifyDaysSortTest\")\r\n\tpublic void verifyAmountSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickAmountColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click Amount Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickAmountColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending (EXISTING BUG\r\n\t\t// BACKLOGGED)\r\n\t\t// if (carrierschedulepayment.getRowCount() > 1)\r\n\t\t// Assert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t// \"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "public int compareTo(Estudiante z){\n String nombreCompleto1=z.getNombre()+z.getApellido();\n String nombreCompleto2=getNombre()+getApellido();\n int comparacion=nombreCompleto1.compareTo(nombreCompleto2);\n if(comparacion>0){\n return 1;\n }\n if(comparacion<0){\n return -1;\n }\n return comparacion;\n }", "void insertar_cabeceraMatriz(Nodo_B nuevo){\n \n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n \n this.size++;\n }else{\n \n if(nuevo.getValor() < this.primero.getValor()){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero = nuevo;\n this.size++;\n }else if(nuevo.getValor() > this.ultimo.getValor()){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo = nuevo;\n this.size++;\n }else{\n Nodo_B pivote = this.primero;\n \n while(pivote != null){\n if(nuevo.getValor() < pivote.getValor()){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n this.size++;\n break;\n }else if(nuevo.getValor() == pivote.getValor()){\n System.out.print(\"ya hay un valor con este codigo registrado\");\n break;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n // JOptionPane.showMessageDialog(null, \"salio del metodo insertar cabecera con el pais :\"+nuevo.nombreDestino);\n }", "@Override\n\t\n\tpublic int compareTo(Gato gat) {\n\t\t return nombre.compareTo(gat.getNombre());\n\t}", "public int sortaSum(int a, int b) {\n if (a + b >= 10 && a + b <= 19) {\n return 20;\n }\n\n return a + b;\n }", "public void bajarBloque() {\n\t\tif (piezaActual != null) {\n\t\t\tif (Mapa.getInstance().estaLibre(piezaActual.getBloque3().getX(),\n\t\t\t\t\tpiezaActual.getBloque3().getY() + 1)) {\n\t\t\t\tpiezaActual.getBloque3().bajar(); // Dejar en ese orden\n\t\t\t\tpiezaActual.getBloque2().bajar();\n\t\t\t\tpiezaActual.getBloque1().bajar();\n\t\t\t} else {\n\t\t\t\tthis.piezaNueva();\n\t\t\t}\n\t\t}\n\t}", "public void liste()\n {\n Collections.sort(listOrder, new Comparator<Order>() {\n @Override\n public int compare(Order o1, Order o2) {\n return o1.getStart() - o2.getStart(); // use your logic, Luke\n }\n });\n System.out.println(\"LISTE DES ORDRES\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"ID\", \"DEBUT\", \"DUREE\", \"PRIX\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n for(int i = 0; i< listOrder.size(); i++) {\n Order order = listOrder.get(i);\n afficherOrdre(order);\n }\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n }", "public static void main(String[] args) {\n\n\tBankAccount2 gil = new BankAccount2(\"Gil\",500);\n\tBankAccount2 joe = new BankAccount2(\"Joe\",1000);\n\tBankAccount2 fred = new BankAccount2(\"Fred\",2000);\n\tBankAccount2 sally = new BankAccount2(\"Sally\",2500);\n\tArrayList<BankAccount2> accountList= new ArrayList<>();\n\taccountList.add(gil);\n\taccountList.add(joe);\n\taccountList.add(fred);\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tSystem.out.println(Account.getAccount());\n\t}\n\taccountList.add(sally);\n\t\n\tdouble highBal = 0;\n\tString info = \" \";\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tif(Account.getBalance() > highBal)\n\t\t{\n\t\t\thighBal = Account.getBalance();\n\t\t\tinfo = Account.getAccount();\n\t\t}\n\t}\n\t\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tif(Account.getBalance() > highBal)\n\t\t{\n\t\t\thighBal = Account.getBalance();\n\t\t\tinfo = Account.getAccount();\n\t\t}\n\t}\n\t\n\tSystem.out.println(\"The account with the highest balance once Sally is added is: \"+info);\n\taccountList.remove(sally);\n\t\n\thighBal = 0;\n\tinfo = \" \";\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tif(Account.getBalance() > highBal)\n\t\t{\n\t\t\thighBal = Account.getBalance();\n\t\t\tinfo = Account.getAccount();\n\t\t}\n\t}\n\t\n\tSystem.out.println(\"The account with the highest balance once Sally is removed is: \"+ info);\n\t\n\t\n\t}", "public int compareTo(Person otherPerson) {\n if (this.bankroll == otherPerson.getBankroll()) {\n //if they have same amount\n return 0;\n } else if (this.bankroll < otherPerson.getBankroll()) {\n //if other person has more money\n return 1;\n } else {\n //if other person has less money\n return -1;\n }\n }", "public void ordenaCatalogoJogos(TiposOrdenacao tipoOrdenacao) {\r\n\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.DEFAULT)) {\r\n\t\t\tCollections.sort(listaDeJogosComprados);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.DESEMPENHO)) {\r\n\t\t\tOrdenaPorDesempenho comparator = new OrdenaPorDesempenho();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.EXPERIENCIA)) {\r\n\t\t\tOrdenaPorExperiencia comparator = new OrdenaPorExperiencia();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.VICIO)) {\r\n\t\t\tOrdenaPorVicio comparator = new OrdenaPorVicio();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t}", "public int compareTo(Object o)\n\t{\n\t\tif(!(o instanceof TransactionSerialEntity))\n\t\t\treturn 1; //Khong bang\n\n\t\tTransactionSerialEntity other = (TransactionSerialEntity)o;\n\n\t\tif(this.getVector() == null && other.getVector() == null)\n\t\t\treturn 0; //Neu ca 2 doi tuong la rong thi bang\n\t\tif(this.getVector() == null || other.getVector() == null)\n\t\t\treturn 1; //Neu 1 trong 2 cai rong thi khong bang\n\t\tif(this.getVector().size() != other.getVector().size())\n\t\t\treturn 1; //Neu size khac nhau thi khong bang\n\t\tfor(int i = 0; i < this.getVector().size(); i++)\n\t\t{\n\t\t\tObject objA = this.getVector().get(i);\n\t\t\tObject objB = other.getVector().get(i);\n\n\t\t\tif (objA == null && objB == null)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tif (objA == null || objB == null)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(!this.getVector().elementAt(i).equals(other.getVector().elementAt(i)))\n\t\t\t\treturn 1; //Moi gia tri trong vector khac nhau thi khong bang\n\t\t}\n\t\treturn 0; //Bang\n\t}" ]
[ "0.6353499", "0.61284", "0.6071711", "0.58781916", "0.5872826", "0.5850195", "0.58405215", "0.5819615", "0.5790117", "0.57417893", "0.5724782", "0.57133013", "0.5677633", "0.5670784", "0.5669587", "0.56466156", "0.5624483", "0.5614409", "0.5591663", "0.5570551", "0.55554324", "0.5528167", "0.54958415", "0.54889196", "0.5487919", "0.5465769", "0.5459493", "0.5458519", "0.5446566", "0.5431406", "0.5411629", "0.5399184", "0.5398038", "0.5397362", "0.53869784", "0.53767526", "0.53661615", "0.5365403", "0.53534895", "0.53512585", "0.5336819", "0.5305567", "0.5301986", "0.53016615", "0.52953196", "0.52839774", "0.52769023", "0.5273782", "0.5265867", "0.526321", "0.5255251", "0.5252213", "0.5249243", "0.5243402", "0.524231", "0.5240372", "0.52362335", "0.5234952", "0.5233101", "0.52320987", "0.5230844", "0.5225649", "0.5223428", "0.5203728", "0.5198573", "0.51760393", "0.5168857", "0.516291", "0.5155823", "0.51549715", "0.5150898", "0.5150885", "0.51490986", "0.51335937", "0.5129804", "0.5119005", "0.5118297", "0.5115122", "0.5114382", "0.51125664", "0.5111257", "0.5110494", "0.5108309", "0.51082957", "0.50968957", "0.508651", "0.5085799", "0.5077673", "0.507624", "0.5070403", "0.5068819", "0.5068435", "0.5064914", "0.50647163", "0.50641716", "0.5060286", "0.5059042", "0.5049836", "0.50419056", "0.5027488" ]
0.7766383
0
expands a node to add/show the children of the node, if node is not expanded and contracts a node to remove/hide the children of the node otherwise.
private void expandContractNode(Node parentNode) { if (!parentNode.isExpanded()) { expandNode(parentNode); parentNode.setExpanded(true); clearEdgeLinks(); } else { removeNodeAndChildren(parentNode); //if root node if (parentNode.getContainerPane().getParent().getParent() instanceof AnchorPane) { parentNode.setLayoutY(0); double recHeight = parentNode.getRectangle().getHeight() / 2; double vBoxLayoutY = parentNode.getContainerPane().getParent().getLayoutY(); parentNode.getContainerPane().getParent().setLayoutY(vBoxLayoutY - recHeight); } parentNode.setExpanded(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void expandTree() {\n tree.expand();\n }", "private void expandNode(Node parentNode) {\n VBox childrenVBox = parentNode.getChildrenVBox();\n PlaceManager placeManager = PlaceManager.getInstance();\n Place sourcePlace = placeManager.getPlace(parentNode.getNodeId());\n ArrayList<Place> childrenPlaces = sourcePlace.getChildren();\n\n if (!childrenPlaces.isEmpty()) {\n for (Place place : childrenPlaces) {\n String id = place.getId();\n String name = place.getName();\n String type = place.getType().toString();\n String displayName = place.toString();\n Node childNode = new Node(id, name, type, displayName, controller);\n nodes.add(childNode);\n childrenVBox.getChildren().add(childNode.getContainerPane());\n childrenVBox.layout();\n }\n }\n redrawEdges(parentNode);\n }", "public abstract boolean setNodeExpanded(int nodeIndex,boolean true_is_yes);", "public abstract List<Node> expand();", "public boolean isExpanded();", "public void expand(boolean inclChildren) {\n isExtended = true;\n if (inclChildren)\n for (BudgetAccountTableRow child : children)\n child.reduce(true);\n updateUItoExtState();\n }", "public abstract boolean \tgetNodeExpanded(int nodeIndex);", "@Override\n public boolean isExpanded() {\n return isExpanded;\n }", "void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}", "public void recursiveExpand(StatementParse node, ArrayList<StatementParse> expanded){\n if (node.getName().equals(\"-\")){\n node.getChildren().get(1).changeNegativity();\n }\n for (StatementParse child: node.getChildren()){\n // distribute if the child is negative\n if (child.isNegative()){\n for (StatementParse grandChild: child.getChildren()){\n grandChild.changeNegativity();\n }\n }\n if (this.isMulDiv(child)) {\n StatementParse transformedMulDiv = this.mulDivTransform(child);\n expanded.add(transformedMulDiv);\n } else if (this.isAddSub(child)){\n recursiveExpand(child, expanded);\n } else {\n expanded.add(child);\n }\n }\n }", "@JDIAction(\"Expand '{name}'\")\n public void expand() {\n if (isCollapsed()) {\n expandButton.click();\n }\n }", "private void expandTree() {\n for (int i=0; i<tree.getRowCount(); i++) {\n tree.expandRow(i);\n }\n }", "public void expand() {\n openItems();\n }", "public void setExpanded(boolean expanded){\n\t\tthis.expanded = expanded;\n\t}", "public void expand() {\n if(!contentLayout.isVisible()) {\n toggle(false);\n }\n }", "public boolean isExpandable();", "void setExpanded(boolean expanded)\n {\n this.expanded = expanded;\n\n invalidate();\n }", "@Override\n public void setExpanded(boolean isExpanded) {\n mIsExpanded = isExpanded;\n }", "public void expand() {\n getSection().setExpanded(true);\n }", "public void treeWillExpand(TreeExpansionEvent e) throws ExpandVetoException {\n TreePath path = e.getPath();\n if (!tree.hasBeenExpanded(path)) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();\n if (sheet.isMBeanNode(node) && !tree.hasMetadataNodes(node)) {\n tree.addMetadataNodes(node);\n }\n }\n }", "@DISPID(1611006020) //= 0x60060044. The runtime will prefer the VTID if present\n @VTID(96)\n void expandSketchBasedFeaturesNodeAtCreation(\n boolean oNodeExpanded);", "public void expand() {\n\t\tconvertHeadToTailComponent();\n\t\taddNewHead();\n\t}", "private void expand( Change change ) {\n if ( getPlan().isDevelopment() && change.isForInstanceOf( ModelObject.class )\n && getCommander().isLockable( change.getClassName() ) ) {\n getCommander().requestLockOn( change.getId() );\n }\n if ( change.isForInstanceOf( ModelEntity.class ) ) {\n // ModelObject entity = (ModelObject) identifiable;\n ModelObject previous = findExpandedEntity();\n if ( previous != null ) {\n /*String previousAspect = getAspectShown( previous );\n viewAspect( entity, previousAspect );*/\n collapse( new Change( Change.Type.None, previous ) );\n }\n }\n expansions.add( change.getId() );\n }", "private void expandNode(final Node previewNode) {\n\t\tif (this.debugOut)\n\t\t\tSystem.out.println(\"@expandNode (\" + previewNode.getTile().getPosVector() + \"): \");\n\t\tDirection dir[];\n\t\tdir = Direction.values();\n\t\tfor (int i = 3; i >= 0; i--) {\n\n\t\t\tVector2 newPos = calcNewPos(previewNode.getTile().getPosVector(), dir[i]);\n\t\t\tif (this.debugOut)\n\t\t\t\tSystem.out.print(\"Pos \" + newPos + \" got: \");\n\n\t\t\tif (newPos.getX() >= this.state.getCurrViewSizeLimit().getX()\n\t\t\t\t\t|| newPos.getY() >= this.state.getCurrViewSizeLimit().getY() || newPos.getX() < 0\n\t\t\t\t\t|| newPos.getY() < 0) {\n\t\t\t\tif (this.debugOut) {\n\t\t\t\t\tSystem.out.println(\"OUT (out of level/array limits)\");\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Ignore walls and pits\n\t\t\t// preview node cant be a wall or something\n\t\t\t// make no sense @see PacmanSuche\n\n\t\t\tNode successor = new Node(state.getTile(newPos), previewNode);\n\t\t\tTileType sucType = successor.getTile().getTileType();\n\n\t\t\tif (sucType == TileType.WALL || sucType == TileType.PIT) {\n\t\t\t\tthis.closedList.add(successor);\n\t\t\t\tif (this.debugOut)\n\t\t\t\t\tSystem.out.println(\"OUT (wall/pit)\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (this.closedList.contains(successor)) {\n\t\t\t\tif (this.debugOut)\n\t\t\t\t\tSystem.out.println(\"OUT (is already in closedList)\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tevaluateNode(successor);\n\t\t\tif (this.debugOut)\n\t\t\t\tSystem.out.print(\"[\" + successor.getValue() + \"]\");\n\t\t\taddNode(successor);\n\t\t}\n\t}", "public void expand() {\n if (getVisibility() == View.VISIBLE) {\n return;\n }\n setVisibility(View.VISIBLE);\n mAnimatorExpand.setDuration(mDuration);\n mAnimatorExpand.start();\n }", "@Test\r\n public void testSetCollapsedChildAtExpanded() {\r\n getView().setShowRoot(true);\r\n TreeItem child = createBranch(\"single-replaced-child\", true);\r\n int index = 3;\r\n setItem(index -1, child);\r\n getSelectionModel().select(index);\r\n TreeItem collapsedChild = createBranch(\"another-single-replaced\");\r\n setItem(index -1, collapsedChild);\r\n assertEquals(index, getSelectedIndex());\r\n assertEquals(collapsedChild, getSelectedItem());\r\n }", "public boolean isExpanded() {\n return this.isExpanded;\n }", "public boolean isExpand(){\n return this == EXPAND;\n }", "protected String renderChildren(Object inNode)\n\t{\n\t\tStringBuffer js = new StringBuffer();\n\t\t\n\t\tif ( hasBeenExpanded( inNode ) )\n\t\t{\n//\t\t\tString collapseUrl = quotes(\"?\" + \"WebTreeName=\" + getWebTree().getName() + \"&oe-action=\" +\n//\t\t\t\tgetCollapseNodeCommand() + \"&nodeID=\" + getWebTree().getModel().getId(inNode));\n//\t\t\tjs.append(collapseUrl +\", new Array(\\n\");\n\n\t\t\tjs.append(\", new Array(\\n\");\n\n\t\t\tint c = getWebTree().getModel().getChildCount( inNode );\n\t\t\tfor (int i = 0; i < c; i++ )\n\t\t\t{\n\t\t\t\tif ( i > 0 )\n\t\t\t\t{\n\t\t\t\t\tjs.append(\",\\n\");\n\t\t\t\t}\n\t\t\t\tObject childNode = getWebTree().getModel().getChild( inNode, i );\n\t\t\t\tjs.append(renderNewFolder(childNode));\n\t\t\t}\n\n\t\t\tjs.append(\" ) \");\n\t\t}\n\t\telse\n\t\t{\n//\t\t\tString expandUrl = quotes(\"?\" + \"WebTreeName=\" + getWebTree().getName() + \"&oe-action=\" +\n//\t\t\t\tgetExpandNodeCommand() + \"&nodeID=\" + getWebTree().getModel().getId(inNode));\n\n\t\t\t// Might need to make this configurable later on.\n\t\t\t// Different controllers may want to use different commands here.\n\t\t\tjs.append(\",null \" );\n\t\t\t\n\t\t//\t\t\t\tjs.append(\n\t\t//\t\tquotes(\"?\" + \"WebTreeName=\" + getWebTree().getName() + \"&oe-action=\" +\n\t\t//\t\t\tgetExpandNodeCommand() + \"&nodeID=\" + getWebTree().getModel().getId(inNode)) + \", null, \");\n\t\t\t\n\t\t}\n\n\t\treturn js.toString();\n\t}", "@Test \r\n public void testSetExpandedChildAtExpandedMore() {\r\n getView().setShowRoot(true);\r\n TreeItem child = createBranch(\"single-replaced-child\");\r\n child.setExpanded(true);\r\n int index = 3;\r\n setItem(index -1, child);\r\n getSelectionModel().select(index);\r\n TreeItem expandedChild = createBranch(\"another-single-replaced\");\r\n // replacingChild has more children\r\n expandedChild.getChildren().add(createItem(\"excess grandChild\"));\r\n expandedChild.setExpanded(true);\r\n assertEquals(\"sanity: replacing child has more children and both expanded\", \r\n child.getChildren().size() + 1, expandedChild.getChildren().size());\r\n setItem(index -1, expandedChild);\r\n \r\n assertEquals(index, getSelectedIndex());\r\n assertEquals(expandedChild, getSelectedItem());\r\n }", "public void expand(){\n\t\texpanded = true;\n\t\tstartRow = 0;\n\t\tslider.setLimits(0, 0, optGroup.size() - maxRows);\n\t\ttakeFocus();\n\t}", "public boolean isExpanded(){\n\t\treturn expanded;\n\t}", "@Override\n public void setExpanded(final boolean expanded) {\n final int currentPosition = getCurrentPosition();\n if ((expanded && (currentPosition == layoutSize))\n || (!expanded && currentPosition == closePosition)) {\n return;\n }\n\n isExpanded = expanded;\n move(expanded ? layoutSize : closePosition, 0);\n }", "private void setExpandableLayoutVisiblity(){\n if(mExpandToggleBtn.isChecked()){\n mExpandableLayout.setVisibility(View.VISIBLE);\n }\n // if expand is set to false, then hide the expandable layout\n else{\n mExpandableLayout.setVisibility(View.GONE);\n }\n }", "public boolean isExpanded() {\n return expanded;\n }", "public void treeWillCollapse(TreeExpansionEvent e) throws ExpandVetoException {\n }", "public void toggle() {\n if (isExpanded()) {\n collapse();\n } else {\n expand();\n }\n }", "@Override\n public void onShow() {\n mExpandableLinearLayout.expand();\n }", "private void expandNode() {\r\n\t\t\t// Dijkstra's algorithm to handle separately\r\n\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\tCell u;\r\n\t\t\t\t// 11: while Q is not empty:\r\n\t\t\t\tif (graph.isEmpty()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 12: u := vertex in Q (graph) with smallest distance in dist[]\r\n\t\t\t\t// ;\r\n\t\t\t\t// 13: remove u from Q (graph);\r\n\t\t\t\tu = graph.remove(0);\r\n\t\t\t\t// Add vertex u in closed set\r\n\t\t\t\tclosedSet.add(u);\r\n\t\t\t\t// If target has been found ...\r\n\t\t\t\tif (u.row == targetPos.row && u.col == targetPos.col) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Counts nodes that have expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[u.row][u.col] = CLOSED;\r\n\t\t\t\t// 14: if dist[u] = infinity:\r\n\t\t\t\tif (u.dist == INFINITY) {\r\n\t\t\t\t\t// ... then there is no solution.\r\n\t\t\t\t\t// 15: break;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t// 16: end if\r\n\t\t\t\t}\r\n\t\t\t\t// Create the neighbors of u\r\n\t\t\t\tArrayList<Cell> neighbors = createSuccesors(u, false);\r\n\t\t\t\t// 18: for each neighbor v of u:\r\n\t\t\t\tfor (Cell v : neighbors) {\r\n\t\t\t\t\t// 20: alt := dist[u] + dist_between(u, v) ;\r\n\t\t\t\t\tint alt = u.dist + distBetween(u, v);\r\n\t\t\t\t\t// 21: if alt < dist[v]:\r\n\t\t\t\t\tif (alt < v.dist) {\r\n\t\t\t\t\t\t// 22: dist[v] := alt ;\r\n\t\t\t\t\t\tv.dist = alt;\r\n\t\t\t\t\t\t// 23: previous[v] := u ;\r\n\t\t\t\t\t\tv.prev = u;\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[v.row][v.col] = FRONTIER;\r\n\t\t\t\t\t\t// 24: decrease-key v in Q;\r\n\t\t\t\t\t\t// (sort list of nodes with respect to dist)\r\n\t\t\t\t\t\tCollections.sort(graph, new CellComparatorByDist());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// The handling of the other four algorithms\r\n\t\t\t} else {\r\n\t\t\t\tCell current;\r\n\t\t\t\tif (dfs.isSelected() || bfs.isSelected()) {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms DFS and BFS\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET ...\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms A* and Greedy\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET,\r\n\t\t\t\t\t// for which f(Si) ≤ f(Sj) for all other\r\n\t\t\t\t\t// open states Sj ...\r\n\t\t\t\t\t// (sort first OPEN SET list with respect to 'f')\r\n\t\t\t\t\tCollections.sort(openSet, new CellComparatorByF());\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t}\r\n\t\t\t\t// ... and add it to CLOSED SET.\r\n\t\t\t\tclosedSet.add(0, current);\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[current.row][current.col] = CLOSED;\r\n\t\t\t\t// If the selected node is the target ...\r\n\t\t\t\tif (current.row == targetPos.row && current.col == targetPos.col) {\r\n\t\t\t\t\t// ... then terminate etc\r\n\t\t\t\t\tCell last = targetPos;\r\n\t\t\t\t\tlast.prev = current.prev;\r\n\t\t\t\t\tclosedSet.add(last);\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Count nodes that have been expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Here is the 4rd step of the algorithms\r\n\t\t\t\t// 4. Create the successors of Si, based on actions\r\n\t\t\t\t// that can be implemented on Si.\r\n\t\t\t\t// Each successor has a pointer to the Si, as its predecessor.\r\n\t\t\t\t// In the case of DFS and BFS algorithms, successors should not\r\n\t\t\t\t// belong neither to the OPEN SET nor the CLOSED SET.\r\n\t\t\t\tArrayList<Cell> succesors;\r\n\t\t\t\tsuccesors = createSuccesors(current, false);\r\n\t\t\t\t// Here is the 5th step of the algorithms\r\n\t\t\t\t// 5. For each successor of Si, ...\r\n\t\t\t\tfor (Cell cell : succesors) {\r\n\t\t\t\t\t// ... if we are running DFS ...\r\n\t\t\t\t\tif (dfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the beginning of the list\r\n\t\t\t\t\t\t// OPEN SET\r\n\t\t\t\t\t\topenSet.add(0, cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are runnig BFS ...\r\n\t\t\t\t\t} else if (bfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the end of the list OPEN SET\r\n\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are running A* or Greedy algorithms (step 5\r\n\t\t\t\t\t\t// of A* algorithm) ...\r\n\t\t\t\t\t} else if (aStar.isSelected() || guloso.isSelected()) {\r\n\t\t\t\t\t\t// ... calculate the value f(Sj) ...\r\n\t\t\t\t\t\tint dxg = current.col - cell.col;\r\n\t\t\t\t\t\tint dyg = current.row - cell.row;\r\n\t\t\t\t\t\tint dxh = targetPos.col - cell.col;\r\n\t\t\t\t\t\tint dyh = targetPos.row - cell.row;\r\n\t\t\t\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t\t\t\t// with diagonal movements\r\n\t\t\t\t\t\t\t// calculate 1000 times the Euclidean distance\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + (int) ((double) 1000 * Math.sqrt(dxg * dxg + dyg * dyg));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = (int) ((double) 1000 * Math.sqrt(dxh * dxh + dyh * dyh));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// without diagonal movements\r\n\t\t\t\t\t\t\t// calculate Manhattan distances\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + Math.abs(dxg) + Math.abs(dyg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = Math.abs(dxh) + Math.abs(dyh);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcell.f = cell.g + cell.h;\r\n\t\t\t\t\t\t// ... If Sj is neither in the OPEN SET nor in the\r\n\t\t\t\t\t\t// CLOSED SET states ...\r\n\t\t\t\t\t\tint openIndex = isInList(openSet, cell);\r\n\t\t\t\t\t\tint closedIndex = isInList(closedSet, cell);\r\n\t\t\t\t\t\tif (openIndex == -1 && closedIndex == -1) {\r\n\t\t\t\t\t\t\t// ... then add Sj in the OPEN SET ...\r\n\t\t\t\t\t\t\t// ... evaluated as f(Sj)\r\n\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t// Else ...\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// ... if already belongs to the OPEN SET, then ...\r\n\t\t\t\t\t\t\tif (openIndex > -1) {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (openSet.get(openIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\topenSet.remove(openIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// ... if already belongs to the CLOSED SET,\r\n\t\t\t\t\t\t\t\t// then ...\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (closedSet.get(closedIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\tclosedSet.remove(closedIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void expandShrinkContentPanel(Boolean shrink)\n\t{\n\t\tif(cPanelHeight!=contentPanel.getHeight())\n\t\t\tcPanelHeight=contentPanel.getHeight();\n\t\ttotalHeight=cPanelHeight+75;\n\n\t\tcontentPanel.setVisible(!shrink);\n\t\tif(shrink)\n\t\t{\n\t\t\tcontentPanel.setSize(new Dimension(parentPanel.getWidth()-blankLeftPanel.getWidth()-100,0));\n\t\t\tthis.setMaximumSize(new Dimension(20000,50));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcontentPanel.setSize(new Dimension(parentPanel.getWidth()-blankLeftPanel.getWidth()-100,cPanelHeight));\n\t\t\tthis.setMaximumSize(new Dimension(20000,totalHeight));\n\t\t}\n\t\ttPanel.setPreferredSize(new Dimension(contentPanel.getWidth()+blankLeftPanel.getWidth(),cPanelHeight+navPanel.getHeight()));\n\t\ttPanel.setSize(new Dimension(contentPanel.getWidth()+blankLeftPanel.getWidth(),cPanelHeight+navPanel.getHeight()));\n\n\t\tthis.updateUI();\n\t\tthis.updateParentUI();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.getParent().repaint();\n\t}", "public boolean isExpanded(){\n\t\treturn syncExec(new BoolResult() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Boolean run() {\n\t\t\t\treturn widget.isExpanded();\n\t\t\t}\n\t\t});\n\t}", "public boolean getShowExpanderForEmptyParent() {\n return showExpanderForEmptyParent;\n }", "public AppDbObjectTreeExtensionUsageToggleNode() {\n super(TOGGLENODEID_TREEUSAGE);\n inUseItem = new JMenuItem(new AbstractAction(\"treeusage\") { // NOI18N\n public void actionPerformed(ActionEvent e) {\n if (inUseItem.getText().equals(TEXT_HIDE_TREEUSGE)) {\n getTree().hideInUseTree(getChildIndex());\n }\n else {\n getTree().showInUseTree();\n }\n }\n });\n }", "private void switchNode(Node nodeToHide, Node nodeToShow) {\n changeParent(nodeToHide, hiddenBox);\n changeParent(nodeToShow, visibleBox);\n control.requestFocus();\n }", "public boolean isExpandable() {\n return term.isExpandable();\n }", "public boolean hasBeenExpanded(Object inNode)\n\t{\n\t\tObject parent = inNode;\n\t\twhile( parent != null)\n\t\t{\n\t\t\tString path = toUrl(inNode);\n\t\t\tif( getExpandedNodes().contains(path) )\n\t\t\t{\n\t\t\t\tparent = getWebTree().getModel().getParent(parent);\n\t\t\t\t//If we get to the root and it is selected still then we are ok!\n\t\t\t\tif( parent == null)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static void expandTreeView(TreeItem<?> t) {\n\t\tif(t != null && !t.isLeaf()) {\n\t\t\tt.setExpanded(true);\n\t\t\tfor(TreeItem<?> child : t.getChildren())\n\t\t\t\texpandTreeView(child);\n\t\t}\n\t}", "public void expandNoAnim() {\n if (getVisibility() == View.VISIBLE) {\n return;\n }\n setVisibility(View.VISIBLE);\n mAnimatorExpand.setDuration(0);\n mAnimatorExpand.start();\n }", "public void expand(String s){\n\t System.out.println(\"expand method is performed\");\n\t this.children.put(s,new Node(s));\t\n\t}", "public boolean expand(DefaultMutableTreeNode parent) {\r\n\t\tDefaultMutableTreeNode flagNode = (DefaultMutableTreeNode) parent.getFirstChild();\r\n\t\tif (flagNode == null) // No flag\r\n\t\t\treturn false;\r\n\t\tObject obj = flagNode.getUserObject();\r\n\t\tif (!(obj instanceof Boolean))\r\n\t\t\treturn false; // Already expanded\r\n\r\n\t\tparent.removeAllChildren(); // Remove FlagNode\r\n\r\n\t\tFile[] dirs = getChildren();\r\n\t\tif (dirs == null)\r\n\t\t\treturn true;\r\n\r\n\t\t// Create a sorted list of domain-objects\r\n\t\t// ArrayList sortedChildDomainObjects = new ArrayList();\r\n\t\tArrayList<DirectoryObject> sortedChildDomainObjects = new ArrayList<DirectoryObject>();\r\n\r\n\t\tfor (File dir : dirs) {\r\n\t\t\tDirectoryObject newNode = new DirectoryObject(dir);\r\n\t\t\tboolean isAdded = false;\r\n\t\t\tfor (int i = 0; i < sortedChildDomainObjects.size(); i++) {\r\n\t\t\t\tDirectoryObject nd = (DirectoryObject) sortedChildDomainObjects.get(i);\r\n\t\t\t\tif (newNode.compareTo(nd) < 0) {\r\n\t\t\t\t\tsortedChildDomainObjects.add(i, newNode);\r\n\t\t\t\t\tisAdded = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!isAdded)\r\n\t\t\t\tsortedChildDomainObjects.add(newNode);\r\n\t\t}\r\n\r\n\t\t// Add children nodes under parent in the tree\r\n\t\tfor (Object aChild : sortedChildDomainObjects) {\r\n\t\t\tDirectoryObject nd = (DirectoryObject) aChild;\r\n\t\t\tDefaultMutableTreeNode node = new DefaultMutableTreeNode(nd);\r\n\t\t\tparent.add(node);\r\n\r\n\t\t\tif (nd.hasChildren)\r\n\t\t\t\tnode.add(new DefaultMutableTreeNode(true));\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public void treeExpanded(TreeExpansionEvent e) {\n saySomething(\"Tree-expanded event detected\", e);\n }", "public XMessage expandGroup(OpProjectSession session, XMessage request) {\r\n XMessage reply = new XMessage();\r\n // replace with api call\r\n XComponent resultSet = expandGroupStructure(session, request, false, null);\r\n if (resultSet != null) {\r\n List<XView> resultList = new ArrayList<XView>();\r\n for (int i = 0; i < resultSet.getChildCount(); i++) {\r\n resultList.add(resultSet.getChild(i));\r\n }\r\n reply.setArgument(OpProjectConstants.CHILDREN, resultList);\r\n }\r\n return reply;\r\n }", "@Test \r\n public void testSetExpandedChildAtExpandedSame() {\r\n getView().setShowRoot(true);\r\n TreeItem child = createBranch(\"single-replaced-child\");\r\n child.setExpanded(true);\r\n int index = 3;\r\n setItem(index -1, child);\r\n getSelectionModel().select(index);\r\n // replacingChild has same # of children\r\n TreeItem expandedChild = createBranch(\"another-single-replaced\");\r\n expandedChild.setExpanded(true);\r\n assertEquals(\"sanity: same # of children and both expanded\", \r\n child.getChildren().size(), expandedChild.getChildren().size());\r\n setItem(index -1, expandedChild);\r\n\r\n assertEquals(index, getSelectedIndex());\r\n assertEquals(expandedChild, getSelectedItem());\r\n }", "@Test\n public void testExpandTree() {\n // TODO: test ExpandTree\n }", "public void setIsAlwaysExpanded(final boolean alwaysExpanded);", "public void expand(boolean[] intentionAvailable, boolean legacy, String player_name)\n {\n \tchildren = new ArrayList<>();\n \tArrayList<TreeNode> expansionActions = state.getExpansionActions(intentionAvailable, legacy, player_name);\n \t\n \tfor (TreeNode t : expansionActions)\n \t{\n \t\tState_GPG new_state = state.clone();\n \t\t\n \t\tif (t != null)\n \t\t{\n \t\t\tnew_state.applyAction(t);\n \t\t}\n \t\t\n \t\tif (t == null || t instanceof ActionNode)\n \t\t{\n \t\t\tnew_state.playerTurn = (state.playerTurn + 1) % match.numAgents;\n \t\t}\n \t\t\n MCTS_Node_GPG child_node = new MCTS_Node_GPG(new_state, match);\n \tchild_node.actionChoice = t;\n \tthis.children.add(child_node);\n \t}\t\n }", "@Override\n\tpublic void queuingFunc(TreeNode[] expandedNodes) {\n\n\t}", "public void setExpanded(String expanded)\r\n {\r\n this.expanded = expanded;\r\n }", "public boolean isExpanded() {\n return getVisibility() == View.VISIBLE;\n }", "Node[] getChildren(Node node);", "public void treeWillExpand(TreeExpansionEvent e)\n throws ExpandVetoException {\n saySomething(\"Tree-will-expand event detected\", e);\n int n = JOptionPane.showOptionDialog(this, willExpandText,\n willExpandTitle, JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE, null, willExpandOptions,\n willExpandOptions[1]);\n if (n == 0) {\n //User said cancel expansion.\n saySomething(\"Tree expansion cancelled\", e);\n throw new ExpandVetoException(e);\n }\n }", "public void expandAllNodes(JTree tree, int startingIndex, int rowCount){\n for(int i=startingIndex;i<rowCount;++i){\n tree.expandRow(i);\n }\n\n if(tree.getRowCount()!=rowCount){\n expandAllNodes(tree, rowCount, tree.getRowCount());\n }\n}", "public void updateExpandButton() {\n // Remove features that can no longer be collapsed\n featureDiagramView.checkCollapseValidity();\n menu.enableAction(featureDiagramView.hasCollapsedElements(true), ACTION_EXPAND_FEATURES);\n }", "@JDIAction(\"Collapse '{name}'\")\n public void collapse() {\n if (isExpanded()) {\n expandButton.click();\n }\n }", "@Override\n\t\t\t\tpublic void treeCollapsed(TreeExpansionEvent arg0) {\n\t\t\t\t}", "@Override\n\t\t\tpublic void treeExpanded(TreeExpansionEvent event) {\n\t\t\t\t// fireTableDataChanged();\n\t\t\t}", "public static void expand() {\n Node root = readTrie();\n\n // number of bytes to write\n int length = BinaryStdIn.readInt();\n\n // decode using the Huffman trie\n for (int i = 0; i < length; i++) {\n Node x = root;\n while (!x.isLeaf()) {\n boolean bit = BinaryStdIn.readBoolean();\n if (bit) x = x.right;\n else x = x.left;\n }\n BinaryStdOut.write(x.ch, 8);\n }\n BinaryStdOut.close();\n }", "public void makeAllExpand(GraphData data) {\r\n\t\tthis.collapsingList.clear();\r\n\t\tthis.unCollaspeAll(data);\r\n\t}", "public void expandDescription(final View v){\n if(!descriptionExpanded) {\n //Set line number to unlimited\n mDescription.setMaxLines(Integer.MAX_VALUE);\n\n //Animate expansion\n mAdditionalDetailsLayout.setVisibility(View.VISIBLE);\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_minimize_white));\n descriptionExpanded = true;\n }else{\n //Set line limit\n mDescription.setMaxLines(getApplicationContext().getResources().getInteger(R.integer.lines));\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_add_white));\n\n\n //Animate collapse\n mAdditionalDetailsLayout.setVisibility(View.GONE);\n\n descriptionExpanded = false;\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void enlargeChildrenArray(int enlargement, boolean dummy) {\n\t\tNode<U>[] newChildren = (Node<U>[]) new Node[children.length + enlargement];\n\t\tint length = children.length - 1;\n\n\t\tif(dummy) { // if this node contains a dummy, it should remain at the last position \n\t\t\tSystem.arraycopy(children, 0, newChildren, 0, length);\n\t\t\tnewChildren[newChildren.length - 1] = children[length];\n\t\t} else {\n\t\t\tSystem.arraycopy(children, 0, newChildren, 0, children.length);\t\t\t\n\t\t}\n\n\t\tif(this.maxUBChild == children.length - 1)\n\t\t\tmaxUBChild += 1;\n\t\tchildren = newChildren;\n\t}", "public void expand() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.expandDoor();\n\t}", "public static void expandAll(JTree tree, boolean expand) {\n TreeNode root = (TreeNode)tree.getModel().getRoot();\n\n // Traverse tree from root\n expandAll(tree, new TreePath(root), expand);\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }", "private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }", "boolean isFeedExpanded();", "private Node selectAndExpandNewNode() {\n // Start at the root\n Node node = root;\n\n // Iterate down the tree until reaching a goal state\n while (node.getState().getPos() < problemSpec.getN()) {\n // Get the best action from the current node using UCT\n Action action = selectBestAction(node);\n\n // Simulate a single action\n FromStateSimulator FSS = new FromStateSimulator(problemSpec);\n FSS.setStartState(node.getState(), stepsDone + node.getStepsFromRoot());\n FSS.step(action);\n State newState = FSS.getCurrentState();\n\n // Get the node representing the outcome of the transition\n Node child = node.childWithStateAction(newState, action);\n\n // If this outcome node has not been added to the tree, add it\n if (child == null) {\n Node newNode = new Node(newState, FSS.getSteps());\n newNode.setParentNodeAndAction(node, action);\n node.addChildNode(newNode);\n\n // Return this new node\n return newNode;\n }\n\n // Now repeat the process using this child node\n node = child;\n }\n\n return node;\n }", "public void expandedItem(int index) {\n if (index < 0 || index >= getChildCount() || hasItemExpanded()) {\n return;\n }\n final View releasedChild = getChildAt(index);\n final LayoutParams lp = (LayoutParams) releasedChild.getLayoutParams();\n lp.isOpen = true;\n mDragHelper.smoothSlideViewTo(releasedChild, releasedChild.getLeft(), lp.expandTop);\n int length = getChildCount();\n for (int i = 0; i < length; i++) {\n if (i != index) {\n View child = getChildAt(i);\n playShrinkItemAnimation(child);\n }\n }\n invalidate();\n }", "public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }", "protected void change() {\r\n\r\n // consume?\r\n if(isLoop()) return;\r\n \r\n // prevent re-entry\r\n setLoop(true);\r\n\r\n // initialize\r\n int dx = 0;\r\n int dy = 0;\r\n\r\n // set flag\r\n boolean isSelected = getToggleButton().isSelected();\r\n\r\n // any change?\r\n if(isExpanded!=isSelected) {\r\n\r\n // set flag\r\n isExpanded = isSelected;\r\n\r\n // translate selection to view\r\n if(isExpanded) {\r\n\r\n \t// get preferred size\r\n \tint max = (preferredExpandedHeight==0 ? (isPreferredSizeSet() ? super.getPreferredSize().height : 0) : preferredExpandedHeight);\r\n\r\n // get height\r\n int h = (isTmpSet(0) ? tmpSize[0].height : max);\r\n\r\n // calculate change\r\n dy = h - minimumCollapsedHeight;\r\n\r\n // apply temporary stored sizes?\r\n if(isTmpSet(1)) super.setMinimumSize(getTmpSize(1));\r\n if(isTmpSet(2)) super.setPreferredSize(getTmpSize(2));\r\n if(isTmpSet(3)) super.setMaximumSize(getTmpSize(3));\r\n\r\n // reset temporary sets\r\n resetTmpSizes();\r\n\r\n }\r\n else {\r\n\r\n // get collapsed height\r\n int h = minimumCollapsedHeight;\r\n\r\n // update temporary sizes\r\n setTmpSize(0,isDisplayable() ? super.getSize() : getPreferredSize(),true);\r\n\r\n // update temporary insets\r\n tmpInsets = super.getInsets();\r\n\r\n // calculate change\r\n dy = h - getTmpSize(0).height;\r\n\r\n // set collapsed size\r\n minimumCollapsedHeight = h;\r\n\r\n // set new insets\r\n if(headerPlacement==SwingUtilities.BOTTOM) {\r\n \tcollapsedInsets = new Insets(0, tmpInsets.left, tmpInsets.bottom, tmpInsets.right);\r\n } else {\r\n \tcollapsedInsets = new Insets(tmpInsets.top, tmpInsets.left, 0, tmpInsets.right);\r\n }\r\n \r\n\r\n }\r\n\r\n // apply change\r\n super.setBorder(createBorder());\r\n\r\n // update tool tip text\r\n getToggleButton().setToolTipText(isExpanded() ? \"Lukk\" : \"┼pne\");\r\n\r\n // notify\r\n fireToggleEvent(dx,dy);\r\n\r\n // notify manager hierarchy\r\n super.requestResize(dx, dy, true);\r\n\r\n }\r\n\r\n // resume\r\n setLoop(false);\r\n\r\n }", "public List<SearchNode> expand() {\n\n List<SearchNode> neighbours = new ArrayList<>();\n\n if (this.getX() > 0) {\n SearchNode left = new SearchNode(this.getX() - 1, this.getY(), this.getDepth() + 1);\n neighbours.add(left);\n }\n if (this.getX() < 14) {\n SearchNode right = new SearchNode(this.getX() + 1, this.getY(), this.getDepth() + 1);\n neighbours.add(right);\n }\n if (this.getY() > 0) {\n SearchNode up = new SearchNode(this.getX(), this.getY() - 1, this.getDepth() + 1);\n neighbours.add(up);\n }\n if (this.getY() < 14) {\n SearchNode down = new SearchNode(this.getX(), this.getY() + 1, this.getDepth() + 1);\n neighbours.add(down);\n }\n\n return neighbours;\n }", "public boolean shouldExpandWhenNotFlinging() {\n boolean z = true;\n if (super.shouldExpandWhenNotFlinging()) {\n return true;\n }\n if (!this.mAllowExpandForSmallExpansion) {\n return false;\n }\n if (SystemClock.uptimeMillis() - this.mDownTime > 300) {\n z = false;\n }\n return z;\n }", "public void setShowNodes(Boolean value) {\n showNodes = value;\n }", "private TreeWillExpandListener createTreeWillExpandListener() {\n\t\treturn new TreeWillExpandListener() {\n\t\t\tpublic void treeWillCollapse(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) evt\n\t\t\t\t\t\t.getPath().getLastPathComponent();\n\t\t\t\tSystem.out.println(\"In TreeWillExpandListener: Collapsing: \"\n\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t\tpublic void treeWillExpand(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) evt\n\t\t\t\t\t\t.getPath().getLastPathComponent();\n\t\t\t\tSystem.out.println(\"TreeWillExpandListener: Expanding: \"\n\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t};\n\t}", "public ArrayList<StatementParse> expandNode(StatementParse node){\n ArrayList<StatementParse> expanded = new ArrayList<>();\n recursiveExpand(node, expanded);\n return expanded;\n\n }", "protected IAstNode doExpand(IAstNode node, boolean instances, boolean expectErrors) {\n \tTypeInference infer = new TypeInference(typeEngine);\n \tinfer.infer(node, false);\n \tsanityTest(node);\n \t\n \t\n \t\tExpandAST expand = new ExpandAST(typeEngine, instances);\n \t\t\n \t\tList<Message> messages = new ArrayList<Message>();\n \t\tboolean hadAnyErrors = false;\n \t\tfor (int passes = 1; passes < 256; passes++) {\n \t\t\tmessages.clear();\n \t\t\tnode = expand.expand(messages, node);\n \t\t\t\n \t\t\tif (expand.isChanged()) {\n \t\t\t\tif (dumpExpand || messages.size() > 0) {\n \t\t\t\t\tSystem.out.println(\"After expansion pass \" + passes + \":\");\n \t\t\t\t\tDumpAST dump = new DumpAST(System.out);\n \t\t\t\t\tnode.accept(dump);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tfor (Message msg : messages) {\n \t\t\t\t\tSystem.err.println(msg);\n \t\t\t\t\thadAnyErrors = true;\n \t\t\t\t}\n \t\t\t\tif (!expectErrors)\n \t\t\t\t\tassertEquals(catenate(messages), 0, messages.size());\n \t\t\t} else {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \n \t\tmessages.clear();\n \t\texpand.validate(messages, node);\n \t\tfor (Message msg : messages) {\n \t\t\tSystem.err.println(msg);\n \t\t\thadAnyErrors = true;\n \t\t}\n \t\tif (!expectErrors)\n \t\t\tassertEquals(catenate(messages), 0, messages.size());\n \t\telse if (!hadAnyErrors || messages.isEmpty())\n \t\t\tfail(\"no messages generated\");\n \t\treturn node;\n \t}", "public void flatten()\r\n\t\t{\r\n\t\t\tif (_children.size() > 0) \r\n\t\t\t{\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile(i < _children.size())\r\n\t\t\t\t{\r\n\t\t\t\t\tExpressionNode subExpr = _children.get(i);\r\n\t\t\t\t\tsubExpr.flatten();\r\n\t\t\t\t\tif (_data.equals(subExpr._data)) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_children.addAll(subExpr._children);\r\n\t\t\t\t\t\t_children.remove(subExpr);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "public void treeWillCollapse(TreeExpansionEvent e) {\n saySomething(\"Tree-will-collapse event detected\", e);\n }", "public void expandRecJTreeFromNode(TreePath path, JTree tree) {\n\n\t\tDefaultMutableTreeNode thisNode = ((DefaultMutableTreeNode)path.getLastPathComponent());\n\n\t\t//For each child\n\t\tEnumeration<?> hijos = thisNode.children();\n\t\twhile (hijos.hasMoreElements()) {\n\t\t\t//get the child\n\t\t\tDefaultMutableTreeNode hijoActual = (DefaultMutableTreeNode)hijos.nextElement();\n\t\t\tjavax.swing.tree.TreePath aux = path.pathByAddingChild(hijoActual);\n\t\t\t//expand from the child to the end\n\t\t\texpandRecJTreeFromNode(aux, tree);\n\t\t}\n\n\t\t//expand me\n\t\ttree.expandPath(path);\n\t}", "public DefaultMutableTreeNode addObject(GUIMain guiMn, DefaultMutableTreeNode parent,\n Object child,\n boolean shouldBeVisible) {\n \n DefaultMutableTreeNode childNode\n = new DefaultMutableTreeNode(child);\n\n if(child instanceof DefaultMutableTreeNode)\n {\n parent.add((MutableTreeNode) child);\n return childNode;\n }\n \n if (parent == null) {\n parent = guiMn.simMain.rootNode;\n }\n\n //It is key to invoke this on the TreeModel, and NOT DefaultMutableTreeNode\n guiMn.simMain.treeModel.insertNodeInto(childNode, parent,\n parent.getChildCount());\n\n //Make sure the user can see the lovely new node.\n if (shouldBeVisible) {\n guiMn.myTree.scrollPathToVisible(new TreePath(childNode.getPath()));\n }\n return childNode;\n }", "private void printExpanded(Queue<Node> expanded){\n\n ArrayList<String> nodes = new ArrayList<>();\n\n for(Node s : expanded){\n if(s != null){\n nodes.add(s.getDigit().getDigitString());\n }\n }\n\n\n if (forbidden.size() == 0){\n\n int size = nodes.size();\n int index = 0;\n\n for(int m=0; m<size; m++){\n if(index == size - 1){\n\n System.out.print(nodes.get(index));\n break;\n }\n\n System.out.print(nodes.get(index)+\",\");\n index++;\n }\n }else{\n\n nodes.removeAll(forbidden);\n int size = nodes.size();\n int index = 0;\n\n for(int m=0; m<size; m++){\n if(index == size - 1){\n\n System.out.print(nodes.get(index));\n break;\n }\n\n System.out.print(nodes.get(index)+\",\");\n index++;\n }\n }\n }", "@Override\n\tpublic void resizeToChildren () {\n\t}", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "ArrayList<Expression> getChildren();", "public static Expression VisitChildren(ExpressionVisitor visitor) { throw Extensions.todo(); }", "@Override\n public void grow() {\n System.out.println(\"Tree growing\");\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\r\n public void onGroupExpand(int groupPosition) {\n }", "public void expandSelection(boolean use_digraph) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities()),\n new_sel = new HashSet<String>();\n MyGraph to_use = (use_digraph) ? digraph : graph;\n if (sel != null && sel.size() > 0) {\n Iterator<String> it = sel.iterator();\n\twhile (it.hasNext()) {\n\t String entity = it.next();\n\t new_sel.add(entity);\n\t int entity_i = to_use.getEntityIndex(entity);\n\t for (int i=0;i<to_use.getNumberOfNeighbors(entity_i);i++) {\n String nbor = to_use.getEntityDescription(to_use.getNeighbor(entity_i, i));\n if (myrc.visible_entities.contains(nbor)) new_sel.add(nbor);\n\t }\n\t}\n }\n getRTParent().setSelectedEntities(new_sel);\n repaint();\n }" ]
[ "0.68952835", "0.681694", "0.6786622", "0.66797364", "0.6499148", "0.6469146", "0.634616", "0.62952447", "0.62883043", "0.61968684", "0.6186601", "0.61142254", "0.6081462", "0.6059667", "0.6047976", "0.601123", "0.5997943", "0.5991543", "0.5939612", "0.5918512", "0.5902991", "0.5893383", "0.58514", "0.58134496", "0.57384926", "0.56892985", "0.5683376", "0.5679072", "0.562574", "0.5615554", "0.56150204", "0.56063205", "0.55860066", "0.5567892", "0.5566688", "0.55394375", "0.55383694", "0.55272335", "0.5517576", "0.55057776", "0.5499949", "0.54954815", "0.54659325", "0.5437421", "0.5435381", "0.54242235", "0.54196906", "0.53950447", "0.5394589", "0.53911626", "0.5358968", "0.5354769", "0.53379494", "0.5336364", "0.53037477", "0.52893126", "0.5277758", "0.5269899", "0.5255168", "0.52379227", "0.5217018", "0.52000976", "0.51909924", "0.5157037", "0.51532495", "0.51428354", "0.51205945", "0.5113979", "0.51121354", "0.5108824", "0.5099881", "0.5093503", "0.5067384", "0.50659317", "0.50571674", "0.5055748", "0.50536966", "0.50396097", "0.50354695", "0.5016647", "0.5005038", "0.49971113", "0.4986039", "0.4982347", "0.49733877", "0.49692947", "0.49591675", "0.49512237", "0.49484974", "0.49444565", "0.4937802", "0.49347344", "0.49343687", "0.49343687", "0.49343553", "0.49261907", "0.4910386", "0.49100018", "0.49050182", "0.49048784" ]
0.63983977
6
expands a nodes to show the children of the node
private void expandNode(Node parentNode) { VBox childrenVBox = parentNode.getChildrenVBox(); PlaceManager placeManager = PlaceManager.getInstance(); Place sourcePlace = placeManager.getPlace(parentNode.getNodeId()); ArrayList<Place> childrenPlaces = sourcePlace.getChildren(); if (!childrenPlaces.isEmpty()) { for (Place place : childrenPlaces) { String id = place.getId(); String name = place.getName(); String type = place.getType().toString(); String displayName = place.toString(); Node childNode = new Node(id, name, type, displayName, controller); nodes.add(childNode); childrenVBox.getChildren().add(childNode.getContainerPane()); childrenVBox.layout(); } } redrawEdges(parentNode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<Node> expand();", "public abstract List<Node> getChildNodes();", "void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}", "Node[] getChildren(Node node);", "public List<TreeNode> getChildrenNodes();", "private void expandTree() {\n for (int i=0; i<tree.getRowCount(); i++) {\n tree.expandRow(i);\n }\n }", "public Node[] getChildren(){return children;}", "public static void computeChildren() {\n\t\tArrayList<BNNode> children = new ArrayList<BNNode>();\n\t\t// For each node, build an array of children by checking which nodes have it as a parent.\n\t\tfor (BNNode node : nodes) {\n\t\t\tchildren.clear();\n\t\t\tfor (BNNode node2 : nodes) {\n\t\t\t\tif (node == node2)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (BNNode node3 : node2.parents)\n\t\t\t\t\tif (node3 == node)\n\t\t\t\t\t\tchildren.add(node2);\n\t\t\t}\n\t\t\tnode.children = new BNNode[children.size()];\n\t\t\tnode.children = (BNNode[]) children.toArray(node.children);\n\t\t}\n\t}", "public ResultMap<BaseNode> listChildren();", "ArrayList<Expression> getChildren();", "List<Node<T>> children();", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "Collection<DendrogramNode<T>> getChildren();", "private void expandTree() {\n tree.expand();\n }", "@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}", "private List<SimpleNode> getChildren(SimpleNode node) {\n Class<?> nodeType = node.getClass();\n List<SimpleNode> children = new ArrayList<>();\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n children.addAll(flatten(node.jjtGetChild(i), nodeType));\n }\n return children;\n }", "public JodeList children() {\n return new JodeList(node.getChildNodes());\n }", "@Override\r\n\tpublic List<Node> getChildren() {\r\n\t\treturn null;\r\n\t}", "private void recursiveOefosTreeviewBuild(DefaultMutableTreeNode nodes, TreeMap<Object, Taxon> taxons, String sequence, String panelname) throws Exception {\r\n try {\r\n for (Map.Entry<Object, Taxon> kv : taxons.entrySet()) {\r\n ClassNode iNode = new ClassNode(\"\" + kv.getKey(), kv.getValue().upstream_identifier + \": \" + kv.getValue().description);\r\n \r\n ClassMutableNode inner = new ClassMutableNode(iNode);\r\n nodes.add(inner);\r\n String oefosname = panelname+\"----\"+sequence;\r\n if (this.oefos_path.get(oefosname) != null) {\r\n if (this.oefos_path.get(oefosname).containsValue(kv.getValue().TID)) {\r\n selected = inner;\r\n }\r\n }\r\n\r\n recursiveOefosTreeviewBuild(inner, kv.getValue().subtaxons, sequence, panelname);\r\n }\r\n\r\n // Utility.sortTreeChildren(nodes);\r\n } catch (Exception ex) {\r\n throw new Exception(\"Exception in recursiveOefosTreeviewBuild: \" + ex.getStackTrace() + \"\\n\");\r\n }\r\n }", "protected String renderChildren(Object inNode)\n\t{\n\t\tStringBuffer js = new StringBuffer();\n\t\t\n\t\tif ( hasBeenExpanded( inNode ) )\n\t\t{\n//\t\t\tString collapseUrl = quotes(\"?\" + \"WebTreeName=\" + getWebTree().getName() + \"&oe-action=\" +\n//\t\t\t\tgetCollapseNodeCommand() + \"&nodeID=\" + getWebTree().getModel().getId(inNode));\n//\t\t\tjs.append(collapseUrl +\", new Array(\\n\");\n\n\t\t\tjs.append(\", new Array(\\n\");\n\n\t\t\tint c = getWebTree().getModel().getChildCount( inNode );\n\t\t\tfor (int i = 0; i < c; i++ )\n\t\t\t{\n\t\t\t\tif ( i > 0 )\n\t\t\t\t{\n\t\t\t\t\tjs.append(\",\\n\");\n\t\t\t\t}\n\t\t\t\tObject childNode = getWebTree().getModel().getChild( inNode, i );\n\t\t\t\tjs.append(renderNewFolder(childNode));\n\t\t\t}\n\n\t\t\tjs.append(\" ) \");\n\t\t}\n\t\telse\n\t\t{\n//\t\t\tString expandUrl = quotes(\"?\" + \"WebTreeName=\" + getWebTree().getName() + \"&oe-action=\" +\n//\t\t\t\tgetExpandNodeCommand() + \"&nodeID=\" + getWebTree().getModel().getId(inNode));\n\n\t\t\t// Might need to make this configurable later on.\n\t\t\t// Different controllers may want to use different commands here.\n\t\t\tjs.append(\",null \" );\n\t\t\t\n\t\t//\t\t\t\tjs.append(\n\t\t//\t\tquotes(\"?\" + \"WebTreeName=\" + getWebTree().getName() + \"&oe-action=\" +\n\t\t//\t\t\tgetExpandNodeCommand() + \"&nodeID=\" + getWebTree().getModel().getId(inNode)) + \", null, \");\n\t\t\t\n\t\t}\n\n\t\treturn js.toString();\n\t}", "public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }", "public List<AST> getChildNodes ();", "public ArrayList<Node> getChildren() { return this.children; }", "List<HNode> getChildren(Long id);", "public List<RealObject> getChildren();", "public JodeList children(Predicate<Jode> filter) {\n return this.children().filter(filter);\n }", "protected abstract List<T> getChildren();", "@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }", "public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}", "abstract public Collection<? extends IZipNode> getChildren();", "public ResultMap<BaseNode> listChildren(Pagination pagination);", "public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}", "public DynamicModelPart buildChildren() {\n this.children.parallelStream().forEach(child -> {\n child.build();\n });\n return this;\n }", "@Override\n\tpublic TreeNode[] getChildren() {\n\t\treturn this.children ;\n\t}", "public void expandAllNodes(JTree tree, int startingIndex, int rowCount){\n for(int i=startingIndex;i<rowCount;++i){\n tree.expandRow(i);\n }\n\n if(tree.getRowCount()!=rowCount){\n expandAllNodes(tree, rowCount, tree.getRowCount());\n }\n}", "@Override\r\npublic void Display(int depth) {\n\tSystem.out.println(\"-\"+depth);\r\n children.forEach(com->com.Display(depth+2));\r\n }", "public void flatten()\r\n\t\t{\r\n\t\t\tif (_children.size() > 0) \r\n\t\t\t{\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile(i < _children.size())\r\n\t\t\t\t{\r\n\t\t\t\t\tExpressionNode subExpr = _children.get(i);\r\n\t\t\t\t\tsubExpr.flatten();\r\n\t\t\t\t\tif (_data.equals(subExpr._data)) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_children.addAll(subExpr._children);\r\n\t\t\t\t\t\t_children.remove(subExpr);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "@JsProperty\n NodeList getChildNodes();", "private List<Node<E>> getChildrenForNode(Node<E> node) {\n ArrayList<Node<E>> list = new ArrayList<>();\n for (Node<E> child : node.getChilden()) {\n list.add(child);\n }\n return list;\n }", "public void setShowNodes(Boolean value) {\n showNodes = value;\n }", "public void rebuild() {\n\t\tif (!divided) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint totalChildren = 0;\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\t// If there is a divided child then we cant do anything\n\t\t\tif (q.isDivided()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttotalChildren += q.numPoints();\n\t\t}\n\t\t\n\t\t// If the sum of all the children contained in the sub nodes\n\t\t// is greater than allowed then we cant do anything\n\t\tif (totalChildren > QUADTREE_NODE_CAPACITY) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add all the nodes from the children to this node then remvoe the nodes\n\t\tpoints = new HashMap<Point, E>();\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\tpoints.putAll(q.points);\n\t\t}\n\t\t\n\t\tnodes.clear();\n\t\tdivided = false;\n\t}", "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }", "public List<IContentNode> getChilds(int start, int limit);", "@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }", "public List<PlanNode> getChildren() {\n return childrenView;\n }", "public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}", "public ArrayList<Node> getChildren(){\n return children;\n }", "public void setChildren(Node[][] graph){\n if(inBounds(row+1, col+1)) {\n if (graph[row + 1][col + 1].getType() != '0')\n children.add(graph[row + 1][col + 1]);\n }\n if(inBounds(row, col+1)){\n if (graph[row][col + 1].getType() != '0')\n children.add(graph[row][col + 1]);\n }\n if(inBounds(row-1, col+1)) {\n if (graph[row - 1][col + 1].getType() != '0')\n children.add(graph[row - 1][col + 1]);\n }\n if(inBounds(row+1, col)) {\n if (graph[row + 1][col].getType() != '0')\n children.add(graph[row + 1][col]);\n }\n if(inBounds(row-1, col)) {\n if (graph[row - 1][col].getType() != '0')\n children.add(graph[row - 1][col]);\n }\n if(inBounds(row+1, col-1)) {\n if (graph[row + 1][col - 1].getType() != '0')\n children.add(graph[row + 1][col - 1]);\n }\n if(inBounds(row, col-1)) {\n if (graph[row][col - 1].getType() != '0')\n children.add(graph[row][col - 1]);\n }\n if(inBounds(row-1, col-1)) {\n if (graph[row - 1][col - 1].getType() != '0')\n children.add(graph[row - 1][col - 1]);\n }\n }", "public void init$Children() {\n }", "public void init$Children() {\n }", "public void init$Children() {\n }", "public List<SearchNode> expand() {\n\n List<SearchNode> neighbours = new ArrayList<>();\n\n if (this.getX() > 0) {\n SearchNode left = new SearchNode(this.getX() - 1, this.getY(), this.getDepth() + 1);\n neighbours.add(left);\n }\n if (this.getX() < 14) {\n SearchNode right = new SearchNode(this.getX() + 1, this.getY(), this.getDepth() + 1);\n neighbours.add(right);\n }\n if (this.getY() > 0) {\n SearchNode up = new SearchNode(this.getX(), this.getY() - 1, this.getDepth() + 1);\n neighbours.add(up);\n }\n if (this.getY() < 14) {\n SearchNode down = new SearchNode(this.getX(), this.getY() + 1, this.getDepth() + 1);\n neighbours.add(down);\n }\n\n return neighbours;\n }", "@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}", "public Collection<VisualLexiconNode> getChildren() {\n \t\treturn children;\n \t}", "public Enumeration<Node> children() { return null; }", "MergeHandler[] getChildren();", "public Vector<Node> GetAdditionalSubNodes();", "public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new Opt(), 2);\n }", "private void expandAllNodes(JTree tree, int startingIndex, int rowCount) {\n for (int i = startingIndex; i < rowCount; ++i) {\n tree.expandRow(i);\n }\n\n if (tree.getRowCount() != rowCount) {\n expandAllNodes(tree, rowCount, tree.getRowCount());\n\n }\n }", "public static Expression VisitChildren(ExpressionVisitor visitor) { throw Extensions.todo(); }", "private ArrayList<String> makeChildren(Node current) {\n\n ArrayList<String> current_children = new ArrayList<>();\n\n if (current != null && current.getDigit().last_changed != 0) {\n //-1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseFirstDigit();\n current_children.add(child_node);\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseFirstDigit();\n current_children.add(child_node);\n }\n }\n\n if (current != null && current.getDigit().last_changed != 1) {\n //-1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseSecondDigit();\n current_children.add(child_node);\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseSecondDigit();\n current_children.add(child_node);\n }\n }\n\n if (current != null && current.getDigit().last_changed != 2) {\n //-1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseThirdDigit();\n current_children.add(child_node);\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseThirdDigit();\n current_children.add(child_node);\n }\n }\n return current_children;\n }", "public void dumpChildren ()\r\n {\r\n dumpChildren(0);\r\n }", "private Node constructParsedTree(Node[] nodes) {\n int rootIndex = 0;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i].getFather() > 0)\n nodes[nodes[i].getFather() - 1].addChild(nodes[i]);\n else\n rootIndex = i;\n }\n return nodes[rootIndex];\n }", "@Override\r\n\tpublic List<TreeNode> getChildren() {\n\t\tif(this.children==null){\r\n\t\t\treturn new ArrayList<TreeNode>();\r\n\t\t}\r\n\t\treturn this.children;\r\n\t}", "public void init$Children() {\n children = new ASTNode[1];\n }", "public JodeList children(String nodeName) {\n return this.children().filter(nodeName);\n }", "@Override\n\tpublic void resizeToChildren () {\n\t}", "private void initSubNodes()\n {\n children = createSubNodes(false);\n attributes = createSubNodes(true);\n }", "public ArrayList<Node> getChildren() {\n return children;\n }", "public ListNode[] getChildren(){\n\t\tListNode[] ret = new ListNode[length()];\n\t\tListNode temp = firstNode;\n\t\tfor(int i = 0; i < ret.length && temp != null; i++){\n\t\t\tret[i] = temp;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\n\t\treturn ret;\n\t}", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "private void traversal (\n TreeNodeVisitor visitor\n ) {\n\n visitor.visit (this);\n if (children != null) {\n for (SceneOctTree child : children) child.traversal (visitor);\n } // if\n\n }", "public AST[] getChildren()\r\n {\n \tif (children == null) {\r\n \t\tList<AST> temp = new java.util.ArrayList<AST>();\r\n \t\ttemp.addAll(fields);\r\n \t\ttemp.addAll(predicates);\r\n \t\ttemp.addAll(constructors);\r\n \t\ttemp.addAll(methods);\r\n \t\tchildren = (AST[]) temp.toArray(new AST[0]);\r\n \t}\r\n \treturn children;\r\n }", "public void init$Children() {\n children = new ASTNode[2];\n setChild(new List(), 1);\n }", "public void expand() {\n\t\tconvertHeadToTailComponent();\n\t\taddNewHead();\n\t}", "public Collection<ChildType> getChildren();", "public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new List(), 2);\n }", "@Nonnull\n Iterable<? extends T> getChildren();", "public Vector getChildren() {\n return this.children;\n }", "public abstract Graph getChildren(String parentHash);", "public Item2Vector<Concept> getChildren() { return children; }", "public Vector getChildren()\r\n\t{\r\n\t\treturn m_children;\r\n\t}", "private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }", "public void placeTreeNodes() {\n int width;\n float rad;\n\n // Stores width and rad for convenience.\n width = MainActivity.getCanvas().getWidth();\n rad = AnimationParameters.NODE_RADIUS;\n\n // Places the Nodes.\n placeTreeNodes((int) (width / 2 + rad * 1.5), (int) (rad * 2),\n (int) (width - rad * 5), (int) AnimationParameters.depthLen);\n\n }", "public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }", "public Node[] getChildren() {\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\treturn nextLayer;\n\t}", "void bindNodes() {\n for (Exp exp : getExpList()) {\n exp.setNodeList(exp.getNodes());\n }\n }", "public void recursiveExpand(StatementParse node, ArrayList<StatementParse> expanded){\n if (node.getName().equals(\"-\")){\n node.getChildren().get(1).changeNegativity();\n }\n for (StatementParse child: node.getChildren()){\n // distribute if the child is negative\n if (child.isNegative()){\n for (StatementParse grandChild: child.getChildren()){\n grandChild.changeNegativity();\n }\n }\n if (this.isMulDiv(child)) {\n StatementParse transformedMulDiv = this.mulDivTransform(child);\n expanded.add(transformedMulDiv);\n } else if (this.isAddSub(child)){\n recursiveExpand(child, expanded);\n } else {\n expanded.add(child);\n }\n }\n }", "public ObjectList<DynamicModelPart> getChildren() {\n return this.children;\n }", "protected void addChildrenNodes(List<DFNode> fringe, DFNode parentNode, List<ActionStatePair> children) {\n Object[] childrenArray = children.toArray();\n\n for (int i = 0; i < childrenArray.length; i++) {\n ActionStatePair actionState = (ActionStatePair) childrenArray[i];\n CCAction action = (CCAction) actionState.action;\t\t\t\t\t\t\t//get the action component\n CCState childState = actionState.state;\t\t\t\t\t\t\t//get the state component\n DFNode childNode = new DFNode(childState, parentNode, action);\t//create new child node\n this.addChild(fringe, childNode);\t\t\t\t\t\t\t//add child node to end of fringe\n this.nodeVisited++;\n }\n }", "private List<AxiomTreeNode> getChildNodeList(AxiomTreeNode t) {\n\n List<AxiomTreeNode> list = new ArrayList<AxiomTreeNode>();\n\n for (int i = 0; i < t.getChildCount(); i++) {\n\n list.add((AxiomTreeNode) t.getChildAt(i));\n }\n\n return list;\n }", "public void expand(boolean inclChildren) {\n isExtended = true;\n if (inclChildren)\n for (BudgetAccountTableRow child : children)\n child.reduce(true);\n updateUItoExtState();\n }", "public String[] listChildren()\n/* */ {\n/* 519 */ int childCount = getChildCount();\n/* 520 */ String[] outgoing = new String[childCount];\n/* 521 */ for (int i = 0; i < childCount; i++) {\n/* 522 */ outgoing[i] = getChild(i).getName();\n/* */ }\n/* 524 */ return outgoing;\n/* */ }", "public Vector getChildren() {\n return null;\n }", "public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }", "public void setChildren(List<BTreeNode<E>> newChildren) {\n\t\t//not adding in order, but does not matter because list is empty, and you will only call this method when the children are in order\n\t\tchildren.addAll(newChildren);\n\t\tfor (BTreeNode<E> child: newChildren) {\n\t\t\tchild.parent = this;\n\t\t}\n\t}", "@Override\n public List<ConfigurationNode> getChildren()\n {\n return children.getSubNodes();\n }", "public abstract boolean setNodeExpanded(int nodeIndex,boolean true_is_yes);" ]
[ "0.70344126", "0.68063974", "0.6783657", "0.676652", "0.6676781", "0.6598529", "0.65671176", "0.6564449", "0.6428307", "0.6398681", "0.6392748", "0.6367519", "0.6321436", "0.63175243", "0.63069457", "0.6283996", "0.6242393", "0.6208984", "0.6189199", "0.618322", "0.612624", "0.6126161", "0.6112136", "0.61071485", "0.60913867", "0.6091133", "0.6051179", "0.60399514", "0.6015318", "0.60028404", "0.60022885", "0.5998077", "0.599164", "0.59787357", "0.5955525", "0.5949714", "0.59203005", "0.5916332", "0.59154254", "0.5911896", "0.59080493", "0.59027433", "0.5900716", "0.5894414", "0.5889393", "0.58830935", "0.5869795", "0.585855", "0.58536816", "0.58536816", "0.58536816", "0.58482367", "0.5841675", "0.5837747", "0.5825372", "0.5815754", "0.5815117", "0.5815039", "0.58148074", "0.5813767", "0.579741", "0.57767004", "0.57752967", "0.5769139", "0.5768071", "0.57566047", "0.57530946", "0.5739528", "0.5723675", "0.571835", "0.5718148", "0.5718148", "0.5718148", "0.57089955", "0.57032526", "0.5700696", "0.5694409", "0.5685521", "0.568394", "0.56793356", "0.5667898", "0.56604713", "0.5659931", "0.5653419", "0.5641274", "0.5635023", "0.5613476", "0.5609658", "0.56078225", "0.560339", "0.5601968", "0.559904", "0.5590147", "0.5587129", "0.5581229", "0.5579921", "0.5575774", "0.5572321", "0.55635434", "0.55545855" ]
0.63852453
11
clears and redraws the edge present in the central pane. used when nodes are moved around (when a node is expanded).
private void clearEdgeLinks() { edges.clear(); //keep whole tree to maintain its position when it is expanded (within scroll pane bounds) Node rootNode = nodes.get(0); VBox rootVBox = (VBox) rootNode.getContainerPane().getParent(); rootVBox.layout(); Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal(); rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY())); rootVBox.layout(); for (int i = 0; i < nodes.size(); i++) { Pane containerPane = nodes.get(i).getContainerPane(); //reposition node to the center of its children ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren(); if (!genericNodes.isEmpty()) { nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2); } for (int j = 0; j < containerPane.getChildren().size(); j++) { if (containerPane.getChildren().get(j) instanceof Edge) { containerPane.getChildren().remove(j); j--; } } } redrawEdges(rootNode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Clear() {\n OCCwrapJavaJNI.ShapeFix_EdgeConnect_Clear(swigCPtr, this);\n }", "public void removeAllEdges() {\n }", "public boolean resetEdges();", "public void updateDeleteActiveEdges()\r\n\t{\r\n\t\tupdateDeleteActiveEdges(m_drawRoot);\r\n\t}", "public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }", "public void clear(){\r\n canvas.getGraphicsContext2D().clearRect(canvas.getWidth(),canvas.getHeight(),1,1);\r\n pane.getChildren().clear();\r\n }", "private void updateGraph() {\n if (centerBox.getChildren().size() > 0) {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().set(0, this.drawGraph());\n } else {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().add(this.drawGraph());\n }\n }", "private void resetGUI() {\n leftVBox.getChildren().clear();\n rightVBox.getChildren().clear();\n connectionsPane.getChildren().clear();\n }", "public void clear() {\r\n for (Edge edge : edges)\r\n edge.disconnect();\r\n for (Vertex vertex : vertices)\r\n vertex.disconnect();\r\n edges.clear();\r\n vertices.clear();\r\n getChildren().remove(1, getChildren().size());\r\n }", "private void redrawEdges(Node startNode) {\n if (startNode.getChildrenVBox().getChildren().isEmpty()) {\n return;\n }\n for (javafx.scene.Node childGenericNode : startNode.getChildrenVBox().getChildren()) {\n Pane containerPane = (Pane) childGenericNode;\n Node childNode = (Node) containerPane.getChildren().get(0);\n Edge edge = new Edge(startNode, childNode);\n startNode.getContainerPane().getChildren().add(edge);\n startNode.getContainerPane().layout();\n edges.add(edge);\n redrawEdges(childNode);\n }\n }", "public void draw(){\n\t\t\tint x = getPreferredSize().width/2;\n\t\t\tint y = 10;\n\t\t\tif (root() != null)\n\t\t\t\tpreOrderCell(root(), x, y, root().getColor());\n\t\t\tjgraph.getGraphLayoutCache().insert(cells.values().toArray());\n\t\t\tjgraph.getGraphLayoutCache().insert(nullnodes.toArray());\n\t\t}", "public void clear() {\n\t\t\tsuper.clear();\n\t\t\tjgraph.getGraphLayoutCache().remove(nullnodes.toArray());\n\t\t\tnullnodes = new LinkedList<DefaultGraphCell>();\n\t\t}", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.RMV_EDGES;\r\n instr.setText(\"Drag from one node to another to remove an edge.\");\r\n }", "public void editEdge(){\n\t}", "private void clearPainting()\r\n\t{\r\n\t\tdockableDragPainter.clear();\r\n\t}", "public void clear() {\r\n\t\t\r\n\t\ttopNode = null; // Sets topNode pointer to null.\r\n\t\t\r\n\t}", "public Builder clearEdge() {\n if (edgeBuilder_ == null) {\n edge_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n edgeBuilder_.clear();\n }\n return this;\n }", "@Override\n\tpublic void clear()\n\t{\n\t\t/*\n\t\t * TODO This doesn't actually notify GraphChangeListeners, is that a\n\t\t * problem? - probably is ... thpr, 6/27/07\n\t\t */\n\t\tnodeEdgeMap.clear();\n\t\tnodeList.clear();\n\t\tedgeList.clear();\n\t}", "public void clear() {\n this.root_.setNw(null);\n this.root_.setNe(null);\n this.root_.setSw(null);\n this.root_.setSe(null);\n this.root_.setNodeType(NodeType.EMPTY);\n this.root_.setPoint(null);\n this.count_ = 0;\n }", "public void repaintGraph() {\r\n this.repaint();\r\n ((GraphBuilder) getFrameParent()).getMiniMap().repaint();\r\n }", "public void clear() {\n\t\tleftIndex = 0;\n\t\trightIndex = 0;\n\t}", "protected void refreshVisuals() {\r\n\t\trefreshBendpoints();\r\n\t\tif (getEdge().getValue())\r\n\t\t\tgetEdgeFigure().setForegroundColor(alive);\r\n\t\telse\r\n\t\t\tgetEdgeFigure().setForegroundColor(dead);\r\n\t\t//throw new NullPointerException();\r\n\t}", "public void clear() {\n\t\tthis.root = new Node();\n\t}", "public void clear() {\r\n\t\tentryGraph.clear();\r\n\t\tupdate();\r\n\t}", "void clearButton_actionPerformed(ActionEvent e) {\n clearPlot(true);\n }", "public void endUpdate() {\n getCellLayer().getChildren().addAll(model.getAddedEdges());\n getCellLayer().getChildren().addAll(model.getAddedCells());\n\n // remove components from graph pane\n getCellLayer().getChildren().removeAll(model.getRemovedCells());\n getCellLayer().getChildren().removeAll(model.getRemovedEdges());\n\n // enable dragging of cells\n// for (Cell cell : model.getAddedCells()) {\n// mouseGestures.makeDraggable(cell);\n// }\n\n // every cell must have a parent, if it doesn't, then the graphParent is\n // the parent\n getModel().attachOrphansToGraphParent(model.getAddedCells());\n\n // remove reference to graphParent\n getModel().disconnectFromGraphParent(model.getRemovedCells());\n\n // merge added & removed cells with all cells\n getModel().merge();\n\n }", "public void actionPerformed(ActionEvent e) {\n ((GraphPanel)graphPanel).clearAllStates();\n ((GraphPanel)graphPanel).analyzeGraph();\n mainFrame.repaint();\n }", "private void releasedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* End the move (do not need any recourse) or resize the node */\r\n try {\r\n /* End the move of the edge. Set the new adjacents */\r\n if (graphX.isAnyEdgeSelected() && ctrlPressed == false && moveingGraph == false) {\r\n EdgeX edgeX = graphX.getSelectedEdge();\r\n if (graphX.nodesContains(e.getPoint())) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n\r\n boolean exist = false;\r\n /* Verify if the edge exist */\r\n if (edgeX.getPointToMove() == EdgeX.FIRST_POINT) {\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.isEdgeInList(nodeX, edgeX.getSeccondAdjacent()) == true) {\r\n exist = true;\r\n break;\r\n }\r\n }\r\n } else if (edgeX.getPointToMove() == EdgeX.SECCOND_POINT) {\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.isEdgeInList(edgeX.getFirstAdjacent(), nodeX) == true) {\r\n exist = true;\r\n break;\r\n }\r\n }\r\n }\r\n /* Set the new edge only if it doesn't exist */\r\n if (!edgeX.getFirstAdjacent().equals(nodeX) && !edgeX.getSeccondAdjacent().equals(nodeX)\r\n && exist == false) {\r\n Edge edge = edgeOf(edgeX);\r\n\r\n deleteEdge(); // Delete the selected edge\r\n\r\n if (edgeX.getPointToMove() == EdgeX.SECCOND_POINT) {\r\n edge.setSeccondAdjacent(nodeOf(graphX.getNode(e.getPoint())));\r\n edgeX.setSeccondAdjacent(graphX.getNode(e.getPoint()));\r\n addEdge(edge, edgeX);\r\n } else if (edgeX.getPointToMove() == EdgeX.FIRST_POINT) {\r\n edge.setFirstAdjacent(nodeOf(graphX.getNode(e.getPoint())));\r\n edgeX.setFirstAdjacent(graphX.getNode(e.getPoint()));\r\n addEdge(edge, edgeX);\r\n }\r\n\r\n edgeX = graphX.edgeAt(graphX.edgesNumber() - 1);\r\n edgeX.setState(true);\r\n }\r\n }\r\n edgeX.setPointToMove(EdgeX.NONE_POINT);\r\n edgeX.setMoveState(false);\r\n }\r\n /* End the resize of the node */\r\n else if (graphX.isOneNodeSelected()) {\r\n if (graphX.getSelectedNode().isResize()) {\r\n graphX.getSelectedNode().setResize(false);\r\n }\r\n }\r\n /* Select only one node from the multiple selection */\r\n else {\r\n if (ctrlPressed == false && dragMultiple == false) {\r\n graphX.deselectAll();\r\n graphX.selectNode(e.getPoint());\r\n }\r\n }\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Select multiple nodes */\r\n if (selectTool.isMultiple()) {\r\n selectTool.setSeccondPoint(e.getPoint());\r\n graphX.selectNodes(selectTool.getRectangle());\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n\r\n moveingGraph = false;\r\n\r\n /* Set the cursor */\r\n if (graphX.nodesResizeContains(e.getPoint()) && graphX.isOneNodeSelected() && !ctrlPressed) {\r\n this.setCursor(GraphBuilder.resizeSE);\r\n } else if (graphX.overSplitPoints(e.getPoint())) {\r\n this.setCursor(GraphBuilder.move);\r\n } else if (graphX.nodesContains(e.getPoint())\r\n || graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)) {\r\n this.setCursor(GraphBuilder.hand);\r\n } else {\r\n /* Set no split point for the edges */\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n graphX.edgeAt(i).setNoCurrentPoint();\r\n }\r\n this.setCursor(GraphBuilder.arrow);\r\n }\r\n\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n try {\r\n graphX.getSelectedEdge().setNoCurrentPoint();\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n }", "public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}", "public void clearComplexRelationshipCoordinates()\n {\n if(this.isVisible())\n {\n this.coordinates = null;\n this.paint(this.getGraphics());\n }\n }", "protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}", "private synchronized void clearLayout() {\n\t\tmLeftViewIndex = -1;\n\t\tmRightViewIndex = 0;\n\t\tmDisplayOffset = 0;\n\t\tmCurrentX = mOffsetLeft;\n\t\tmNextX = 0;\n\t\tmMaxX = Integer.MAX_VALUE;\n\t}", "private void resetPieChart() {\n diagramBox.getChildren().clear();\n }", "private void refreshDisplay() {\n \t\tCursor cursor;\n \t\tif (node_id >= 0)\n \t\t\tcursor = appInst.getDB().getNodeChildren(node_id);\n \t\telse\n \t\t\tcursor = appInst.getDB().getFileCursor();\n \n \t\tstartManagingCursor(cursor);\n \t\tthis.outlineAdapter = new OutlineCursorAdapter(this, cursor, appInst.getDB());\n \t\tthis.setListAdapter(outlineAdapter);\n \n \t\tgetListView().setSelection(this.lastSelection);\n \t}", "public void ClearActionPerformed(java.awt.event.ActionEvent evt) {\n drawingPanel.setPath(\"null\"); \r\n }", "void detachFromGraphView();", "private void actionClear() {\n layoutPanel.inhNList.clear();\n layoutPanel.activeNList.clear();\n layoutPanel.probedNList.clear();\n\n Graphics g = layoutPanel.getGraphics();\n layoutPanel.writeToGraphics(g);\n }", "public void clear() {\n\t\troot.left = null;\n\t\troot.right = null;\n\t\troot = null;\n\t\tsize = 0;\n\t}", "@Override\n public void clear() {\n setSize(0);\n }", "private void resetWindow(){\n // Clear Container Panel\n Component[] componentList = ContainerPanePanel.getComponents();\n for(Component c: componentList)\n ContainerPanePanel.remove(c);\n \n containerPanePanelLength=0;\n ContainerPanePanel.setPreferredSize(new Dimension(0,containerPanePanelLength));\n \n // Clear Network Panel\n componentList = NetworkPanePanel.getComponents();\n for(Component c: componentList)\n NetworkPanePanel.remove(c);\n \n networkPanePanelLength=0;\n NetworkPanePanel.setPreferredSize(new Dimension(0,networkPanePanelLength));\n \n this.revalidate();\n this.repaint();\n }", "public void clear()\n\t{\n\t\tthis.getChildren().clear();\n\t}", "public void clear() {\n\t\tshapes.clear();\n\t\tgroupedShapes.clear();\n\t\tthis.repaint();\n\t\tcounter = 0;\n\t\tnotifyObservers();\n\t}", "@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}", "public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }", "public void update() {\n\t\tif (fAssociationClassOrLinkObjectNode.isDragged()) { // && fDiagram.isDoAutoLayout() ) {\n\t\t\tfFirstCall = false;\n\t\t\tfX_old = fAssociationClassOrLinkObjectNode.getX();\n\t\t\tfY_old = fAssociationClassOrLinkObjectNode.getY();\n\t\t\tfX_con_old = fConNode.getX();\n\t\t\tfY_con_old = fConNode.getY();\n\t\t} else if (!fAssociationClassOrLinkObjectNode.isDragged()) { // && fDiagram.isDoAutoLayout() ) {\n\t\t\tdouble x = fX_old - fX_con_old;\n\t\t\tdouble y = fY_old - fY_con_old;\n\t\t\tdouble newX = x + fConNode.getX();\n\t\t\tdouble newY = y + fConNode.getY();\n\t\t\tfNENode.setPosition(newX, newY);\n\t\t\tfAssociationClassOrLinkObjectNode.setPosition(newX, newY);\n\t\t}\n\n\t\tif (fFirstCall && !fAssociationClassOrLinkObjectNode.isSelected()) {\n\t\t\tfinal int maxSpace = 30;\n\t\t\tdouble newX = 0.0;\n\t\t\tdouble newY = 0.0;\n\n\t\t\tif (fAssociationClassOrLinkObjectNode.getCenter().getX() >= fConNode.getCenter().getX()) {\n\t\t\t\tnewX = fConNode.getCenter().getX() + maxSpace + fAssociationClassOrLinkObjectNode.getWidth() / 2;\n\t\t\t\tnewY = fConNode.getCenter().getY();\n\t\t\t} else {\n\t\t\t\tnewX = fConNode.getCenter().getX() - maxSpace - fAssociationClassOrLinkObjectNode.getWidth() / 2;\n\t\t\t\tnewY = fConNode.getCenter().getY();\n\t\t\t}\n\t\t\tfNENode.setPosition(newX, newY);\n\t\t\tfAssociationClassOrLinkObjectNode.setPosition(newX, newY);\n\t\t}\n\n\t\tupdateConnectionPoint(fSourceWayPoint.getX(), fSourceWayPoint.getY(), fTargetWayPoint.getX(),\n\t\t\t\tfTargetWayPoint.getY());\n\t}", "protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }", "private void clear() {\n activeUser = null;\n socialNetwork = new SocialNetwork();\n userList.getItems().clear();\n if (centerBox.getChildren().size() > 0) {\n this.graphPane = new Pane();\n this.graphPane.setPrefSize(500, 500);\n centerBox.getChildren().set(0, this.drawGraph());\n } else {\n this.graphPane = new Pane();\n this.graphPane.setPrefSize(500, 500);\n centerBox.getChildren().add(this.drawGraph());\n }\n ((Labeled) ((VBox) statsBox.getChildren().get(0)).getChildren().get(1)).setText(\"\");\n updateCounts();\n }", "@FXML private void addEdges()\t\t\n\t{ \t\n\t\tif (getSelection().size() >= 2)\t\t\n\t\t{\n\t\t\tList<Edge> edges = getDrawModel().connectSelectedNodes();\n\t\t\tfor (Edge e: edges)\n\t\t\t\tadd(0, e, getActiveLayerName());\n\t\t}\n\t}", "public void clear(){\n instructions.clear();\n super.repaint();\n }", "public void ActionSmitteOversigt(ActionEvent actionEvent) { Main.setGridPane(0); }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.ADD_EDGES;\r\n instr.setText(\"Drag from one node to another to add an edge.\");\r\n }", "@Override\n public void clear() {\n root = new Node ('i', false, 256);\n }", "@Override\r\n public void clearToggledPaths(){\r\n super.clearToggledPaths();\r\n }", "void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}", "public void treeEdge(Edge e) {}", "public void clear()\n {\n nodes.clear();\n }", "public void clear() {\n this.top = null;\n }", "public void clearGraph(){\n\t\tthis.tools.clearGraph(graph);\n\t}", "public void clear() {\n root = null;\n }", "public void clear() {\n root = null;\n }", "@Override\n public void clear() {\n size = 0;\n root = null;\n }", "public void clear() {\n root = null;\n size = 0;\n }", "public void clear() {\n root = null;\n size = 0;\n }", "public void resetNodes() {\n\tmaxX = -100000;\n\tmaxY = -100000;\n\tminX = 100000;\n\tminY = 100000;\n\taverageX = 0;\n\taverageY = 0;\n }", "@Override\n public void clear() {\n root = null;\n }", "public void paint() {\n int L = 150; // Local convenience var\n\n // Declare three lines (left, middle, and right)\n Line left = new Line(L, L, L, getHeight() - L);\n Line middle = new Line(L, getHeight() / 2, getWidth() - L, getHeight() / 2);\n Line right = new Line(getWidth() - L, L, getWidth() - L, getHeight() - L);\n\n getChildren().clear(); // Clear the pane before redisplay\n\n displayHTree(order, left, middle, right); // Call the recursive method\n }", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "protected void clearEdgeMap() {\n\n for (String id : this.edgeMap.keySet()) {\n\n this.ids.remove(id);\n }\n this.edgeMap.clear();\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clearEdges() {\n /* remove edges from all graphs */\n for (TimeFrame tf : lstTimeFrameOrdering) {\n hmpGraphsAtTimeframes.get(tf).clearEdges();\n }\n \n /* empty adjacency list */\n for (int i = 0 ; i < darrGlobalAdjList.size() ; i++) {\n for (TimeFrame tf : darrGlobalAdjList.get(i).keySet()) {\n darrGlobalAdjList.get(i).get(tf).clear();\n }\n }\n /* delete all Edge Objects */\n mapAllEdges.clear();\n }", "public void repaint() { if(_parent!=null) _parent.repaint(this); }", "void clear() {\n\t\t\tfor (int i = 0 ; i < nodes.length; i++) {\n\t\t\t\tnodes[i].clear((byte) 1);\n\t\t\t}\n\t\t\tsize = 0;\n\t\t}", "@Override\r\n public void clear(){\r\n root = null;\r\n }", "private void reset()\r\n\t{\r\n\t\t\r\n\t\toriginDock = null;\r\n\t\tdraggedDockable = null;\r\n\r\n\t}", "public void partialRedraw()\r\n\t{\r\n\t\tg.clearRect(0,0,NumerateGame.WINDOW_X,NumerateGame.WINDOW_Y);\r\n\t}", "@objid (\"1b87bc43-5e33-11e2-b81d-002564c97630\")\n private void shiftAll(final BackgroundModel directedGraph) {\n // Center the center node in the view.\n // Get the size of the control showing the viewer (this has to be done\n // in the display thread to avoid InvalidThreadAccessException).\n final Point controlSize = getViewAreaSize();\n \n if (controlSize.x <= 0 || controlSize.y <= 0) {\n // FIXME We were called too early, SWT not yet ready\n return;\n }\n \n final GraphNode centerNode = directedGraph.getCenter();\n \n // Compute the vector to align the nodes.\n int xDelta;\n int yDelta;\n xDelta = (controlSize.x / 2) - (centerNode.x + (centerNode.width / 2));\n yDelta = (controlSize.y / 2) - (centerNode.y + (centerNode.height / 2));\n \n // Move all nodes\n for (Object nodeObj : directedGraph.nodes) {\n Node node = (Node) nodeObj;\n node.x += xDelta;\n node.y += yDelta;\n }\n }", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t\tleftChild = null;\r\n\t\trightChild= null;\r\n\t}", "public void draw() {\n drawSubtree(root);\n }", "public void dispose() {\n parent.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n child.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n parent.removeEdge(this);\n child.removeEdge(this);\n child.setParentEdge(null);\n }", "public void clear() {\r\n\t\troot = null;\r\n\t\tsize = 0;\r\n\t}", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void clear(Pane root) {\n root.getChildren().clear();\n this.blocks.clear();\n //this.connections.clear();\n next_id = 0;\n this.queue.clear();\n this.queue_set = false;\n }", "void removeEdge(int x, int y);", "public void reset() {\n\t\trabbitcount[1]=8;\n\t\trabbitcount[2]=8;\n\t\tpieces.clear();\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}", "@Override\n\tpublic void clear() {\n\t\tsize = 0;\n\t\troot = null;\n\t}", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}", "public void refreshGraph()\n {\n graph.getViewport().setMinX(0);\n graph.removeAllSeries();\n for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)\n {\n series.get(can.getKey()).resetData(new DataPoint[]{});\n }\n initGraph(graph);\n graphViewEditText.setText(\"\");\n }", "private void clear() {\n\t\tremoveAll();\n\t\taddCircle();\n\t}", "public void clearSelectionSquare() {\r\n\r\n\t\tsetSize(0, 0);\r\n\r\n\t}", "protected abstract AnimationFX resetNode();", "private void pressedEdge(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint()) == true) {\r\n /* Set the first point in the tool */\r\n edgeTool.setFirstPoint(e.getPoint());\r\n }\r\n }\r\n }", "public void flushToolPane() {\n\t\tthis.toolPane.removeAll();\n\t\tthis.toolPane.repaint();\n\t}", "public final void clearEdgeAnnotations() {\n for (GraphEdge<N, E> e : getEdges()) {\n e.setAnnotation(null);\n }\n }", "private void peelOffCurves(){\n graphWindow = new GraphWindow(this);\n clearPlot(true);\n graphWindow.setVisible(true);\n }", "private void removeEdge() {\n boolean go = true;\n int lastNode;\n int proxNode;\n int atualNode;\n if ((parentMatrix[randomChild][0] != 1) &&\n (childMatrix[randomParent][0] != 1)) {\n lastNode =\n parentMatrix[randomChild][parentMatrix[randomChild][0] - 1];\n for (int i = (parentMatrix[randomChild][0] - 1); (i > 0 && go); i--)\n { // remove element from parentMatrix\n atualNode = parentMatrix[randomChild][i];\n if (atualNode != randomParent) {\n proxNode = atualNode;\n parentMatrix[randomChild][i] = lastNode;\n lastNode = proxNode;\n }\n else {\n parentMatrix[randomChild][i] = lastNode;\n go = false;\n }\n }\n if ((childMatrix[randomParent][0] != 1) &&\n (childMatrix[randomParent][0] != 1)) {\n lastNode = childMatrix[randomParent][\n childMatrix[randomParent][0] - 1];\n go = true;\n for (int i = (childMatrix[randomParent][0] - 1); (i > 0 &&\n go); i--) { // remove element from childMatrix\n atualNode = childMatrix[randomParent][i];\n if (atualNode != randomChild) {\n proxNode = atualNode;\n childMatrix[randomParent][i] = lastNode;\n lastNode = proxNode;\n }\n else {\n childMatrix[randomParent][i] = lastNode;\n go = false;\n }\n } // end of for\n }\n childMatrix[randomParent][(childMatrix[randomParent][0] - 1)] = -4;\n childMatrix[randomParent][0]--;\n parentMatrix[randomChild][(parentMatrix[randomChild][0] - 1)] = -4;\n parentMatrix[randomChild][0]--;\n }\n }", "public void clear() {\n mSize = 0;\n mRoot = null;\n }", "protected void resizePanel() {\n\t\tif (drawingAreaIsBlank) { // may have become blank after deleting the last node manually, so panel must still be shrunk\n\t\t\tsetPreferredSize(new Dimension(0,0)); // put back to small size so scrollbars disappear\n\t\t\trevalidate();\n\t\t\treturn;\n\t\t}\n\t\tgetMaxMin(); // get the extent of the tree to the left, right, bottom\n\t\tsetPreferredSize(new Dimension(maxX, maxY));\n\t\trevalidate();\n\t}" ]
[ "0.69301593", "0.6427668", "0.6425391", "0.61999893", "0.6148745", "0.61482364", "0.5990281", "0.59826404", "0.59695345", "0.5968678", "0.59583104", "0.5954682", "0.59508175", "0.58779037", "0.5818324", "0.5770001", "0.57641995", "0.57609016", "0.57432044", "0.5728808", "0.5721422", "0.5712833", "0.5687989", "0.56606233", "0.5630338", "0.56289", "0.56231445", "0.56169176", "0.56087255", "0.55761945", "0.55674964", "0.55627936", "0.5562513", "0.55260247", "0.55106026", "0.55071634", "0.55031437", "0.55020183", "0.5489598", "0.54713905", "0.54702175", "0.54457915", "0.5438769", "0.5435891", "0.5431205", "0.54183066", "0.54160255", "0.5413263", "0.5394487", "0.53941137", "0.5384194", "0.5367764", "0.534256", "0.53384906", "0.5337377", "0.53364384", "0.5327324", "0.5321135", "0.5320322", "0.5320322", "0.5316646", "0.5314684", "0.5314684", "0.5312056", "0.53030497", "0.53019017", "0.5300985", "0.52999127", "0.52887124", "0.52887124", "0.52887124", "0.5287244", "0.5284219", "0.52828884", "0.5279915", "0.52720726", "0.52716655", "0.52689606", "0.52581406", "0.5258001", "0.5256018", "0.52518755", "0.5250997", "0.5246114", "0.5239511", "0.5238369", "0.5225922", "0.5221149", "0.52176744", "0.52142876", "0.52092737", "0.5205673", "0.5200769", "0.5199072", "0.5188885", "0.5186951", "0.51738346", "0.51673937", "0.51639557", "0.5163565" ]
0.74522567
0
recursively redraws the edges then nodes are moved around, (when a node is expanded).
private void redrawEdges(Node startNode) { if (startNode.getChildrenVBox().getChildren().isEmpty()) { return; } for (javafx.scene.Node childGenericNode : startNode.getChildrenVBox().getChildren()) { Pane containerPane = (Pane) childGenericNode; Node childNode = (Node) containerPane.getChildren().get(0); Edge edge = new Edge(startNode, childNode); startNode.getContainerPane().getChildren().add(edge); startNode.getContainerPane().layout(); edges.add(edge); redrawEdges(childNode); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void repaintGraph() {\r\n this.repaint();\r\n ((GraphBuilder) getFrameParent()).getMiniMap().repaint();\r\n }", "public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}", "private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position when it is expanded (within scroll pane bounds)\n Node rootNode = nodes.get(0);\n VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();\n rootVBox.layout();\n Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal();\n rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY()));\n rootVBox.layout();\n\n for (int i = 0; i < nodes.size(); i++) {\n Pane containerPane = nodes.get(i).getContainerPane();\n //reposition node to the center of its children\n ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren();\n if (!genericNodes.isEmpty()) {\n nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2);\n }\n\n for (int j = 0; j < containerPane.getChildren().size(); j++) {\n if (containerPane.getChildren().get(j) instanceof Edge) {\n containerPane.getChildren().remove(j);\n j--;\n }\n }\n }\n redrawEdges(rootNode);\n }", "public void updateDeleteActiveEdges()\r\n\t{\r\n\t\tupdateDeleteActiveEdges(m_drawRoot);\r\n\t}", "protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}", "public void drawGraph()\n\t{\n\t\tMatrixStack transformStack = new MatrixStack();\n\t\ttransformStack.getTop().mul(getWorldTransform());\n\t\tdrawSelfAndChildren(transformStack);\n\t}", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}", "public boolean resetEdges();", "public void draw(){\n\t\t\tint x = getPreferredSize().width/2;\n\t\t\tint y = 10;\n\t\t\tif (root() != null)\n\t\t\t\tpreOrderCell(root(), x, y, root().getColor());\n\t\t\tjgraph.getGraphLayoutCache().insert(cells.values().toArray());\n\t\t\tjgraph.getGraphLayoutCache().insert(nullnodes.toArray());\n\t\t}", "public void redraw() {\n if (this.canDraw())\n this.getParent().handleChildRedraw(this, \n 0, 0, this.getWidth(), this.getHeight());\n }", "public void rebuild() {\n\t\tif (!divided) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint totalChildren = 0;\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\t// If there is a divided child then we cant do anything\n\t\t\tif (q.isDivided()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttotalChildren += q.numPoints();\n\t\t}\n\t\t\n\t\t// If the sum of all the children contained in the sub nodes\n\t\t// is greater than allowed then we cant do anything\n\t\tif (totalChildren > QUADTREE_NODE_CAPACITY) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add all the nodes from the children to this node then remvoe the nodes\n\t\tpoints = new HashMap<Point, E>();\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\tpoints.putAll(q.points);\n\t\t}\n\t\t\n\t\tnodes.clear();\n\t\tdivided = false;\n\t}", "public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }", "@Override\n protected void onDraw(Canvas canvas) {\n // Draw the components\n Arrange();\n box.draw(canvas);\n for (Node node : nodes) {\n node.draw(canvas);\n }\n line.draw(canvas);\n invalidate(); // Force a re-draw\n }", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tdrawGraph();\r\n\t}", "private void forceRedraw(){\n postInvalidate();\n }", "public void redraw()\r\n\t{\r\n\t\tif (needsCompleteRedraw)\r\n\t\t{\r\n\t\t\tcompleteRedraw();\r\n\t\t\tneedsCompleteRedraw = false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpartialRedraw();\r\n\t\t}\r\n\t}", "public void draw() {\n drawSubtree(root);\n }", "@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}", "@Override\r\n\tpublic void update(Graphics g) {\r\n\t\t// S*ystem.out.println(\"Graph.update\");\r\n\t\t// paint(g);\r\n\t\t// super.update(g);\r\n\t}", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "public void requestRedraw() {\n\n this.getParent().repaint();\n\n }", "public void paint() {\n int L = 150; // Local convenience var\n\n // Declare three lines (left, middle, and right)\n Line left = new Line(L, L, L, getHeight() - L);\n Line middle = new Line(L, getHeight() / 2, getWidth() - L, getHeight() / 2);\n Line right = new Line(getWidth() - L, L, getWidth() - L, getHeight() - L);\n\n getChildren().clear(); // Clear the pane before redisplay\n\n displayHTree(order, left, middle, right); // Call the recursive method\n }", "private void redraw() {\r\n for (int row = 0; row < maxRows; row++) {\r\n for (int column = 0; column < maxColumns; column++) {\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n }\r\n }\r\n grid[snake[HEAD].row][snake[HEAD].column].setBackground(\r\n SNAKE_HEAD_COLOR);\r\n for (int i = 1; i < length; i++) {\r\n grid[snake[i].row][snake[i].column].setBackground(SNAKE_BODY_COLOR);\r\n }\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "protected void refreshVisuals() {\r\n\t\trefreshBendpoints();\r\n\t\tif (getEdge().getValue())\r\n\t\t\tgetEdgeFigure().setForegroundColor(alive);\r\n\t\telse\r\n\t\t\tgetEdgeFigure().setForegroundColor(dead);\r\n\t\t//throw new NullPointerException();\r\n\t}", "protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }", "void flushDraw() {\n dirtyD = true;\n modelRoot.incrementNumberOfDirtyDNodes();\n }", "@Override\n protected void finalRender() {\n finishTraversalAnimation();\n placeTreeNodes();\n placeNodesAtDestination();\n render();\n\n }", "public void update() {\n\t\tif (fAssociationClassOrLinkObjectNode.isDragged()) { // && fDiagram.isDoAutoLayout() ) {\n\t\t\tfFirstCall = false;\n\t\t\tfX_old = fAssociationClassOrLinkObjectNode.getX();\n\t\t\tfY_old = fAssociationClassOrLinkObjectNode.getY();\n\t\t\tfX_con_old = fConNode.getX();\n\t\t\tfY_con_old = fConNode.getY();\n\t\t} else if (!fAssociationClassOrLinkObjectNode.isDragged()) { // && fDiagram.isDoAutoLayout() ) {\n\t\t\tdouble x = fX_old - fX_con_old;\n\t\t\tdouble y = fY_old - fY_con_old;\n\t\t\tdouble newX = x + fConNode.getX();\n\t\t\tdouble newY = y + fConNode.getY();\n\t\t\tfNENode.setPosition(newX, newY);\n\t\t\tfAssociationClassOrLinkObjectNode.setPosition(newX, newY);\n\t\t}\n\n\t\tif (fFirstCall && !fAssociationClassOrLinkObjectNode.isSelected()) {\n\t\t\tfinal int maxSpace = 30;\n\t\t\tdouble newX = 0.0;\n\t\t\tdouble newY = 0.0;\n\n\t\t\tif (fAssociationClassOrLinkObjectNode.getCenter().getX() >= fConNode.getCenter().getX()) {\n\t\t\t\tnewX = fConNode.getCenter().getX() + maxSpace + fAssociationClassOrLinkObjectNode.getWidth() / 2;\n\t\t\t\tnewY = fConNode.getCenter().getY();\n\t\t\t} else {\n\t\t\t\tnewX = fConNode.getCenter().getX() - maxSpace - fAssociationClassOrLinkObjectNode.getWidth() / 2;\n\t\t\t\tnewY = fConNode.getCenter().getY();\n\t\t\t}\n\t\t\tfNENode.setPosition(newX, newY);\n\t\t\tfAssociationClassOrLinkObjectNode.setPosition(newX, newY);\n\t\t}\n\n\t\tupdateConnectionPoint(fSourceWayPoint.getX(), fSourceWayPoint.getY(), fTargetWayPoint.getX(),\n\t\t\t\tfTargetWayPoint.getY());\n\t}", "void reDraw();", "public void endUpdate() {\n getCellLayer().getChildren().addAll(model.getAddedEdges());\n getCellLayer().getChildren().addAll(model.getAddedCells());\n\n // remove components from graph pane\n getCellLayer().getChildren().removeAll(model.getRemovedCells());\n getCellLayer().getChildren().removeAll(model.getRemovedEdges());\n\n // enable dragging of cells\n// for (Cell cell : model.getAddedCells()) {\n// mouseGestures.makeDraggable(cell);\n// }\n\n // every cell must have a parent, if it doesn't, then the graphParent is\n // the parent\n getModel().attachOrphansToGraphParent(model.getAddedCells());\n\n // remove reference to graphParent\n getModel().disconnectFromGraphParent(model.getRemovedCells());\n\n // merge added & removed cells with all cells\n getModel().merge();\n\n }", "public void draw()\n {\n inorder(root);\n }", "private void redrawGraphs(int k, int i) {\n\t\tdouble y = 0;\r\n\t\tif (nse.getRank(k) == 0) {\r\n\t\t\ty = getHeight() - GRAPH_MARGIN_SIZE;\r\n\t\t} else {\r\n\t\t\ty = (getHeight() - 2 * GRAPH_MARGIN_SIZE) * nse.getRank(k) / (double) MAX_RANK + GRAPH_MARGIN_SIZE;\r\n\t\t}\r\n\t\tredrawLines(k, y, i);\r\n\t\tredrawTitles(i, k, y);\r\n\t}", "public void invalidateAllEdges(EntityInstance root)\r\n\t{\r\n\t\tEnumeration en;\r\n\r\n\t\t/* Draw all the visible objects */\r\n\r\n\t\troot.invalidateAllEdges(); \r\n\r\n\t\tif (root.isOpen()) {\r\n\t\t\tfor (en = root.getChildren(); en.hasMoreElements(); ) {\r\n\t\t\t\tinvalidateAllEdges((EntityInstance) en.nextElement());\r\n\t\t}\t}\r\n\t}", "public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}", "public void fillEdges() {\n\t\tfor (int y = 0; y < mapSize; y++) {\n\t\t\tfor (int x = 0; x < mapSize; x++) {\n\t\t\t\tCoordinates coordinates = new Coordinates(x, y);\n\t\t\t\tint vertexSrc = coordinateToVertex(coordinates);\n\n\t\t\t\tif (deletedVertices.contains(vertexSrc)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tDirection[] directions = Direction.values();\n\n\t\t\t\tfor (Direction direction : directions) {\n\t\t\t\t\tCoordinates destCoordinates = new Coordinates(x, y);\n\n\t\t\t\t\tdestCoordinates = destCoordinates.addCoordinates(direction.coordinates());\n\n\t\t\t\t\tif (destCoordinates.areCorrect(mapSize)) {\n\t\t\t\t\t\tint vertexDest = coordinateToVertex(destCoordinates);\n\t\t\t\t\t\tif (!deletedVertices.contains(vertexDest)) {\n\t\t\t\t\t\t\taddEdge(vertexSrc, vertexDest);\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}", "protected abstract void rebuildNetwork(int numNodes);", "public void repaint() { if(_parent!=null) _parent.repaint(this); }", "@Override\r\n\tprotected void refreshVisuals() {\n\t\tif (getParent() instanceof LayerEditPart && getParent().getParent()!=null && getParent().getParent() instanceof CompositeLayerEditPart) {\r\n\t\t\tgetParent().getParent().refresh();\r\n\t\t} \r\n\t\tif (getParent() instanceof LayerEditPart) {\r\n\t\t\tgetParent().refresh();\r\n\t\t} \r\n\t\tsuper.refreshVisuals();\r\n\t}", "public void RBFixup(Node n) {\r\n\t\twhile(n.parent.color == 0) {\r\n\t\t\tif(n.parent == n.parent.parent.left) {\r\n\t\t\t\tNode y = n.parent.parent.right;\r\n\t\t\t\tif(y.color == 0) {\r\n\t\t\t\t\tn.parent.color = 1;\r\n\t\t\t\t\ty.color = 1;\r\n\t\t\t\t\tn.parent.parent.color = 0;\r\n\t\t\t\t\tn = n.parent.parent;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif(n == n.parent.right) {\r\n\t\t\t\t\t\tn = n.parent;\r\n\t\t\t\t\t\tleftRotate(n);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tn.parent.color = 1;\r\n\t\t\t\t\tn.parent.parent.color = 0;\r\n\t\t\t\t\t//mark n and n's grandparent, because in the end these two nodes will be the children\r\n\t\t\t\t\t//marking will be handled in recUpdateNode\r\n\t\t\t\t\tn.marked = true;\r\n\t\t\t\t\tn.parent.parent.marked = true;\r\n\t\t\t\t\trightRotate(n.parent.parent);\r\n\t\t\t\t\tif(hFlag == 1)\r\n\t\t\t\t\t\theight--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tNode y = n.parent.parent.left;\r\n\t\t\t\tif(y.color == 0) {\r\n\t\t\t\t\tn.parent.color = 1;\r\n\t\t\t\t\ty.color = 1;\r\n\t\t\t\t\tn.parent.parent.color = 0;\r\n\t\t\t\t\tn = n.parent.parent;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif(n == n.parent.left) {\r\n\t\t\t\t\t\tn = n.parent;\r\n\t\t\t\t\t\trightRotate(n);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tn.parent.color = 1;\r\n\t\t\t\t\tn.parent.parent.color = 0;\r\n\t\t\t\t\t//mark n and n's grandparent, because in the end these two nodes will be the children\r\n\t\t\t\t\t//marking will be handled in recUpdateNode\r\n\t\t\t\t\tn.marked = true;\r\n\t\t\t\t\tn.parent.parent.marked = true;\r\n\t\t\t\t\tleftRotate(n.parent.parent);\r\n\t\t\t\t\tif(hFlag == 1)\r\n\t\t\t\t\t\theight--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\troot.color = 1;\r\n\t}", "public void drawEdges(){\n for (Edge edge : primsAlg.getEdges()){\n //DRAW VIEW\n drawView = new DrawView(this);\n drawView.setVertex1(edge.getVertex1());\n drawView.setVertex2(edge.getVertex2());\n primsLayout.addView(drawView);\n\n addEdge(drawView);\n\n showWeight(edge);\n\n }\n }", "public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }", "public void draw() {\n drawNode(root, true);\n }", "@Override\n\tpublic void paint(Graphics g) {\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.setColor(Color.RED);\n\t\t\n\t\t // Compute Nodes\n\t\t float inc = (float) ((180*2.0)/size);\n\t\t int x[] = new int[size];\n\t\t int y[] = new int[size];\n\t\t float d= 0;\n\t\t d= 180 - inc/2;\n\t\t for (int i=0; i<size; i++){//$d=M_PI-$inc/2.0; $i<$k; $i++, $d+=$inc) {\n\t\t x[i] = (int) ((width/2) - (Math.sin(Math.toRadians(d))*(width/2)*(0.8)));\n\t\t y[i] = (int) (high - ((high/2) - (Math.cos(Math.toRadians(d)))*(high/2)*(0.8)));\n\t\t d+= inc;\n\t\t }\n\t\t for (int i=0; i<size; i++){\n\t\t g2d.fillOval(x[i], y[i], 2*rad, 2*rad);\n\t\t }\n\t\t \n\t\t \n\t\t for (int i=0; i<size; i++)\n\t\t\t for (int j=0; j<size; j++)\n\t\t\t {\n\t\t\t \t if (i != j && adj[i*size + j] == '1') {\n\t\t\t \t\t if(directed)\n\t\t\t \t\t {\n\t\t\t \t\t\t //Line2D lin = new Line2D.Float(x[i]+rad, y[i]+rad,x[j]+rad, y[j]+rad);\n\t\t\t\t \t \t//\tg2d.draw(lin);\n\t\t\t \t\t\t \n\t\t\t \t\t\t DrawArrow(g2d, x[i]+rad, y[i]+rad,x[j]+rad, y[j]+rad);\n\t\t\t \t\t\t \n\t\t\t \t\t }\n\t\t\t \t\t else\n\t\t\t \t\t {\n\t\t\t \t\t\t Line2D lin = new Line2D.Float(x[i]+rad, y[i]+rad,x[j]+rad, y[j]+rad);\n\t\t\t\t \t \t\tg2d.draw(lin);\n\t\t\t \t\t }\n\t\t\t \t\t \n\t\t\t \t }\n\t\t\t }\n\t\t \n\t\t \n\t\t/*\n\t\tg2d.fillOval(0, 0, 30, 30);\n\t\tg2d.drawOval(0, 50, 30, 30);\t\t\n\t\tg2d.fillRect(50, 0, 30, 30);\n\t\tg2d.drawRect(50, 50, 30, 30);\n\n\t\tg2d.draw(new Ellipse2D.Double(0, 100, 30, 30));*/\n\t}", "void refreshNode(ChartNode node);", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "public void removeAllEdges() {\n }", "public void update(){\r\n try {\r\n TreePrinter.print(root);\r\n } catch (Exception e) {\r\n System.out.println(\"[Alert] Could not print diagram!\");\r\n }\r\n }", "@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}", "public void draw() {\n drawNode(root);\n }", "public void updateView(SpatialGraphNode next) {\n if(true){\n return;//unsupported\n }\n\n //update position of self and the next\n //while looping over graph nodes,same node will be updated twice\n //once for self,the other time when this is next for the previous node\n //but update is an inexpensive operation. It just sets the positions\n updateView();\n if (next != null) {\n next.updateView();\n }\n\n //update each graphical bezier point with corresponding next\n for (int i = 0; i < 2; i++) {\n if (next!=null) {\n graphNodesBezierPoints[i].updateView(next.graphNodesBezierPoints[i]);\n }else{\n graphNodesBezierPoints[i].updateView(null);\n }\n }\n }", "public final void rebuild(int numNodes){\n\tclear();\n\trebuildNetwork(numNodes);\n }", "private void expandNode() {\r\n\t\t\t// Dijkstra's algorithm to handle separately\r\n\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\tCell u;\r\n\t\t\t\t// 11: while Q is not empty:\r\n\t\t\t\tif (graph.isEmpty()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 12: u := vertex in Q (graph) with smallest distance in dist[]\r\n\t\t\t\t// ;\r\n\t\t\t\t// 13: remove u from Q (graph);\r\n\t\t\t\tu = graph.remove(0);\r\n\t\t\t\t// Add vertex u in closed set\r\n\t\t\t\tclosedSet.add(u);\r\n\t\t\t\t// If target has been found ...\r\n\t\t\t\tif (u.row == targetPos.row && u.col == targetPos.col) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Counts nodes that have expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[u.row][u.col] = CLOSED;\r\n\t\t\t\t// 14: if dist[u] = infinity:\r\n\t\t\t\tif (u.dist == INFINITY) {\r\n\t\t\t\t\t// ... then there is no solution.\r\n\t\t\t\t\t// 15: break;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t// 16: end if\r\n\t\t\t\t}\r\n\t\t\t\t// Create the neighbors of u\r\n\t\t\t\tArrayList<Cell> neighbors = createSuccesors(u, false);\r\n\t\t\t\t// 18: for each neighbor v of u:\r\n\t\t\t\tfor (Cell v : neighbors) {\r\n\t\t\t\t\t// 20: alt := dist[u] + dist_between(u, v) ;\r\n\t\t\t\t\tint alt = u.dist + distBetween(u, v);\r\n\t\t\t\t\t// 21: if alt < dist[v]:\r\n\t\t\t\t\tif (alt < v.dist) {\r\n\t\t\t\t\t\t// 22: dist[v] := alt ;\r\n\t\t\t\t\t\tv.dist = alt;\r\n\t\t\t\t\t\t// 23: previous[v] := u ;\r\n\t\t\t\t\t\tv.prev = u;\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[v.row][v.col] = FRONTIER;\r\n\t\t\t\t\t\t// 24: decrease-key v in Q;\r\n\t\t\t\t\t\t// (sort list of nodes with respect to dist)\r\n\t\t\t\t\t\tCollections.sort(graph, new CellComparatorByDist());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// The handling of the other four algorithms\r\n\t\t\t} else {\r\n\t\t\t\tCell current;\r\n\t\t\t\tif (dfs.isSelected() || bfs.isSelected()) {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms DFS and BFS\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET ...\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms A* and Greedy\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET,\r\n\t\t\t\t\t// for which f(Si) ≤ f(Sj) for all other\r\n\t\t\t\t\t// open states Sj ...\r\n\t\t\t\t\t// (sort first OPEN SET list with respect to 'f')\r\n\t\t\t\t\tCollections.sort(openSet, new CellComparatorByF());\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t}\r\n\t\t\t\t// ... and add it to CLOSED SET.\r\n\t\t\t\tclosedSet.add(0, current);\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[current.row][current.col] = CLOSED;\r\n\t\t\t\t// If the selected node is the target ...\r\n\t\t\t\tif (current.row == targetPos.row && current.col == targetPos.col) {\r\n\t\t\t\t\t// ... then terminate etc\r\n\t\t\t\t\tCell last = targetPos;\r\n\t\t\t\t\tlast.prev = current.prev;\r\n\t\t\t\t\tclosedSet.add(last);\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Count nodes that have been expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Here is the 4rd step of the algorithms\r\n\t\t\t\t// 4. Create the successors of Si, based on actions\r\n\t\t\t\t// that can be implemented on Si.\r\n\t\t\t\t// Each successor has a pointer to the Si, as its predecessor.\r\n\t\t\t\t// In the case of DFS and BFS algorithms, successors should not\r\n\t\t\t\t// belong neither to the OPEN SET nor the CLOSED SET.\r\n\t\t\t\tArrayList<Cell> succesors;\r\n\t\t\t\tsuccesors = createSuccesors(current, false);\r\n\t\t\t\t// Here is the 5th step of the algorithms\r\n\t\t\t\t// 5. For each successor of Si, ...\r\n\t\t\t\tfor (Cell cell : succesors) {\r\n\t\t\t\t\t// ... if we are running DFS ...\r\n\t\t\t\t\tif (dfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the beginning of the list\r\n\t\t\t\t\t\t// OPEN SET\r\n\t\t\t\t\t\topenSet.add(0, cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are runnig BFS ...\r\n\t\t\t\t\t} else if (bfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the end of the list OPEN SET\r\n\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are running A* or Greedy algorithms (step 5\r\n\t\t\t\t\t\t// of A* algorithm) ...\r\n\t\t\t\t\t} else if (aStar.isSelected() || guloso.isSelected()) {\r\n\t\t\t\t\t\t// ... calculate the value f(Sj) ...\r\n\t\t\t\t\t\tint dxg = current.col - cell.col;\r\n\t\t\t\t\t\tint dyg = current.row - cell.row;\r\n\t\t\t\t\t\tint dxh = targetPos.col - cell.col;\r\n\t\t\t\t\t\tint dyh = targetPos.row - cell.row;\r\n\t\t\t\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t\t\t\t// with diagonal movements\r\n\t\t\t\t\t\t\t// calculate 1000 times the Euclidean distance\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + (int) ((double) 1000 * Math.sqrt(dxg * dxg + dyg * dyg));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = (int) ((double) 1000 * Math.sqrt(dxh * dxh + dyh * dyh));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// without diagonal movements\r\n\t\t\t\t\t\t\t// calculate Manhattan distances\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + Math.abs(dxg) + Math.abs(dyg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = Math.abs(dxh) + Math.abs(dyh);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcell.f = cell.g + cell.h;\r\n\t\t\t\t\t\t// ... If Sj is neither in the OPEN SET nor in the\r\n\t\t\t\t\t\t// CLOSED SET states ...\r\n\t\t\t\t\t\tint openIndex = isInList(openSet, cell);\r\n\t\t\t\t\t\tint closedIndex = isInList(closedSet, cell);\r\n\t\t\t\t\t\tif (openIndex == -1 && closedIndex == -1) {\r\n\t\t\t\t\t\t\t// ... then add Sj in the OPEN SET ...\r\n\t\t\t\t\t\t\t// ... evaluated as f(Sj)\r\n\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t// Else ...\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// ... if already belongs to the OPEN SET, then ...\r\n\t\t\t\t\t\t\tif (openIndex > -1) {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (openSet.get(openIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\topenSet.remove(openIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// ... if already belongs to the CLOSED SET,\r\n\t\t\t\t\t\t\t\t// then ...\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (closedSet.get(closedIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\tclosedSet.remove(closedIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void draw() {\n if (isEmpty()) return;\n draw1(root, 0, 1, 0, 1);\n }", "public void treeEdge(Edge e) {}", "public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}", "public void refreshAll() {\n\t\tdrawingPanel.repaint();\n\t}", "public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }", "public void drawEdges(IEdgeDrawerGraph graph);", "public void editEdge(){\n\t}", "private void refreshDisplay() {\n \t\tCursor cursor;\n \t\tif (node_id >= 0)\n \t\t\tcursor = appInst.getDB().getNodeChildren(node_id);\n \t\telse\n \t\t\tcursor = appInst.getDB().getFileCursor();\n \n \t\tstartManagingCursor(cursor);\n \t\tthis.outlineAdapter = new OutlineCursorAdapter(this, cursor, appInst.getDB());\n \t\tthis.setListAdapter(outlineAdapter);\n \n \t\tgetListView().setSelection(this.lastSelection);\n \t}", "private void updateOriginalEdgesInMirror() {\n for (Edge edge : originalGraph.edges()) {\n if (!directEdgeMap.containsKey(edge)) {\n constructMirrorEdge(edge);\n }\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n updateMirrorEdgeBends(edge, mirrorEdge);\n updateMirrorEdgeSegments(mirrorEdge);\n originalAttributesToMirror(edge);\n }\n }", "public void resetNodes() {\n\tmaxX = -100000;\n\tmaxY = -100000;\n\tminX = 100000;\n\tminY = 100000;\n\taverageX = 0;\n\taverageY = 0;\n }", "public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}", "public void draw() {\n if (first.p == null) return;\n Node n = first;\n Node n2 = first.next;\n while (!n.next.equals(first)) {\n n.p.drawTo(n2.p);\n n = n.next;\n n2 = n2.next;\n }\n n.p.drawTo(n2.p);\n }", "private void drawNode(Graphics g, Node n)\n {\n\n\tNode p = n.parent;\n\n\tif (p!=null) {\n\t if (n.paths_passing>0) {\n\t\t//setRenderColor(g,hilitcolor);\n\t\tsetRenderColor(g,n.path_color);\n\t\trenderLine(g,n.x-1,n.y,p.x-1,p.y);\n\t }\n\n// \t setRenderColor(g,(n.paths_passing>0)?hilitcolor:linecolor);\n \t setRenderColor(g,(n.paths_passing>0)?n.path_color:linecolor);\n\t renderLine(g,n.x,n.y,p.x,p.y);\n//\t setRenderColor(g,(p.paths_passing>0)?hilitcolor:normalcolor);\n\t setRenderColor(g,(p.paths_passing>0)?p.path_color:normalcolor);\n \t renderNode(g,p);\n\t}\n// \tsetRenderColor(g,(n.paths_passing>0)?hilitcolor:normalcolor);\n\tsetRenderColor(g,(n.paths_passing>0)?n.path_color:normalcolor);\n\trenderNode(g,n);\n }", "public void paint(final Graphics graphics,\n\t\tfinal LinearTransformation xScaleEq,\n\t\tfinal LinearTransformation yScaleEq,final Rectangle dest,\n\t\tfinal boolean isLeft,final TreeSelectionI treeSelection,\n\t\tfinal int xIndent,final int yIndent,final int size,\n\t\tfinal int startIndex,final int endIndex,final boolean showSelections) {\n\t\n\t\tif ((getRootNode() == null) || (getRootNode().isLeaf())) {\n\t\t\tLogBuffer.println(\"Root node is null or leaf in paint() \"\n\t\t\t\t\t+ \"in InvertedTreeDrawer!\");\n\t\t} else {\n\t\t\tthis.isLeft = isLeft;\n\t\t\t// recursively drawtree...\n\t\t\tfinal NodeDrawer nd =\n\t\t\t\tnew NodeDrawer(graphics,xScaleEq,yScaleEq,dest,null);\n\t\t\tnd.draw(getRootNode(),treeSelection,xIndent,yIndent,size,\n\t\t\t\tstartIndex,endIndex,showSelections);\n\t\t}\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "protected void resetGraph() {\n for (List<Edge> path : graph) {\r\n for (Edge e : path) {\r\n e.flow = 0;\r\n }\r\n }\r\n }", "public void updateGraphEdges(ArrayList<Edge> edges) {\n graph.updateEdges(edges);\n }", "public void draw() {\n draw(root, false);\n }", "private void resortAndReselectTreeGrid() {\n resortAndReselectTreeGrid(null);\n }", "private void updateOriginalNodesInMirror() {\n for (Node node : originalGraph.nodes()) {\n if (!mirrorGraph.has(node)) {\n mirrorGraph.add(node);\n }\n originalAttributesToMirror(node);\n }\n }", "@objid (\"1b87bc43-5e33-11e2-b81d-002564c97630\")\n private void shiftAll(final BackgroundModel directedGraph) {\n // Center the center node in the view.\n // Get the size of the control showing the viewer (this has to be done\n // in the display thread to avoid InvalidThreadAccessException).\n final Point controlSize = getViewAreaSize();\n \n if (controlSize.x <= 0 || controlSize.y <= 0) {\n // FIXME We were called too early, SWT not yet ready\n return;\n }\n \n final GraphNode centerNode = directedGraph.getCenter();\n \n // Compute the vector to align the nodes.\n int xDelta;\n int yDelta;\n xDelta = (controlSize.x / 2) - (centerNode.x + (centerNode.width / 2));\n yDelta = (controlSize.y / 2) - (centerNode.y + (centerNode.height / 2));\n \n // Move all nodes\n for (Object nodeObj : directedGraph.nodes) {\n Node node = (Node) nodeObj;\n node.x += xDelta;\n node.y += yDelta;\n }\n }", "public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}", "private void updateGraph() {\n if (centerBox.getChildren().size() > 0) {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().set(0, this.drawGraph());\n } else {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().add(this.drawGraph());\n }\n }", "public void refresh()\n\t{\n\t\tNode master = new Node(\"Tyler\");\n\t\t//master.add(new Node(\"Test\"));\n\t\tmaster.addParent(new Node(\"Clinton\"));\n\t\tmaster.addParent(new Node(\"Terry\"));\n\t\t\n\t\tmaster.add(\"Justin\", \"Terry\"); \n\t\tmaster.add(\"Justin\", \"Clinton\"); \n\t\t//this adds directly under Terry\n\t\t//maybe do this differently...\n\t\t\n\t\t\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"Diana\"));\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"George\"));\n\t\t\n\t\tmaster.add(new Node(\"Tyler 2.0\"));\n\t\tmaster.add(new Node(\"Tyler 3.0\"));\n\t\tmaster.add(new Node(\"Tyler Jr\"));\n\t\t\n\n\t\tmaster.add(\"Tyler Jr Jr\", \"Tyler 2.0\");\n\t\t\n\t\tmaster.add(\"Tyler 3.0\", \"Tyler Jr 2.0\");\n\t\t\n\t\tmaster.findNode(\"Clinton\").addParent(new Node(\"Eric\"));\n\t\tmaster.findNode(\"Eric\").addParent(new Node(\"Eric's Dad\"));\n\t\t\n\t\t\n\t\tmaster.findNode(\"Tyler Jr Jr\", 6).add(new Node(\"Mini Tyler\"));\n\t\t//master.findNode(\"Clinton\", 2).add(new Node(\"Justin\"));\n\t\t\n\t\t\n\t\tmaster.getParent().get(0).findNode(\"Justin\", 3).add(new Node(\"Mini Justin\"));\n\t\t\n\t\tmaster.add(new Node(\"Laptop\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Keyboard\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Mouse\"));\n\t\t\n\t\tmaster.add(\"Touchpad\", \"Laptop\");\n\t\t//master.add(\"Justin\", \"Eric\");\n\t\t\n\t\tmaster.add(\"Hunger\", \"Tyler\");\n\t\t\n\t\tselectedNode = master;\n\t\tselect(selectedNode);\n\t}", "@Override\n protected void refreshChildren() {\n }", "private void renderDownPaths(Node n)\n {\n\tif (n.siblings.size()==0) {\n\t renderPath(n);\n\t return;\n\t}\n\n\tVectorIterator vi = new VectorIterator(n.siblings);\n\twhile (vi.hasNext()) {\n\t Node s = (Node)(vi.next());\n\t renderDownPaths(s);\n\t}\n }", "public void update(HashMap um) {\n if (false) {\n if (TRACE_INTRA) out.println(\"Updating edges for node \"+this.toString_long());\n Map m = this.predecessors;\n if (m != null) {\n this.predecessors = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.predecessors);\n }\n m = this.addedEdges;\n if (m != null) {\n this.addedEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.addedEdges);\n }\n m = this.accessPathEdges;\n if (m != null) {\n this.accessPathEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.accessPathEdges);\n }\n if (this.passedParameters != null) {\n Set pp = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n pp.addAll(this.passedParameters); \n this.passedParameters = pp;\n }\n addGlobalEdges(this);\n }\n }", "public void update(HashMap um) {\n if (false) {\n if (TRACE_INTRA) out.println(\"Updating edges for node \"+this.toString_long());\n Map m = this.predecessors;\n if (m != null) {\n this.predecessors = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.predecessors);\n }\n m = this.addedEdges;\n if (m != null) {\n this.addedEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.addedEdges);\n }\n m = this.accessPathEdges;\n if (m != null) {\n this.accessPathEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.accessPathEdges);\n }\n if (this.passedParameters != null) {\n Set pp = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n pp.addAll(this.passedParameters); \n this.passedParameters = pp;\n }\n addGlobalEdges(this);\n }\n }", "void updateAllParentsBelow();", "public void dfs() {\n\t\tfor (Vertice v : vertices) {\n\t\t\tv.setVisited(false);\n\t\t}\n\t\tfor (Vertice v : vertices) {\n\t\t\tif (!v.getVisited()) {\n\t\t\t\tVisitar(v, -1);\n\t\t\t}\n\t\t}\n\t}", "public void setNewGraph() {\n\tresetHints();\r\n Random random = new Random();\r\n if (graphMode == 1) {\r\n if (selectedSize == 1) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.smallGraph) + 1, -1);\r\n }\r\n if (selectedSize == 2) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.middleGraph - myInformation.smallGraph) + myInformation.smallGraph + 1, -1);\r\n }\r\n if (selectedSize == 3) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.bigGraph - myInformation.middleGraph) + myInformation.middleGraph + 1, -1);\r\n }\r\n }\r\n if (graphMode == 2) {\r\n currentGraph = chromaticManager.calculate(myGraph);\r\n }\r\n if (graphMode == 3) {\r\n try {\r\n stackPane.getChildren().removeAll(textFieldHBox, backPane);\r\n myVertices = Integer.parseInt(textFieldVertices.getText());\r\n myEdges = Integer.parseInt(textFieldEdges.getText());\r\n currentGraph = chromaticManager.calculate(myVertices, myEdges);\r\n setDisplay(currentGraph);\r\n } catch (NumberFormatException e) {\r\n\r\n }\r\n }\r\n threadPoolExecutor.execute(() -> {\r\n NewForce newForce = new NewForce();\r\n currentGraph.setCNumer(newForce.doNewForce(currentGraph,currentGraph.getUpperBound(),currentGraph.getLowerBound()));\r\n });\r\n }", "public void update(HashMap um) {\n if (TRACE_INTRA) out.println(\"Updating edges for node \"+this.toString_long());\n Map m = this.predecessors;\n if (m != null) {\n this.predecessors = new LinkedHashMap();\n updateMap(um, m.entrySet().iterator(), this.predecessors);\n }\n m = this.addedEdges;\n if (m != null) {\n this.addedEdges = new LinkedHashMap();\n updateMap(um, m.entrySet().iterator(), this.addedEdges);\n }\n m = this.accessPathEdges;\n if (m != null) {\n this.accessPathEdges = new LinkedHashMap();\n updateMap(um, m.entrySet().iterator(), this.accessPathEdges);\n }\n if (this.passedParameters != null) {\n Set pp = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n pp.addAll(this.passedParameters);\n this.passedParameters = pp;\n }\n addGlobalEdges(this);\n }", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "public void draw() {\n draw(root, true);\n }", "public void refresh() {\n\t\tthis.repaint();\n\t}", "public void repaint() {\n\n\t}", "public void updateNodeAndParents( TreeNode node )\n {\n viewer.update( node, null );\n TreeNode parent = node.getParent();\n while ( parent != null )\n {\n viewer.update( parent, null );\n parent = parent.getParent();\n }\n }", "public void updateLinesAndGrid() {\n\t\tutilities.redrawAllLines(0, false);\n\t\ttableDisplay.setGrid(utilities.getOrderedWayPoints());\n\t}", "@Override\n\tpublic void repaint() {\n\t\tsuper.repaint();\n\t}", "public void redraw(Mask mask);", "public void partialRedraw()\r\n\t{\r\n\t\tg.clearRect(0,0,NumerateGame.WINDOW_X,NumerateGame.WINDOW_Y);\r\n\t}", "private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }", "@FXML private void addEdges()\t\t\n\t{ \t\n\t\tif (getSelection().size() >= 2)\t\t\n\t\t{\n\t\t\tList<Edge> edges = getDrawModel().connectSelectedNodes();\n\t\t\tfor (Edge e: edges)\n\t\t\t\tadd(0, e, getActiveLayerName());\n\t\t}\n\t}", "public void updateNodeBoundsChanges(Object src) {\n\t\t\n\t\tif (src == group) {\n\t\t\t\n\t\t\tint numToAdd = nodeAddList.size();\n\t\t\tif (numToAdd > 0) {\n\t\t\t\tfor (int i = 0; i < numToAdd; i++) {\n\t\t\t\t\tNode node = nodeAddList.get(i);\n\t\t\t\t\tgroup.addChild(node);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint numToRemove = nodeRemoveList.size();\n\t\t\tif (numToRemove > 0) {\n\t\t\t\tfor (int i = 0; i < numToRemove; i++) {\n\t\t\t\t\tNode node = nodeRemoveList.get(i);\n\t\t\t\t\tgroup.removeChild(node);\n\t\t\t\t}\n\t\t\t\tnodeRemoveList.clear();\n\t\t\t}\n\t\t\t\n\t\t\tnodeRemoveList.addAll(nodeAddList);\n\t\t\tnodeAddList.clear();\n\t\t\t\n\t\t\tconfig = false;\n\t\t}\n\t}", "private void attachEdges(Diagram d) {\n for (EdgeData edgeData : figEdges) {\n final FigEdge edge = edgeData.getFigEdge();\n\n Object modelElement = modelElementsByFigEdge.get(edge);\n if (modelElement != null) {\n if (edge.getOwner() == null) {\n edge.setOwner(modelElement);\n }\n }\n }\n\n for (EdgeData edgeData : figEdges) {\n final FigEdge edge = edgeData.getFigEdge();\n\n Fig sourcePortFig = findFig(edgeData.getSourcePortFigId());\n Fig destPortFig = findFig(edgeData.getDestPortFigId());\n final FigNode sourceFigNode = getFigNode(edgeData\n .getSourceFigNodeId());\n final FigNode destFigNode = getFigNode(edgeData.getDestFigNodeId());\n\n if (sourceFigNode instanceof FigEdgePort) {\n sourcePortFig = sourceFigNode;\n }\n\n if (destFigNode instanceof FigEdgePort) {\n destPortFig = destFigNode;\n }\n\n if (sourcePortFig == null && sourceFigNode != null) {\n sourcePortFig = getPortFig(sourceFigNode);\n }\n\n if (destPortFig == null && destFigNode != null) {\n destPortFig = getPortFig(destFigNode);\n }\n\n if (sourcePortFig == null || destPortFig == null\n || sourceFigNode == null || destFigNode == null) {\n LOG.log(Level.SEVERE,\n \"Can't find nodes for FigEdge: \" + edge.getId() + \":\"\n + edge.toString());\n edge.removeFromDiagram();\n } else {\n edge.setSourcePortFig(sourcePortFig);\n edge.setDestPortFig(destPortFig);\n edge.setSourceFigNode(sourceFigNode);\n edge.setDestFigNode(destFigNode);\n }\n }\n\n // Once all edges are connected do a compute route on each to make\n // sure that annotations and the edge port is positioned correctly\n // Only do this after all edges are connected as compute route\n // requires all edges to be connected to nodes.\n // TODO: It would be nice not to have to do this and restore annotation\n // positions instead.\n for (Object edge : d.getLayer().getContentsEdgesOnly()) {\n FigEdge figEdge = (FigEdge) edge;\n figEdge.computeRouteImpl();\n }\n }", "public void redraw() {\n\t\timgDisplay = null;\n\t\trepaint();\n\t}", "private void expandTree() {\n tree.expand();\n }" ]
[ "0.6936041", "0.6884386", "0.67483234", "0.64687073", "0.63922197", "0.6326198", "0.6321917", "0.63182974", "0.6255591", "0.6227034", "0.6219652", "0.62141824", "0.619525", "0.61938804", "0.6166844", "0.6145602", "0.6144809", "0.6123215", "0.6116482", "0.60979366", "0.6070657", "0.60699654", "0.60496473", "0.6030597", "0.6011392", "0.59260756", "0.59172887", "0.59051955", "0.59020627", "0.5875467", "0.5872772", "0.5866964", "0.58444566", "0.5832731", "0.5828635", "0.5821298", "0.5820279", "0.58082277", "0.5757782", "0.57558584", "0.57539", "0.5751764", "0.57466364", "0.5729719", "0.57269627", "0.57023007", "0.5693519", "0.5683729", "0.56830466", "0.5656758", "0.56561524", "0.5653199", "0.5641058", "0.56352717", "0.56315243", "0.5624", "0.5623576", "0.5617274", "0.56148356", "0.5603513", "0.55969507", "0.5593221", "0.5590645", "0.5589463", "0.55684847", "0.55569166", "0.55521804", "0.55499923", "0.554757", "0.5546202", "0.55388665", "0.5535891", "0.5533544", "0.55324996", "0.553147", "0.5526539", "0.5525392", "0.55198574", "0.55124164", "0.55124164", "0.55044323", "0.55007", "0.5487766", "0.54757917", "0.5464387", "0.5464387", "0.5464008", "0.5456471", "0.54561603", "0.54519373", "0.5441667", "0.5428038", "0.5427228", "0.54255533", "0.5422754", "0.541883", "0.54184026", "0.54159546", "0.54156137", "0.5412638" ]
0.70769346
0
recursively removes the children in the subtree of given node. Used when the user contracts a node
private void removeNodeAndChildren(Node node) { Pane container = node.getContainerPane(); if (container.getChildren().size() < 2) { return; } Iterator<javafx.scene.Node> iterator = container.getChildren().iterator(); while (iterator.hasNext()) { javafx.scene.Node nextNode = iterator.next(); if (nextNode instanceof Edge) { edges.remove(nextNode); iterator.remove(); } } for (javafx.scene.Node genericNode : node.getChildrenVBox().getChildren()) { Pane containerPane = (Pane) genericNode; Node childNode = (Node) containerPane.getChildren().get(0); nodes.remove(childNode); removeNodeAndChildren(childNode); } node.getChildrenVBox().getChildren().clear(); clearEdgeLinks(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void RemoveLeaves(Node node){\r\n \r\n //Pre-Order removal of leaves is done here\r\n \r\n //First iterate of children from last so that we can use .remove functionality of ArrayList else we will face \r\n //NullPointerException if traversed from front \r\n for(int i=node.children.size()-1; i>=0; i--){\r\n Node child = node.children.get(i);\r\n if(child.children.size() == 0){\r\n node.children.remove(child);\r\n }\r\n }\r\n \r\n //Now traverse for child of node\r\n for(Node child : node.children){\r\n RemoveLeaves(child);\r\n }\r\n }", "abstract AbstractTree<T> removeSubtree(Node<T> subtreeRoot);", "public BinaryNode removeNode(BinaryNode node){\n if(isLeaf(node)){//base case\n BinaryNode parent = (BinaryNode) node.getParent();\n if(parent == null){\n root = null;\n }\n else{\n parent.removeChild(node);\n }\n size--;\n return parent;\n }\n BinaryNode lower = descendant(node);\n promote(lower, node);\n return removeNode(lower);\n }", "public abstract void removeChild(Node node);", "public void removeChild(WSLNode node) {children.removeElement(node);}", "private Node removeChildNodes(Node node) throws TransformerException {\r\n\r\n NodeList children = node.getChildNodes();\r\n int index = 0;\r\n int length = children.getLength();\r\n\r\n for (index = 0; index < length; index++) {\r\n Node n = children.item(index);\r\n String nString = nodeToString(n);\r\n\r\n // for(Node n : node.getChildNodes()){\r\n if (n != null) {\r\n if (n.hasChildNodes()) {// edit to remove children of children\r\n removeChildNodes(n);\r\n node.removeChild(n);\r\n } else\r\n node.removeChild(n);\r\n }\r\n }\r\n String nodeString = nodeToString(node);\r\n return node;\r\n }", "public void removeChildren(QueryNode childNode);", "void arbitraryRemove(Nodefh node){\n\t\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t\tnode.Parent = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t\tnode.Parent = null;\n\n\t\t}\n\t\tif(node.Child!=null){\n\t\t\tNodefh temp = node.Child;\n\t\t\tif(node.Child.Right!=null){\n\t\t\t\ttemp = node.Child.Right;\n\t\t\t}\n\t\t\tfhInsert(node.Child);\n\t\t\twhile(temp!=node.Child.Right){\n\t\t\t\tfhInsert(temp);\n\t\t\t\ttemp = temp.Right;\n\t\t\t}\n\n\t\t}\n\n\t}", "public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }", "@DISPID(2)\n\t// = 0x2. The runtime will prefer the VTID if present\n\t@VTID(8)\n\tvoid removeChild(@MarshalAs(NativeType.VARIANT) java.lang.Object node);", "abstract void removeNodeReferences(Node<T> node);", "private static void delTree(BoardTree root) {\n if (root.children == null) return;\n for (BoardTree child : root.children) {\n delTree(child);\n }\n root.children.clear();\n root = null;\n }", "void deleteTree(TreeNode node) \n {\n root = null; \n }", "public Boolean DeleteAllChild(Node node) {\n\t\tnode.setLeftChild(null);//\n\n\t\tif (node.getParent() == null) {\n\t\t\tSystem.out.println(\"error in delete root node!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (node.getParent().getLeftChild() == node) {\n\t\t\tnode.getParent().setLeftChild(node.getRightChild());\n\t\t} else {\n\t\t\tNode tNode = node.getParent().getLeftChild();\n\t\t\tfor (;;) {\n\t\t\t\tif (tNode.getRightChild() == node)\n\t\t\t\t\tbreak;\n\t\t\t\ttNode = tNode.getRightChild();\n\t\t\t}\n\t\t\ttNode.setRightChild(node.getRightChild());\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void removeChildren()\n {\n children.clear();\n }", "public void deleteNode(INode node) {\r\n\t\t// first delete the node from the children of its parent\r\n\t\tINode parent = node.getParent();\r\n\t\tif (parent != null) {\r\n\t\t\tparent.getChildren().remove(node);\r\n\t\t}\r\n\t\t// then remove the node from the list\r\n\t\tnodeList.remove(node);\r\n\t}", "public static void removeChildren(Node node, String name) {\r\n if (node == null)\r\n return;\r\n\r\n for (Node item : getChildrenByTagName(node, name)) {\r\n node.removeChild(item);\r\n }\r\n }", "private void pruneTree(QuadNode node){\n int i;\n while(node.parent != null && node.quads[0] == null && node.quads[1] == null && node.quads[2] == null && node.quads[3] == null){\n i=0;\n if(node.x != node.parent.x){\n i++;\n }\n if(node.z != node.parent.z){\n i+=2;\n }\n node = node.parent;\n node.quads[i] = null;\n }\n }", "void deleteTreeRef(TreeNode nodeRef) \n { \n \tif(nodeRef == null) return;\n \t\n \t\n \tdeleteTreeRef(nodeRef.left);\n\n \tdeleteTreeRef(nodeRef.right);\n \t\n \t\n \t System.out.println(\"Deleting node:\" + nodeRef.val);\n \t deleteTree(nodeRef); \n \n nodeRef=null; \n }", "public void deleteNode(TreeNode node) {\n if (node != null) {\n /* One child situation */\n if (node.getLeft() == null) {\n transplantNode(node, node.getRight());\n } else if (node.getRight() == null) {\n transplantNode(node, node.getLeft());\n } else {\n // Node has two children, so replacement is not that simple.\n TreeNode replacement = getMinimumNodeInSubTree(node.getRight());\n if (replacement.getParent() != node) {\n transplantNode(replacement, replacement.getRight());\n replacement.setRight(node.getRight());\n replacement.getRight().setParent(replacement);\n }\n transplantNode(node, replacement);\n replacement.setLeft(node.getLeft());\n replacement.getLeft().setParent(replacement);\n }\n }\n }", "private BSTNode<E> replacementSubtreeFromChildren(BSTNode<E> left,\r\n\t\t\tBSTNode<E> right) {\r\n\t\t\r\n\t\tif (left == null && right == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tif (left != null && right == null)\r\n\t\t\treturn left;\r\n\t\tif (left == null && right != null)\r\n\t\t\treturn right;\r\n\t\t\r\n\t\tBSTNode<E> root = null;\r\n\t\t\r\n\t\troot = right;\r\n\t\twhile (root.left != null) {\r\n\t\t\troot = root.left;\r\n\t\t}\r\n\t\tright = right.remove(root.value);\r\n\t\t\r\n\t\t\r\n\t\troot.left = left;\r\n\t\troot.right = right;\r\n\t\t\r\n\t\t// not a simple case => return modified node\r\n\t\treturn root;\r\n\t}", "public void removeNode(Node<E> node) {\n super.removeNode(node);\n addNodeToCache(node);\n }", "private void deleteNode(TSTNode<E> nodeToDelete) {\n if(nodeToDelete == null) return;\n nodeToDelete.data = null;\n \n while(nodeToDelete != null) {\n nodeToDelete = deleteNodeRecursion(nodeToDelete);\n }\n }", "void deleteTreeRef(Node nodeRef) {\n\t\tSystem.out.println(\"\\nSize of given Tree before delete : \" + sizeOfTreeWithRecursion(nodeRef));\n\t\tdeleteTree(nodeRef);\n\t\tnodeRef = null;\n\n\t\tSystem.out.println(\"\\nSize of given Tree after delete : \" + sizeOfTreeWithRecursion(nodeRef));\n\t}", "private BSTNode<T> recRemove(BSTNode<T> node, T item) {\n\t\tif (node != null && item != null) {\n\t\t\tif (item.compareTo(node.getData()) > 0) {\n\t\t\t\tnode.setRight(recRemove(node.getRight(), item));\n\t\t\t} else if (item.compareTo(node.getData()) < 0) {\n\t\t\t\tnode.setLeft(recRemove(node.getLeft(), item));\n\t\t\t} else {\n\t\t\t\tnode = removeData(node);\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "private void removeNode(AVLNode<T, U> node){\n\t\tAVLNode<T, U> newNode = null;\n\t\t\n\t\tif(node.getLeft() == null && node.getRight() == null){\n\t\t\t//If the node is a leaf, I delete it and I recompute \n\t\t\t//the heights and check the balance starting from its parent\n\t\t\tnewNode = node.getParent();\n\t\t\tthis.transplant(node, null);\n\t\t}else if(node.getLeft() == null){\n\t\t\tnewNode = node.getRight();\n\t\t\tthis.transplant(node, newNode);\n\t\t}else if(node.getRight() == null){\n\t\t\tnewNode = node.getLeft();\n\t\t\tthis.transplant(node, newNode);\n\t\t}else{\n\t\t\tnewNode = getMinimum(node.getRight());\n\t\t\tif(newNode.getParent() != node){\n\t\t\t\tthis.transplant(newNode, newNode.getRight());\n\t\t\t\tnewNode.setRight(node.getRight());\n\t\t\t\tnewNode.getRight().setParent(newNode);\n\t\t\t}\n\t\t\tthis.transplant(node, newNode);\n\t\t\tnewNode.setLeft(node.getLeft());\n\t\t\tnewNode.getLeft().setParent(newNode);\n\t\t}\n\t\tcomputeHeights(newNode);\n\t\tbalanceTree(newNode);\n\t}", "public void removeNode(T node) {\n\t\tnodes.remove(node);\n\t\tarcs.remove(node);\n\t\tfor(T k: arcs.keySet()) {\n\t\t\tarcs.get(k).remove(node);\n\t\t}\n\t}", "public void clearChildren() {\r\n this.children = null;\r\n }", "private void fixTreeRecursive(WordTree<StructureTag> tree) {\n\t\tfixTree(tree);\n\t\tif(!tree.isLeaf()) {\n\t\t\tfor(WordTree<StructureTag> child : tree.getChildren()) {\n\t\t\t\tfixTreeRecursive(child);\n\t\t\t}\n\t\t}\n\t}", "public static void delete(Node node){\n // There should be 7 cases here\n if (node == null) return;\n\n if (node.left == null && node.right == null) { // sub-tree is empty case\n if (node.key < node.parent.key) { // node น้อยกว่าข้างบน\n node.parent.left = null;\n }\n else {\n node.parent.right = null;\n }\n\n return;\n }\n\n else if (node.left != null && node.right == null) { // right sub-tree is empty case\n if (node.left.key < node.parent.key) { // sub-tree อยู่ทางซ้ายของ parent\n node.left.parent = node.parent;\n node.parent.left = node.left;\n }\n else {\n node.left.parent = node.parent;\n node.parent.right = node.left;\n }\n return;\n }\n else if (node.right != null && node.left == null) { // left sub-tree is empty case\n if (node.right.key < node.parent.key) { // sub-tree อยู่ทางซ้ายของ parent\n node.right.parent = node.parent;\n node.parent.left = node.right;\n }\n else {\n node.right.parent = node.parent;\n node.parent.right = node.right;\n }\n return;\n }\n else { // full node case\n // หา min ของ right-subtree เอา key มาเขียนทับ key ของ node เลย\n Node n = findMin(node.right);\n node.key = n.key;\n delete(n);\n }\n }", "public void clearChildren() throws RemoteException;", "public void clear() {\n\t\t\tfor (AbstractTreeNode node : children) {\n\t\t\t\tnode.setParent(null);\n\t\t\t}\n\t\t\t\n\t\t\t// clear children\n\t\t\tchildren.clear();\n\t\t}", "private T removeNode(Node<T> curr, Node<T> parent) { //Time Complexity: O(n)\n T returnData;\n //checks if there are two children\n if (curr.left != null && curr.right != null) {\n Node<T> leftparent = curr;\n Node<T> RML = curr.left;\n //finds right most left node\n while (RML.right != null) {\n leftparent = RML;\n RML = RML.right;\n }\n returnData = curr.data;\n curr.data = RML.data;\n removeNode(RML, leftparent);\n return returnData;\n } else {\n //deals with 0 and 1 child\n Node<T> here = curr.left;\n if (here == null) {\n here = curr.right;\n }\n if (parent == null) {\n root = here;\n } else {\n if (curr == parent.left) {\n parent.left = here;\n } else {\n parent.right = here;\n }\n }\n returnData = curr.data;\n }\n return returnData;\n }", "public com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse removeContextChildren(\n com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getRemoveContextChildrenMethod(), getCallOptions(), request);\n }", "void forceRemoveNodesAndExit(Collection<Node> nodesToRemove) throws Exception;", "public Node removeFromChain();", "public Boolean DeleteAndMerge(Node node) {\n\t\tif (node.getLeftChild() == null) {\n\t\t\tDeleteAllChild(node);\n\t\t\treturn true;\n\t\t}\n\n\t\tif (node.getParent().getLeftChild() == node) {\n\t\t\t// Node tempNode=node.getLeftChild();\n\t\t\tint level = node.getLevel();\n\t\t\tNode pa = node.getParent();\n\t\t\tPreorderLevel(node.getLeftChild());\n\t\t\tnode.getParent().setLeftChild(node.getLeftChild());\n\t\t\tnode.getLeftChild().setParent(node.getParent());\n\t\t\tnode.getLeftChild().setLevel(node.getLevel());\n\t\t\tNode tempNode = node.getRightChild();\n\t\t\tnode = node.getLeftChild();\n\n\t\t\tfor (;;) {\n\t\t\t\tif (node.getRightChild() == null) {\n\t\t\t\t\tnode.setRightChild(tempNode);\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tnode = node.getRightChild();\n\n\t\t\t\t\tnode.setLevel(level);\n\t\t\t\t\tnode.setParent(pa);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tint level = node.getLevel();\n\t\t\tNode tNode = node.getParent().getLeftChild();\n\n\t\t\tfor (;;) {\n\t\t\t\tif (tNode.getRightChild() == node)\n\t\t\t\t\tbreak;\n\t\t\t\ttNode = tNode.getRightChild();\n\t\t\t}\n\t\t\ttNode.setRightChild(node.getLeftChild());\n\n\t\t\tNode parent = node.getParent();\n\t\t\tNode rNode = node.getRightChild();\n\t\t\tnode = node.getLeftChild();\n\t\t\tPreorderLevel(node);\n\t\t\tfor (;;) {\n\t\t\t\tif (node.getRightChild() == null)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tnode.setParent(parent);// 改变子结点的父结点\n\t\t\t\t\t// 修改结点层级\n\t\t\t\t\tif (node.getParent() == null) {\n\t\t\t\t\t\tnode.setLevel(0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnode.setLevel(level);\n\t\t\t\t\t}\n\t\t\t\t\tnode = node.getRightChild();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tnode.setParent(parent);\n\t\t\tnode.setLevel(level);\n\t\t\tnode.setRightChild(rNode);\n\t\t\t// if (rNode.getParent() == null) {\n\t\t\t// rNode.setLevel(0);\n\t\t\t// } else {\n\t\t\t// rNode.setLevel(rNode.getParent().getLevel() + 1);\n\t\t\t// }\n\t\t}\n\n\t\treturn true;\n\n\t}", "public void removeElement(Node n) // I remove selected node and replace it with deepest rightmost node, to maintain\n {\n\n preOrder(this.root);\n\n //changing deepest nodes parent dependecies\n this.deepestRight.getParent().decrementChildFactor();\n\n if(this.deepestRight.getParent().getRightChild() == this.deepestRight)\n this.deepestRight.getParent().setRightChild(null);\n else if(this.deepestRight.getParent().getLeftChild() == this.deepestRight)\n this.deepestRight.getParent().setLeftChild(null);\n\n //changing deepest nodes dependecies\n this.deepestRight.setParent(n.getParent());\n this.deepestRight.setLeftChild(n.getLeftChild());\n this.deepestRight.setRightChild(n.getRightChild());\n this.deepestRight.setChildFactor(n.getChildFactor());\n\n\n //changing n nodes parent dependencies\n if( n != this.root )\n {\n if (this.deepestRight.getParent().getLeftChild() == n)\n this.deepestRight.getParent().setLeftChild(this.deepestRight);\n else if (this.deepestRight.getParent().getRightChild() == n)\n this.deepestRight.getParent().setRightChild(this.deepestRight);\n }\n else\n {\n this.root = deepestRight;\n }\n\n //changing n nodes children dependencies\n if(n.getLeftChild() != null)\n n.getLeftChild().setParent(this.deepestRight);\n\n if(n.getRightChild() != null)\n n.getRightChild().setParent(this.deepestRight);\n }", "public void removeNode(Node p_node) {\n\t\tnodes.remove(p_node);\n\t}", "public void onRemoveNode(Node node) {\n\t}", "public void deleteNode() {\n TreeNode pNode = this.getParentNode();\n int id = this.getSelfId();\n\n if (pNode != null) {\n pNode.deleteChildNode(id);\n }\n }", "private TreeNode remove(TreeNode node, Object value)\r\n {\r\n int diff = ((Comparable<Object>)value).compareTo(node.getValue());\r\n if (diff == 0) // base case\r\n node = removeRoot(node);\r\n else if (diff < 0)\r\n node.setLeft(remove(node.getLeft(), value));\r\n else // if (diff > 0)\r\n node.setRight(remove(node.getRight(), value));\r\n return node;\r\n }", "private void deleteNode(Cat valueToDelete, Node root){\n Node temp = findNode(valueToDelete, root);\n if(temp.getRight()==null){\n Node parent = temp.getParent();\n if(temp.getLeft()==null){\n temp.setParent(null);\n if(temp==parent.getRight()){\n parent.setRight(null);\n fixBalanceValues(parent,-1);\n }\n else{\n parent.setLeft(null);\n fixBalanceValues(parent,1);\n }\n \n }\n else{\n //copy value of leftchild into the node to deletes data and delete it's leftchild\n temp.setData(temp.getLeft().getData());\n temp.setLeft(null);\n fixBalanceValues(temp, 1);\n }\n }\n Node nodeToDelete = temp.getRight();\n if(nodeToDelete.getLeft()==null){\n temp.setData(nodeToDelete.getData());\n temp.setRight(null);\n nodeToDelete.setParent(null);\n fixBalanceValues(temp,-1);\n }\n else{\n while(nodeToDelete.getLeft()!=null){\n nodeToDelete=nodeToDelete.getLeft(); \n } \n temp.setData(nodeToDelete.getData());\n Node parent = nodeToDelete.getParent();\n parent.setLeft(null);\n nodeToDelete.setParent(null);\n fixBalanceValues(parent,1);\n }\n \n \n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse>\n removeContextChildren(com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getRemoveContextChildrenMethod(), getCallOptions()), request);\n }", "private void removeNode(Node<E> node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "public void decreaseCurrentDepth(){\n currentDepth--;\n if (this.children == null) generateChildren();\n else {\n for (Node child : this.children) child.decreaseCurrentDepth();\n }\n }", "public boolean removeNode(Node n);", "TreeNode removeNodesRecur(TreeNode root, int k, int level) {\n\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\troot.left = removeNodesRecur(root.left, k, level + 1);\n\t\troot.right = removeNodesRecur(root.right, k, level + 1);\n\n\t\tif (root.left == null && root.right == null && level < k) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn root;\n\t}", "public void prune() {\n this.getTree().prune();\n }", "public static void removeChildrenByName(final Node node, final Set<String> nodeNames, final boolean deep) {\n\t\tfinal NodeList childNodeList = node.getChildNodes(); //get the list of child nodes\n\t\tfor(int childIndex = childNodeList.getLength() - 1; childIndex >= 0; childIndex--) { //look at each child node in reverse to prevent problems from removal\n\t\t\tfinal Node childNode = childNodeList.item(childIndex); //get a reference to this node\n\t\t\tif(nodeNames.contains(childNode.getNodeName())) { //if this node is to be removed\n\t\t\t\tnode.removeChild(childNode); //remove it\n\t\t\t} else if(deep) { //if we should remove deeply\n\t\t\t\tremoveChildrenByName(childNode, nodeNames, deep);\n\t\t\t}\n\t\t}\n\t}", "public T remove(T x) {\n\t\tEntry<T> node = getSplay(find(x));\n\t\tT result;\n\t\tresult = node.element;\n\t\tif(node == null)\n\t\t\treturn null;\n\t\tsplay(node);\n\t\tif(node.left != null && node.right != null) {\n\t\t\tEntry<T> tmp = getSplay(node.left);\n\t\t\twhile(tmp.right != null)\n\t\t\t\ttmp = getSplay(tmp.right);\n\t\t\t\n\t\t\ttmp.right = node.right;\n\t\t\tgetSplay(node.right).parent = tmp;\n\t\t\tgetSplay(node.left).parent = null;\n\t\t\troot = node.right;\n\t\t\t \n\t\t}\n\t\telse if(node.right != null) {\n\t\t\tgetSplay(node.right).parent = null;\n\t\t\troot = node.right;\n\t\t}\n\t\telse if(node.left != null) {\n\t\t\tgetSplay(node.left).parent = null;\n\t\t\troot = node.left;\n\t\t}\n\t\telse {\n\t\t\troot = null;\n\t\t}\n\t\tnode.parent = null;\n node.left = null;\n node.right = null;\n node = null;\n return result;\n\t}", "protected void notifyChildRemoval(FONode node) {\n //nop\n }", "@Test\n public void remove_BST_0_CaseRootOneChildren()\n {\n BinarySearchTree bst = new BinarySearchTree();\n No root = new No(20);\n bst.insert(null, root);\n bst.insert(root, new No(10));\n //bst.printTree();\n //System.err.println(); // Print[ERR] Devido a prioridade do buffer de impressao (out, err)\n \n assertEquals(root, bst.remove(root));\n assertEquals(new Integer(1), bst.size());\n //bst.printTree();\n }", "private Node removeVx(Node node, K k){\n if(node == null)\n return null;\n\n if(k.compareTo(node.k) >0) { //value is greater, then looking right node\n node.right = removeVx(node.right, k);\n }else if(k.compareTo(node.k) < 0){ //value is smaller, then looking left node\n node.left = removeVx(node.left, k);\n }else { //(e.compareTo(node.e) == 0) found value matched node\n deleting = true;\n if(node.count!=0) { // if multiple value in one node, just decrease count\n node.count--;\n }else if (node.left != null) { //had left children use max of left children to replace this node\n node.copyValue(max(node.left));\n node.left = removeMax(node.left);\n }\n else if(node.right!=null) { //only had right child, use right child to replace this node\n decDepth(node.right); //maintain depth when chain in right tree\n node = node.right;\n }\n else {\n node = null; // no children, delete this node\n }\n }\n if (node != null && deleting) node.size--;\n return node;\n }", "private Node removeVn(Node node, K k){\n if(node == null)\n return null;\n\n if(k.compareTo(node.k) >0) {\n node.right = removeVn(node.right, k);\n }else if(k.compareTo(node.k) < 0){\n node.left = removeVn(node.left, k);\n }else{ //(e.compareTo(node.e) == 0) found value matched node\n deleting = true;\n if(node.count!=0) { // if multiple value in one node, just decrease count\n node.count--;\n }\n else if(node.right!=null) { // had right child, use min of right child to replace this node\n node.copyValue(min(node.right));\n node.right = removeMin(node.right);\n }\n else if(node.left!=null) {// left child only , use left child to replace this node\n decDepth(node.left); //maintain depth when chain in left tree\n node = node.left;\n }\n else {\n node = null; // no children, delete this node\n }\n }\n // update size of node and its parent nodes\n if (node != null && deleting) node.size--;\n return node;\n }", "public void removeNode(N node)\r\n/* 71: */ {\r\n/* 72:135 */ assert (checkRep());\r\n/* 73:137 */ for (N endNode : getSuccessors(node)) {\r\n/* 74:138 */ ((Map)this.map.get(endNode)).remove(node);\r\n/* 75: */ }\r\n/* 76:140 */ this.map.remove(node);\r\n/* 77: */ }", "private BSTNode<T> removeData(BSTNode<T> node) {\n\t\tT data;\n\n\t\tif (node.getLeft() == null && node.getRight() == null) {\n\t\t\treturn null;\n\t\t} else if (node.getLeft() == null) {\n\t\t\treturn node.getRight();\n\t\t} else if (node.getRight() == null) {\n\t\t\treturn node.getLeft();\n\t\t} else {\n\t\t\tdata = getPredecessor(node.getLeft());\n\t\t\tnode.setData(data);\n\t\t\tnode.setLeft(recRemove(node.getLeft(), data));\n\t\t\treturn node;\n\t\t}\n\t}", "public List<PlanNode> removeAllChildren() {\n if (this.children.isEmpty()) {\n return new ArrayList<PlanNode>(0);\n }\n List<PlanNode> copyOfChildren = new ArrayList<PlanNode>(this.children);\n for (Iterator<PlanNode> childIter = this.children.iterator(); childIter.hasNext();) {\n PlanNode child = childIter.next();\n childIter.remove();\n child.parent = null;\n }\n return copyOfChildren;\n }", "public BSTNode<E> remove(E item) {\r\n\t\tif (value.compareTo(item) > 0 && left != null) {\r\n\t\t\tleft = left.remove(item); // Find node to delete\r\n\t\t} else if (value.compareTo(item) < 0 && right != null) {\r\n\t\t\tright = right.remove(item); // Find node to delete\r\n\t\t} if (value.compareTo(item) != 0) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\t\r\n\t\tif (left != null && right != null) {\r\n\t\t\treturn replacementSubtreeFromChildren(left,right);\r\n\t\t} else if (left != null && right == null) {\r\n\t\t\treturn replacementSubtreeFromChildren(left,right);\r\n\t\t} else if (right != null && left == null) {\r\n\t\t\treturn replacementSubtreeFromChildren(left,right);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void updateChildNodes() {\n\t\tList<FTNonLeafNode> nodesToRemove = new ArrayList<FTNonLeafNode>();\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tList<FTNode> childNodesToRemove = new ArrayList<FTNode>();\n\t\t\tfor (String childName : intermediateNode.childNodes.keySet()) {\n\t\t\t\tif (intermediateNodes.containsKey(childName)) {\n\t\t\t\t\t// update child node if it has child node\n\t\t\t\t\tFTNonLeafNode childNode = intermediateNodes.get(childName);\n\t\t\t\t\tif ((childNode instanceof FTOrNode) || (childNode instanceof FTAndNode)) {\n\t\t\t\t\t\tintermediateNode.addChildNode(childName, intermediateNodes.get(childName));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// if parent node is an OR node\n\t\t\t\t\t\t// remove this child\n\t\t\t\t\t\tif (intermediateNode instanceof FTOrNode) {\n\t\t\t\t\t\t\tchildNodesToRemove.add(childNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if parent node is an AND node\n\t\t\t\t\t\t// remove the parent node and child node\n\t\t\t\t\t\t// and set their values to false in case they are referenced by other nodes\n\t\t\t\t\t\telse if (intermediateNode instanceof FTAndNode) {\n\t\t\t\t\t\t\tnodesToRemove.add(intermediateNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t\t// mark the nodes as they are not getting removed till after the loop\n\t\t\t\t\t\t\tintermediateNode.resolved = true;\n\t\t\t\t\t\t\tintermediateNode.nodeValue = false;\n\t\t\t\t\t\t\tchildNode.resolved = true;\n\t\t\t\t\t\t\tchildNode.nodeValue = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tintermediateNode.removeChildNodes(childNodesToRemove);\n\t\t\t// if no child node left for this intermediate node,\n\t\t\t// then its parent node should remove this intermediate node as well\n\t\t}\n\t\t// remove the no child nodes\n\t\tfor (FTNonLeafNode node : nodesToRemove) {\n\t\t\tintermediateNodes.remove(node.nodeName);\n\t\t}\n\t}", "void tryRemoveNodes(Collection<Node> nodesToRemove) throws Exception;", "private void deleteTree(tnode root){\n if (root != null)\n root = null;\n }", "private void deleteUpToChild(Node toRemove) {\n Boolean isRoot = toRemove == root;\n Node child = null;\n //find 1 child if exist\n if (toRemove.left != null) {\n child = toRemove.left;\n } else if (toRemove.right != null) {\n child = toRemove.right;\n }\n if (isRoot) { //in case toRemove is the root, set root to child (even if null);\n root = child;\n if (child != null) child.parent = null;\n } else { //if not root, set parent's relevant son to 'child' (both directions)\n if (toRemove.parent.left == toRemove) {\n toRemove.parent.left = child;\n } else toRemove.parent.right = child;\n if (child != null) {\n child.parent = toRemove.parent;\n }\n }\n }", "private Node<T> delete(Node<T> node,Comparable<T> item) {\r\n if (node == null) { // this is the base case\r\n return null;\r\n }\r\n if (node.data.compareTo((T) item) < 0) {\r\n node.right = delete(node.right, item);\r\n return node;\r\n }\r\n else if (node.data.compareTo((T) item) > 0) {\r\n node.left = delete(node.left, item);\r\n return node;\r\n }\r\n else { // the item == node.data\r\n if (node.left == null) { // no left child\r\n return node.right;\r\n }\r\n else if (node.right == null) { // no right child\r\n return node.left;\r\n }\r\n else { // 2 children: find in-order successor\r\n if (node.right.left == null) { // if right child does not have a left child of its own\r\n node.data = node.right.data;\r\n node.right = node.right.right;\r\n }\r\n else {\r\n node.data = (Comparable<T>) removeSmallest(node.right); // if the right child has two children, or has a left subtree\r\n }\r\n return node;\r\n }\r\n }\r\n }", "private Node removeElement() {\n if (this.leftChild != null) {\n if (this.rightChild != null) {\n Node current = this.rightChild;\n\n while (current.leftChild != null) {\n current = current.leftChild;\n }\n\n //swap\n E value = this.value;\n this.value = current.value;\n current.value = value;\n\n this.rightChild = this.rightChild.removeElement(current.value);\n return this.balance();\n } else {\n return this.leftChild;\n }\n } else {\n return this.rightChild;\n }\n }", "private TSTNode<E> deleteNodeRecursion(TSTNode<E> currentNode) {\n \n if(currentNode == null) return null;\n if(currentNode.relatives[TSTNode.EQKID] != null || currentNode.data != null) return null; // can't delete this node if it has a non-null eq kid or data\n\n TSTNode<E> currentParent = currentNode.relatives[TSTNode.PARENT];\n\n // if we've made it this far, then we know the currentNode isn't null, but its data and equal kid are null, so we can delete the current node\n // (before deleting the current node, we'll move any lower nodes higher in the tree)\n boolean lokidNull = currentNode.relatives[TSTNode.LOKID] == null;\n boolean hikidNull = currentNode.relatives[TSTNode.HIKID] == null;\n\n ////////////////////////////////////////////////////////////////////////\n // Add by Cheok. To resolve java.lang.NullPointerException\n // I am not sure this is the correct solution, as I have not gone\n // through this sourc code in detail.\n if (currentParent == null && currentNode == this.rootNode) {\n // if this executes, then current node is root node\n rootNode = null;\n return null;\n }\n // Add by Cheok. To resolve java.lang.NullPointerException\n ////////////////////////////////////////////////////////////////////////\n\n // now find out what kind of child current node is\n int childType;\n if(currentParent.relatives[TSTNode.LOKID] == currentNode) {\n childType = TSTNode.LOKID;\n } else if(currentParent.relatives[TSTNode.EQKID] == currentNode) {\n childType = TSTNode.EQKID;\n } else if(currentParent.relatives[TSTNode.HIKID] == currentNode) {\n childType = TSTNode.HIKID;\n } else {\n // if this executes, then current node is root node\n rootNode = null;\n return null;\n }\n\n if(lokidNull && hikidNull) {\n // if we make it to here, all three kids are null and we can just delete this node\n currentParent.relatives[childType] = null;\n return currentParent;\n }\n\n // if we make it this far, we know that EQKID is null, and either HIKID or LOKID is null, or both HIKID and LOKID are NON-null\n if(lokidNull) {\n currentParent.relatives[childType] = currentNode.relatives[TSTNode.HIKID];\n currentNode.relatives[TSTNode.HIKID].relatives[TSTNode.PARENT] = currentParent;\n return currentParent;\n }\n\n if(hikidNull) {\n currentParent.relatives[childType] = currentNode.relatives[TSTNode.LOKID];\n currentNode.relatives[TSTNode.LOKID].relatives[TSTNode.PARENT] = currentParent;\n return currentParent;\n }\n\n int deltaHi = currentNode.relatives[TSTNode.HIKID].splitchar - currentNode.splitchar;\n int deltaLo = currentNode.splitchar - currentNode.relatives[TSTNode.LOKID].splitchar;\n int movingKid;\n TSTNode<E> targetNode;\n \n // if deltaHi is equal to deltaLo, then choose one of them at random, and make it \"further away\" from the current node's splitchar\n if(deltaHi == deltaLo) {\n if(Math.random() < 0.5) {\n deltaHi++;\n } else {\n deltaLo++;\n }\n }\n\n\tif(deltaHi > deltaLo) {\n movingKid = TSTNode.HIKID;\n targetNode = currentNode.relatives[TSTNode.LOKID];\n } else {\n movingKid = TSTNode.LOKID;\n targetNode = currentNode.relatives[TSTNode.HIKID];\n }\n\n while(targetNode.relatives[movingKid] != null) targetNode = targetNode.relatives[movingKid];\n \n // now targetNode.relatives[movingKid] is null, and we can put the moving kid into it.\n targetNode.relatives[movingKid] = currentNode.relatives[movingKid];\n\n // now we need to put the target node where the current node used to be\n currentParent.relatives[childType] = targetNode;\n targetNode.relatives[TSTNode.PARENT] = currentParent;\n\n if(!lokidNull) currentNode.relatives[TSTNode.LOKID] = null;\n if(!hikidNull) currentNode.relatives[TSTNode.HIKID] = null;\n\n // note that the statements above ensure currentNode is completely dereferenced, and so it will be garbage collected\n return currentParent;\n }", "void deleteAll(Node N){\n if( N != null ){\n deleteAll(N.left);\n deleteAll(N.right);\n }\n }", "private AvlNode<E> remove(Comparable<E> element, AvlNode<E> node){\n if(node == null) {\n return node;\n } else if(node.value.compareTo((E)element) > 0){\n node.left = remove(element, node.left);\n } else if(node.value.compareTo((E)element) < 0){\n node.right = remove(element, node.right);\n } else {\n if(node.left == null && node.right == null){\n return null;\n } else if(node.left == null){\n return node.right;\n } else if(node.right == null){\n return node.left;\n } else {\n AvlNode<E> replacement = findMax(node.left);\n replacement.left = remove(replacement.value, node.left);\n replacement.right = node.right;\n return replacement;\n }\n }\n\n if(height(node.left) - height(node.right) > 1){\n if(height(node.left.left) > height(node.left.right)){\n node = rotateWithLeftChild(node);\n } else {\n node = doubleWithLeftChild(node);\n }\n } else if(height(node.left) - height(node.right) < -1){\n if(height(node.right.right) > height(node.right.left)){\n node = rotateWithRightChild(node);\n } else {\n node = doubleWithRightChild(node);\n }\n }\n node.height = max(height(node.left), height(node.right)) + 1;\n return node;\n }", "protected void removeAllChildNodes(Node elem) {\n NodeList<Node> childNodes = elem.getChildNodes();\n for (int i = childNodes.getLength() - 1; i >= 0; i--) {\n elem.removeChild(childNodes.getItem(i));\n }\n }", "public void removeNode(NodeBINE node) {\n statistic.log(Type.REMOVED_NODES);\n if (removedNodeIds.contains(node.getId())) {\n System.err.println(\"Node: \" + node.getId() + \" already removed\");\n } else {\n removedNodeIds.add(node.getId());\n //storeNode(node);\n }\n nodes.remove(node.getId());\n }", "private Node<E> delete(E item, Node<E> root){\n\t\t/** the item to delete does not exist */\n\t\tif(root == null){\n\t\t\tdeleteReturn = null;\n\t\t\treturn root;\n\t\t}\n\t\t\n\t\tint comparison = item.compareTo(root.item);\n\t\t\n\t\t/** delete from the left subtree */\n\t\tif(comparison < 0){\n\t\t\troot.left = delete(item, root.left);\n\t\t\treturn root;\n\t\t}\n\t\t/** delete from the right subtree */\n\t\telse if(comparison > 0){\n\t\t\troot.right = delete(item, root.right);\n\t\t\treturn root;\n\t\t}\n\t\t/** the node to delete is found */\n\t\telse{\n\t\t\tdeleteReturn = root.item;\n\t\t\t\n\t\t\t/** the node is a leaf */\n\t\t\tif(root.left == null && root.right == null){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t/** the node has one left child */\n\t\t\telse if(root.left != null && root.right == null){\n\t\t\t\treturn root.left;\n\t\t\t}\n\t\t\t/** the node has one right child */\n\t\t\telse if(root.left == null && root.right != null){\n\t\t\t\treturn root.right;\n\t\t\t}\n\t\t\t/** the node has two children */\n\t\t\telse{\n\t\t\t\t/**\n\t\t\t\t* the left child becomes the local root\n\t\t\t\t*/\n\t\t\t\tif(root.left.right == null){\n\t\t\t\t\troot.item = root.left.item;\n\t\t\t\t\troot.left = root.left.left;\n\t\t\t\t\treturn root;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t* find the left-rightmost node and replace the local root's\n\t\t\t\t* item with that of left-rightmost node.\n\t\t\t\t*/\n\t\t\t\telse{\n\t\t\t\t\troot.item = findRightmost(root.left);\n\t\t\t\t\treturn root;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void deleteNode(BinaryTreeNode node) // Only leaf nodes and nodes with degree 1 can be deleted. If a degree 1 node is deleted, it is replaced by its subtree.\r\n {\n if(!node.hasRightChild() && !node.hasLeftChild()){\r\n if(node.mActualNode.mParent.mRightChild == node.mActualNode) {\r\n\r\n node.mActualNode.mParent.mRightChild = null;\r\n }\r\n else if(node.mActualNode.mParent.mLeftChild == node.mActualNode) {\r\n\r\n node.mActualNode.mParent.mLeftChild = null;\r\n }\r\n //node.mActualNode = null;\r\n\r\n }\r\n //if deleted node has degree 1 and has only left child\r\n else if(node.hasLeftChild() && !node.hasRightChild()){\r\n node.mActualNode.mLeftChild.mParent = node.mActualNode.mParent;\r\n //if deleted node is left child of his father\r\n if(node.mActualNode.mParent.mLeftChild == node.mActualNode)\r\n node.mActualNode.mParent.mLeftChild = node.mActualNode.mLeftChild;\r\n //if deleted node is right child of his father\r\n else {\r\n\r\n node.mActualNode.mParent.mRightChild = node.mActualNode.mLeftChild;\r\n }\r\n }\r\n // if deleted node has degree 1 and has only right child\r\n else if(node.hasRightChild() && !node.hasLeftChild()){\r\n node.mActualNode.mRightChild.mParent = node.mActualNode.mParent;\r\n\r\n //if node is left child of his father\r\n if(node.mActualNode.mParent.mLeftChild == node.mActualNode) {\r\n\r\n\r\n node.mActualNode.mParent.mLeftChild = node.mActualNode.mRightChild;\r\n\r\n }\r\n //if node is right child of his father\r\n else\r\n node.mActualNode.mParent.mRightChild = node.mActualNode.mRightChild;\r\n\r\n\r\n }\r\n else\r\n System.out.println(\"Error : node has two child\");\r\n\r\n }", "private BinaryNode<E> _delete(BinaryNode<E> node, E e) {\n\t\tif (node == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (comparator.compare(e, node.getData()) < 0) // <, so go left\n\t\t\tnode.setLeftChild(_delete(node.getLeftChild(), e));// recursive call\n\t\telse if (comparator.compare(e, node.getData()) > 0) // >, so go right\n\t\t\tnode.setRightChild(_delete(node.getRightChild(), e));// recursive call\n\t\telse { // FOUND THE NODE\n\t\t\tfoundNode = true;\n\t\t\tnode = _deleteNode(node);\n\t\t}\n\t\treturn node;\n\t}", "private List<MutateOperation> removeDescendantsAndFilter(String resourceName) {\n List<MutateOperation> operations = new ArrayList<>();\n\n if (this.parentsToChildren.containsKey(resourceName)) {\n Set<String> children = parentsToChildren.get(resourceName);\n for (String child : children) {\n // Recursively adds operations to the return value that remove each of the child nodes of\n // the current node from the tree.\n operations.addAll(removeDescendantsAndFilter(child));\n }\n }\n\n // Creates and adds an operation to the return value that will remove the current node from\n // the tree.\n AssetGroupListingGroupFilterOperation operation =\n AssetGroupListingGroupFilterOperation.newBuilder().setRemove(resourceName).build();\n operations.add(\n MutateOperation.newBuilder().setAssetGroupListingGroupFilterOperation(operation).build());\n return operations;\n }", "private void removeNode(Node node){\n\n if (node.pre == null) {\n this.head = node.next;\n } else {\n node.pre.next = node.next;\n }\n\n if (node.next == null) {\n this.end = node.pre;\n } else {\n node.next.pre = node.pre;\n } \n }", "public void remove(Node node) {\n\t\tNode cloneNode = node;\n\t\tint index = indexOf(cloneNode.block);\n\t\tif (index != (-1)){\n\t\t\tgetNode(index - 1).next = cloneNode.next;\n\t\t\tgetNode(index + 1).previous = cloneNode.previous;\n\t\t\tsize--;\n\t\t\t\n\t\t}\n\t}", "public boolean removeTree(String treeName);", "public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}", "void removeNode(CacheNode<K, V> node) {\n\n\t\tconcurrentList.remove(node); // O(1) operation.\n\n\t}", "protected void xremove(Node<T> u) {\n\t\tif (u == r) {\n\t\t\tremove();\n\t\t} else {\n\t\t\tif (u == u.parent.left) {\n\t\t\t\tu.parent.left = nil;\n\t\t\t} else {\n\t\t\t\tu.parent.right = nil;\n\t\t\t}\n\t\t\tu.parent = nil;\n\t\t\tr = merge(r, u.left);\n\t\t\tr = merge(r, u.right);\n\t\t\tr.parent = nil;\n\t\t\tn--;\n\t\t}\n\t}", "Node deleteNode(Node root, int key) {\n if (root == null) {\n return root;\n }\n\n // If the key to be deleted is smaller than the root's key,\n // then it lies in left subtree\n if (key < root.key) {\n root.left = deleteNode(root.left, key);\n }\n\n // If the key to be deleted is greater than the root's key,\n // then it lies in right subtree\n else if (key > root.key) {\n root.right = deleteNode(root.right, key);\n }\n\n // if key is same as root's key, then this is the node\n // to be deleted\n else {\n\n // node with only one child or no child\n if ((root.left == null) || (root.right == null)) {\n Node temp = null;\n if (temp == root.left) {\n temp = root.right;\n } else {\n temp = root.left;\n }\n\n // No child case\n if (temp == null) {\n temp = root;\n root = null;\n } else // One child case\n {\n root = temp; // Copy the contents of the non-empty child\n }\n } else {\n\n // node with two children: Get the inorder successor (smallest\n // in the right subtree)\n Node temp = minValueNode(root.right);\n\n // Copy the inorder successor's data to this node\n root.key = temp.key;\n\n // Delete the inorder successor\n root.right = deleteNode(root.right, temp.key);\n }\n }\n\n // If the tree had only one node then return\n if (root == null) {\n return root;\n }\n\n // STEP 2: UPDATE HEIGHT OF THE CURRENT NODE\n root.height = max(height(root.left), height(root.right)) + 1;\n // STEP 3: GET THE BALANCE FACTOR OF THIS NODE (to check whether\n // this node became unbalanced)\n int balance = getBalance(root);\n\n // If this node becomes unbalanced, then there are 4 cases\n // Left Left Case\n if (balance > 1 && getBalance(root.left) >= 0) {\n return rightRotate(root);\n }\n\n // Left Right Case\n if (balance > 1 && getBalance(root.left) < 0) {\n root.left = leftRotate(root.left);\n return rightRotate(root);\n }\n\n // Right Right Case\n if (balance < -1 && getBalance(root.right) <= 0) {\n return leftRotate(root);\n }\n\n // Right Left Case\n if (balance < -1 && getBalance(root.right) > 0) {\n root.right = rightRotate(root.right);\n return leftRotate(root);\n }\n\n return root;\n }", "public void removeChild(int index)\n/* */ {\n/* 457 */ this.children.removeElementAt(index);\n/* */ }", "private void RemoveRootNode() {\n\t\t\n\t\troot_map.remove(this);\n\t\tis_node_set = false;\n\t\tif(left_ptr == null && right_ptr == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tleft_ptr.RemoveRootNode();\n\t\tright_ptr.RemoveRootNode();\n\t}", "void cascadingCut(Nodefh node){\n\t\tif(node.Parent == null){\n\t\t\treturn;\n\t\t}\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Right.Right = node.Right;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t}\n\t\tfhInsert(node);\n\t\tif(node.Parent.ChildCut == true){\n\t\t\tcascadingCut(node.Parent);\n\t\t}\n\t\telse{\n\t\t\tnode.Parent.ChildCut = true;\n\t\t}\n\t\tnode.Parent = null;\n\t}", "boolean removeNode(N node);", "private BinarySearchTree deleteTree(BinarySearchTree tree, Comparable key){\r\n\t\t\r\n\t\t//If it is a leaf\r\n\t\tif(tree.getLeftChild() == null && tree.getRightChild() == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//Tree has only 1 leaf\r\n\t\telse if( (tree.getLeftChild() == null && tree.getRightChild() != null) ||\r\n\t\t\t\t (tree.getLeftChild() != null && tree.getRightChild() == null)){\r\n\t\t\t\r\n\t\t\t//Make a new tree out of the leaf and make it the new root\r\n\t\t\tif(tree.getLeftChild() != null){\r\n\t\t\t\treturn tree.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn tree.getRightChild();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Has two leaves. This case is slightly more complicated\r\n\t\telse{\r\n\t\t\t//get the leftmost item in the right child subtree. This becomes the \r\n\t\t\t//new root. This allows the BinarySearchTree to stay a valid \r\n\t\t\t//BinarySearchTree\r\n\t\t\tKeyedItem replacementItem = findLeftMost(tree.getRightChild());\r\n\t\t\t\r\n\t\t\t//Delete the tree with that item so it can be moved to the new root\r\n\t\t\tBinarySearchTree replacementTree = deleteLeftMost(tree.getRightChild());\r\n\t\t\t\r\n\t\t\t//change the root to the new item\r\n\t\t\ttree.setRootItem(replacementItem);\r\n\t\t\t\r\n\t\t\t//Set the new roots right tree to the replacement tree\r\n\t\t\ttree.attachRightSubtree(replacementTree);\r\n\t\t\treturn tree;\r\n\t\t}\r\n\t}", "@PortedFrom(file = \"Taxonomy.h\", name = \"removeNode\")\n public void removeNode(TaxonomyVertex node) {\n graph.remove(node);\n }", "static void deleteNode(Node node){\n\t\tif(node.next==null){\r\n\t\t\tnode=null;\r\n\t\t}\r\n\t\tnode.data=node.next.data;\r\n\t\tnode.next=node.next.next;\r\n\t}", "public void unmemoize() {\n\t\tif (children != null) {\t\n\t\t\tfor (Item i : children) {\n\t\t\t\t((TreeItem)i).unmemoize();\n\t\t\t}\n\t\t}\n\t\ttreeLeaves = null;\n\t\tleaves = null;\n\t}", "void removeChild(Object child);", "public TreeNode subtreeWithAllDeepest(TreeNode root) {\n }", "private void removeNode(DNode node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "private T remove(Node<T> rm_node) {\n //if(node.previous == null) return removeFirst(); //If its a first node to remove.\n //if(node.next == null) return removeLast(); //If it's last node to remove.\n\n rm_node.next.previous = rm_node.previous; //pointing deleting nodes next element to deleting nodes prev. 3 <--- 4 ---> 5\n rm_node.previous.next = rm_node.next; //pointing deleting nodes prev element to deleting nodes next. deleting 4\n\n T data = rm_node.data; //to return deleted node data.\n\n rm_node.data = null;\n rm_node = rm_node.previous = rm_node.next = null; //Clearing node\n --size;\n\n return data;\n }", "public static void removeChildrenByName(final Node node, final Set<String> nodeNames) {\n\t\tremoveChildrenByName(node, nodeNames, true);\n\t}", "public static <N extends Node> N removeChildren(@Nonnull final N parentNode) throws DOMException {\n\t\twhile(parentNode.hasChildNodes()) {\n\t\t\tparentNode.removeChild(parentNode.getFirstChild());\n\t\t}\n\t\treturn parentNode;\n\t}", "Node deleteNode(Node root, int key) \n {\n if (root == null) \n return root; \n \n // If the key to be deleted is smaller than \n // the root's key, then it lies in left subtree \n if (key < root.key) \n root.left = deleteNode(root.left, key); \n \n // If the key to be deleted is greater than the \n // root's key, then it lies in right subtree \n else if (key > root.key) \n root.right = deleteNode(root.right, key); \n \n // if key is same as root's key, then this is the node \n // to be deleted \n else\n { \n // node with only one child or no child \n if ((root.left == null) || (root.right == null)) \n { \n Node temp = null; \n if (temp == root.left) \n temp = root.right; \n else\n temp = root.left; \n \n // No child case \n if (temp == null) \n { \n temp = root; \n root = null; \n } \n else // One child case \n root = temp; // Copy the contents of \n // the non-empty child \n } \n else\n { \n \n // node with two children: Get the inorder \n // successor (smallest in the right subtree) \n Node temp = minValueNode(root.right); \n \n // Copy the inorder successor's data to this node \n root.key = temp.key; \n \n // Delete the inorder successor \n root.right = deleteNode(root.right, temp.key); \n } \n } \n \n // If the tree had only one node then return \n if (root == null) \n return root; \n \n // STEP 2: UPDATE HEIGHT OF THE CURRENT NODE \n root.height = max(height(root.left), height(root.right)) + 1; \n \n // STEP 3: GET THE BALANCE FACTOR OF THIS NODE (to check whether \n // this node became unbalanced) \n int balance = getBalance(root); \n \n // If this node becomes unbalanced, then there are 4 cases \n // Left Left Case \n if (balance > 1 && getBalance(root.left) >= 0) \n return rightRotate(root); \n \n // Left Right Case \n if (balance > 1 && getBalance(root.left) < 0) \n { \n root.left = leftRotate(root.left); \n return rightRotate(root); \n } \n \n // Right Right Case \n if (balance < -1 && getBalance(root.right) <= 0) \n return leftRotate(root); \n \n // Right Left Case \n if (balance < -1 && getBalance(root.right) > 0) \n { \n root.right = rightRotate(root.right); \n return leftRotate(root); \n } \n \n return root; \n }", "private Node removeElement(Object value) {\n if (value.equals(this.value)) {\n return this.removeElement();\n }\n\n if (((Comparable)value).compareTo(this.value) < 0) {\n if (this.leftChild != null) {\n this.leftChild = this.leftChild.removeElement(value);\n return this.balance();\n }\n } else {\n if (this.rightChild != null) {\n this.rightChild = this.rightChild.removeElement(value);\n return this.balance();\n }\n }\n return this;\n }", "public void clear()\n\t\t{ while (!children.isEmpty()) remove(children.get(0)); }", "public void removeSubtree(ARGState e) {\n Set<ARGState> toWaitlist = removeSubtree0(e);\n\n for (ARGState ae : toWaitlist) {\n mReached.reAddToWaitlist(ae);\n }\n }", "private void remove(Node node) {\n Node next = node.next;\n Node previous = node.previous;\n previous.next = next;\n next.previous = previous;\n }" ]
[ "0.7114786", "0.6942873", "0.6755131", "0.6728496", "0.66661006", "0.6622032", "0.65729976", "0.6449543", "0.63810223", "0.6351067", "0.632932", "0.61952555", "0.6112112", "0.6085653", "0.6059728", "0.6052019", "0.60367626", "0.6031154", "0.59121287", "0.5899455", "0.58784926", "0.5856313", "0.58524597", "0.5805534", "0.58041245", "0.5754172", "0.5724252", "0.57033145", "0.5700933", "0.56877416", "0.56725556", "0.56710196", "0.5652214", "0.5644747", "0.5641373", "0.56389445", "0.5638486", "0.5637167", "0.5626547", "0.5613203", "0.5607857", "0.56015456", "0.5583796", "0.5575016", "0.55707395", "0.55649704", "0.5552651", "0.5545486", "0.55346656", "0.55252373", "0.5514765", "0.5512404", "0.5507926", "0.54926664", "0.5479649", "0.54769504", "0.5473584", "0.5468238", "0.54677486", "0.5452316", "0.54438174", "0.5434464", "0.5428022", "0.54193056", "0.5418666", "0.5415988", "0.540172", "0.53952426", "0.5383631", "0.5371272", "0.53675115", "0.5360749", "0.534433", "0.5343378", "0.53313684", "0.5326279", "0.53248817", "0.5324226", "0.5312178", "0.53021", "0.5287876", "0.5274095", "0.52648896", "0.52630615", "0.52483916", "0.5237922", "0.5235087", "0.52305704", "0.5230338", "0.5226344", "0.521919", "0.52088225", "0.52076995", "0.52014405", "0.5199007", "0.51987135", "0.5195231", "0.51935995", "0.518735", "0.5184346" ]
0.6473933
7
Mouse click event handle for expanding/contracting node
@Override public void handle(MouseEvent event) { if (event.getButton().equals(MouseButton.PRIMARY)) { //Double click if (event.getClickCount() == 2) { expandContractNode(node); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void mouseClicked(MouseEvent e) {\r\n\t// TODO Auto-generated method stub\r\n\tif (selectedNode == null) {\r\n\t highlightNodes(e);\r\n\t} else if (selectedNode != null) {\r\n\t moveSteen(e);\r\n\t}\r\n\tupdateBord();\r\n }", "public void mouseClicked(MouseEvent ev)\n\t{\n\t if (timer!=null || manim==null || manim.snoopGeneration()!=null) return;\n\n\t Node n = manim.getNodeCloseToBottom(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\tunhilitNode();\n\t\tchangeColorDirection(true,n);\n\t\trenderPath(n);\t \n\t\thilitNode(n,Color.red);\n\t\treturn;\n\t }\n\n\t n = manim.getNodeCloseToTop(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\tunhilitNode();\n\t\tchangeColorDirection(false,n);\n\t\trenderDownPaths(n);\n\t\thilitNode(n,Color.blue);\n\t\treturn;\n\t }\n\t}", "public void mousePressed(MouseEvent me) {\n if (!table.isEnabled())\n return;\n \n // we're going to check if the single click was overtop of the\n // expander button and toggle the expansion of the row if it was\n \n // extract information about the location of the click\n final JTable table = (JTable) me.getSource();\n final Point clickPoint = me.getPoint();\n final int row = table.rowAtPoint(clickPoint);\n final int column = table.columnAtPoint(clickPoint);\n \n // ensure a valid cell has clicked\n if (row == -1 || column == -1)\n return;\n \n // translate the clickPoint to be relative to the rendered component\n final Rectangle cellRect = table.getCellRect(row, column, true);\n clickPoint.translate(-cellRect.x, -cellRect.y);\n \n // if a left-click occurred over the expand/collapse button\n final TreeTableCellPanel renderedPanel = TreeTableUtilities.prepareRenderer(me);\n boolean hitNode = true;\n if (renderedPanel != null) {\n Component hit = renderedPanel.findComponentAt(clickPoint);\n hitNode = hit == renderedPanel.getNodeComponent();\n }\n if (SwingUtilities.isLeftMouseButton(me) && renderedPanel != null && renderedPanel.isPointOverExpanderButton(clickPoint)) {\n treeList.getReadWriteLock().writeLock().lock();\n try {\n // expand/collapse the row if possible\n if (treeList.getAllowsChildren(row))\n TreeTableUtilities.toggleExpansion(table, treeList, row).run();\n } finally {\n treeList.getReadWriteLock().writeLock().unlock();\n }\n \n // return early and don't allow the delegate a chance to react to the mouse click\n return;\n }\n \n if (hitNode) {\n delegate.mousePressed(me);\n }\n }", "@Override\n public void handle(MouseEvent event) {\n if (!event.isPrimaryButtonDown())\n return;\n\n double scale = pannableCanvas.getScale();\n\n Node node = (Node) event.getSource();\n\n if (node instanceof Group){\n Group unionGroup = (Group) node;\n for (Node node1 : unionGroup.getChildren()) {\n FamilyMemberBox familyMemberBox = (FamilyMemberBox) node1;\n double x = nodeDragContext.translateAnchorX + ((event.getSceneX() - nodeDragContext.mouseAnchorX) / scale);\n double y = nodeDragContext.translateAnchorY + ((event.getSceneY() - nodeDragContext.mouseAnchorY) / scale);\n familyMemberBox.setTranslateX(x);\n familyMemberBox.setTranslateY(y);\n\n logger.info(\"translateAnchorX: {} translateAnchorY: {}\", node.getTranslateX(), node.getTranslateY());\n }\n }\n event.consume();\n }", "public void detectClick(MouseEvent e){\n\t\tif(e.getSource() instanceof Pane) {\n\t\t\tNode source=(Node) e.getSource();\n\t\t\tNode sourceTarget=(Node) e.getTarget();\n\n\t\t\tString id = source.getId().toString();\n\t\t\tCouplePerso coord = cIHM.coords(e);\n\t\t\tCouplePerso coordParent = cIHM.coordsParent(e);\n\n\t\t\t//J'identifie le click de sourie\n\t\t\tif(e.getButton() == MouseButton.PRIMARY) {\n\n\t\t\t\t//J'identifie si nous cliquons dans l'inventaire\n\t\t\t\tif(id.equals(\"inventory\")||id.equals(\"inventory1\")||id.equals(\"inventory2\")) {\n\n\t\t\t\t\t//Ceci sont les coordonnées dans l'inventaire de la ou on clique, dependant si on clique sur un image ou une case vide\n\t\t\t\t\tInteger position = cIHM.coordsToPosition(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsToPosition(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"je recupere l'item \");\n\t\t\t\t\t\t\t//System.out.println(positionParent);\n\n\t\t\t\t\t\t\tstackTemp = model.putInInv(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\n\t\t\t\t\t\t//Si j'ai un item dans la main, et la case clique n'est pas vide, alors j'echange les deux items de place\t\t\t\t\t\t\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"jechange deux items de place \");\n\t\t\t\t\t\t\t//System.out.println(positionParent);\n\n\t\t\t\t\t\t\tstackTemp = model.putInInv(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Si la case clique est vide, alors je pose l'item dans cette case de l'inventaire\n\t\t\t\t\t\telse {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"je pose l'item \");\n\t\t\t\t\t\t\t//System.out.println(position);\n\t\t\t\t\t\t\tstackTemp = model.putInInv(position, stackTemp);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique sur la table de craft\n\t\t\t\tif(id.equals(\"table\")) {\n\n\t\t\t\t\tInteger position = cIHM.coordsInTable(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsInTable(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(positionParent, stackTemp);\n\t\t\t\t\t\t\t//System.out.println(\"je recupere l'item\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//Si j'ai un item dans la main, et que la case clique est vide, alors je pose l'item dans cette case du table de craft\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(positionParent, stackTemp);\n\t\t\t\t\t\t\t//System.out.println(\"jechange deux items de place\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Sinon j'echange les deux items de place\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(position, stackTemp);\n\t\t\t\t\t\t\t//System.out.println(\"je pose l'item\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresultat = model.resultatCraft.getMatrix()[0];\n\t\t\t\t\t//System.out.println(model.resultatCraft.getMatrix()[0]);\n\t\t\t\t\t/*for(int i=0;i<9;i++) {\n\t\t\t\t\t\tSystem.out.println(model.tableDeCraft.getStackAt(i));\n\t\t\t\t\t}*/\n\t\t\t\t\tif(resultat != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.cIHM.afficheResult(resultat.getItem().getImLink());\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t//Je regarde si on clique dans l'inventaire creatif\n\t\t\t\tif(id.equals(\"inventory_crea\")) {\n\t\t\t\t\t//Et si on clique sur un image\n\t\t\t\t\tif (sourceTarget instanceof ImageView) {\n\t\t\t\t\t\tImageView iv = (ImageView) sourceTarget;\n\t\t\t\t\t\tString[] lienT = iv.getId().split(\"[\\\\.]\");\n\t\t\t\t\t\tString[] lienT2 = lienT[0].split(\"img_\");\n\t\t\t\t\t\tString lien = lienT2[1];\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t//Si on a pas d'item en main, ca nous mettra un l'item en main\n\t\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Sinon l'item dans notre main est remplacer\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique dans la case du table de uncraft\n\t\t\t\tif(id.equals(\"case\")) {\n\t\t\t\t\t//System.out.println(sourceTarget.getId());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(source.getParent().getId().equals(\"anchorResult1\")) {\n\t\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\t\tstackTemp = model.putInUncraftSlot(stackTemp);\n\t\t\t\t\t\t\t\tArrayList<String> listeUncraft = new ArrayList<String>();\n\t\t\t\t\t\t\t\tfor(int i=0;i<9;i++) {\n\t\t\t\t\t\t\t\t\tif(model.tableDeCraft.getStackAt(i) == null) {\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(null);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tString lienIm = model.tableDeCraft.getStackAt(i).getItem().getImLink();\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(lienIm);\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\tcIHM.affichageUncraft(listeUncraft);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tstackTemp = model.putInUncraftSlot(stackTemp);\n\t\t\t\t\t\t\t\tArrayList<String> listeUncraft = new ArrayList<String>();\n\t\t\t\t\t\t\t\tfor(int i=0;i<9;i++) {\n\t\t\t\t\t\t\t\t\tif(model.tableDeCraft.getStackAt(i) == null) {\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(null);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tString lienIm = model.tableDeCraft.getStackAt(i).getItem().getImLink();\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(lienIm);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*for(int i=0;i<9;i++) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(model.tableDeCraft.getStackAt(i));\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\tcIHM.affichageUncraft(listeUncraft);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1){\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//J'identifie le click de sourie\n\t\t\tif(e.getButton() == MouseButton.SECONDARY) {\n\n\t\t\t\t//J'identifie si nous cliquons dans l'inventaire\n\t\t\t\tif(id.equals(\"inventory\")||id.equals(\"inventory1\")||id.equals(\"inventory2\")) {\n\n\t\t\t\t\t//Ceci sont les coordonnées dans l'inventaire de la ou on clique, dependant si on clique sur un image ou une case vide\n\t\t\t\t\tInteger position = cIHM.coordsToPosition(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsToPosition(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstackTemp = model.putInInv(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\n\t\t\t\t\t\t//Si j'ai un item dans la main, je pose cette item dans la case clique meme s'il y a deja un item\t\t\t\t\t\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmodel.inventaireSurvie.set(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmodel.inventaireSurvie.set(position, stackTemp);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique sur la table de craft\n\t\t\t\tif(id.equals(\"table\")) {\n\n\t\t\t\t\tInteger position = cIHM.coordsInTable(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsInTable(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//Si j'ai un item dans la main, je pose cette item dans la case clique meme s'il y a deja un item\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tmodel.tableDeCraft.add(stackTemp, positionParent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmodel.tableDeCraft.add(stackTemp, position);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmodel.Craft();\n\t\t\t\t\tresultat = model.resultatCraft.getMatrix()[0];\t\t\t\t\t\n\t\t\t\t\tif(resultat != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.cIHM.afficheResult(resultat.getItem().getImLink());\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t//Je regarde si on clique dans l'inventaire creatif\n\t\t\t\tif(id.equals(\"inventory_crea\")) {\n\t\t\t\t\t//Et si on clique sur un image\n\t\t\t\t\tif (sourceTarget instanceof ImageView) {\n\t\t\t\t\t\tImageView iv = (ImageView) sourceTarget;\n\t\t\t\t\t\tString[] lienT = iv.getId().split(\"[\\\\.]\");\n\t\t\t\t\t\tString[] lienT2 = lienT[0].split(\"img_\");\n\t\t\t\t\t\tString lien = lienT2[1];\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t//Si on a pas d'item en main, ca nous mettra un l'item en main\n\t\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Sinon l'item dans notre main est remplacer\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Je regarde si on clique dans la case du table de uncraft\n\t\t\t\tif(id.equals(\"case\")) {\n\t\t\t\t\t//System.out.println(\"TEST\");\n\t\t\t\t\t//System.out.println(sourceTarget.getId());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(source.getParent().getId().equals(\"anchorResult1\")) {\n\t\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\t\tmodel.resultatCraft.add(stackTemp, 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmodel.resultatCraft.add(stackTemp, 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmodel.Uncraft();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1){\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(e.getButton() == MouseButton.MIDDLE) {\n\n\t\t\t\t//J'identifie si nous cliquons dans l'inventaire\n\t\t\t\tif(id.equals(\"inventory\")||id.equals(\"inventory1\")||id.equals(\"inventory2\")) {\n\n\t\t\t\t\t//Ceci sont les coordonnées dans l'inventaire de la ou on clique, dependant si on clique sur un image ou une case vide\n\t\t\t\t\tInteger position = cIHM.coordsToPosition(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsToPosition(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//J'efface l'item dans la case clique\n\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tmodel.inventaireSurvie.set(positionParent, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique sur la table de craft\n\t\t\t\tif(id.equals(\"table\")) {\n\n\t\t\t\t\tInteger position = cIHM.coordsInTable(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsInTable(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\n\n\t\t\t\t\t//Je supprime l'item a la case clique\n\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\tmodel.tableDeCraft.add(null, positionParent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmodel.Craft();\n\t\t\t\tresultat = model.resultatCraft.getMatrix()[0];\n\t\t\t\tif(resultat != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.cIHM.afficheResult(resultat.getItem().getImLink());\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique dans la case du table de uncraft\n\t\t\t\tif(id.equals(\"case\")) {\n\t\t\t\t\t//System.out.println(\"TEST\");\n\t\t\t\t\t//System.out.println(sourceTarget.getId());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(source.getParent().getId().equals(\"anchorResult1\")) {\n\t\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\t\tmodel.resultatCraft.add(null,0);\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\tcatch(Exception e1){\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t\tmodel.Craft();\n\t\tmodel.resultatCraft.add(null, 0);\n\t\tif(stackTemp == null) {\n\t\t\titemEnMain = false;\n\t\t}\n\t\telse {\n\t\t\titemEnMain= true;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\ttoggleFullSceen();\n\t\t\t}", "private void pressedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Set the first point in the tool */\r\n nodeTool.setFirstPoint(e.getPoint());\r\n }\r\n }", "private void hierarchyMouseClicked(java.awt.event.MouseEvent evt) {\n nodeSelected = setNode(evt);\n if(nodeSelected) {\n System.out.println(\"Hierarchy Mouse Clicked: \" + selectedNode.toString());\n if(isLeafNode) System.out.println(\"Leaf Node\");\n } else {\n System.out.println(\"Hierarchy Mouse Clicked: failure\");\n }\n \n }", "public void mousePressed(MouseEvent e) {\r\n nodeUnderMouse = findNearbyNode(e.getX(),e.getY());\r\n }", "@Override\r\n\tpublic void onMouseDown(Widget who, int x, int y) {\n\r\n\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }", "public void mouseClicked(MouseEvent e) {\r\n if (e.getButton() == MouseEvent.BUTTON3) {\r\n rectangle = null;\r\n uncolorNodes(selectedIds);\r\n } else if (e.getButton() == MouseEvent.BUTTON1) {\r\n rectangle = new Rectangle(e.getPoint(), new Dimension(1, 1));\r\n colorSelectedNodes();\r\n }\r\n }", "@Override\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tmouseLastX = e.getX();\n\t\t\t\tmouseLastY = e.getY();\n\t\t\t\tif (viewState.get() == ViewState.CLOSED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_PRESSED){\n\t\t\t\t\t\n\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\t\tm.setTop(getSelection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getEventType() == MouseEvent.MOUSE_DRAGGED) {\n\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\t\tgetSelection().setCenterX(e.getX());\n\t\t\t\t\t\t\tgetSelection().setCenterY(e.getY());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (e.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\t\t\tif(getSelection().getType() == ShapeType.CIRCLE) {\n\t\t\t\t\t\t\t\tgetSelection().setRadius(getSelection().getRadius() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tgetSelection().setWidth(getSelection().getWidth() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t\tgetSelection().setHeight(getSelection().getHeight() + 0.25 * (e.getY() - getSelection().getCenterY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_CLICKED) {\n\t\t\t\t\tif (e.getButton().equals(MouseButton.PRIMARY)){\n\t\t\t\t\t\tswitch (e.getClickCount()) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif (getSelection() == null) {\n\t\t\t\t\t\t\t\tsetSelection(m.add(defaultS.getType(), e.getX(), e.getY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\t\t\tapplication.goToCD(getSelection());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t public void handle(MouseEvent mouseEvent) {\n\t\t \tif(mouseEvent.getButton() == MouseButton.PRIMARY && mouseEvent.getClickCount() == 2){\n\t\t \t\tfinal AbstractEntity entity = getTreeElement();\n\t\t\t\t\trightContainerFillListener.setupRightContainer(entity);\n\t\t }\n\t\t \t//Rechtsclick Mouse\n\t\t \tif(mouseEvent.getButton() == MouseButton.SECONDARY){\n\t\t \t\tcontextMenu.updateItems(getTreeElement());\n\t\t \t}\n\t\t }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n \tpublic void itemClicked(VisualItem item, MouseEvent e) {\n currentPoint = e.getPoint();\n \t\tif (SwingUtilities.isRightMouseButton(e)) {\n \t\t\tclickedItem = item;\n\n \t\t\tif (item instanceof NodeItem) {\n \t \t\tnodePopupMenu.show(e.getComponent(), e.getX(), e.getY());\n \t\t\t}else if(item instanceof EdgeItem){\n edgePopupMenu.show(e.getComponent(), e.getX(), e.getY());\n }\n\n \t\t} else if (SwingUtilities.isLeftMouseButton(e)) {\n \t\t\tif (item instanceof NodeItem) {\t//a node was clicked\n \t\t\t\tswitch (action) {\n\t\t\t\t\tcase 1:\t//\tcreate a node\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\t//\tcreate an edge\n \t\t\t\t\tcreatingEdge = true;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\t//\trename node\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n \t\t\t}\n \t\t}\n \t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n public void handle(MouseEvent event) {\n }", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mouseClicked(MouseEvent event){}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void handle(MouseEvent event) {\n if( tradeBankGroup.isVisible() || domesticTradeGroup.isVisible())\n return;\n settlement_selected_rectangle.setVisible(false);\n city_selected_rectangle.setVisible(false);\n road_selected_rectangle.setVisible(true);\n \n construct_type = Construction_type.ROAD;\n }", "void clickOnWarehouse(Node warehouse);", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void handle( MouseEvent e)\n {\n if( tradeBankGroup.isVisible() || domesticTradeGroup.isVisible())\n return;\n System.out.println(\"Attempt to build edge at index \" + index);\n // Line l = (Line) e.getSource();\n // l.setStroke(Color.RED);\n \n if( construct_type == Construction_type.ROAD){\n if( mainController.buildRoad(index) ){\n Line l = (Line) e.getSource();\n l.setStroke(mainController.getCurrentPlayerColor());\n refreshResources();\n refreshScores();\n }\n }\n \n }", "public void handle(MouseEvent event)\n {\n\n System.out.println(event.getEventType().getName());\n if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {\n xs = event.getX();\n ys = event.getY();\n }else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED){\n if (currentShapeNode != null) {\n canvas.getChildren().remove(currentShapeNode);\n shapeList.remove(currentShapeNode);\n }\n switch (shapeInfo) {\n case 1 : {\n xe = event.getX();\n ye = event.getY();\n currentShapeNode = new Rectangle(xs, ys, xe-xs, ye-ys);\n currentShapeNode.setFill(selectedColor);\n break;\n }\n case 2 : {\n xe = event.getX();\n ye = event.getY();\n double radius = Math.sqrt(Math.pow(xe-xs, 2) + Math.pow(ye-ys, 2));\n currentShapeNode = new Circle(xs, ys, radius);\n currentShapeNode.setFill(selectedColor);\n break;\n }\n case 3 : {\n xe = event.getX();\n ye = event.getY();\n double angle = Math.atan2(-(ys-ye), xe-xs);\n double length = Math.toDegrees(angle);\n Arc arc = new Arc(xs, ys, xe, xe/2, 0, length);\n arc.setType(ArcType.ROUND);\n currentShapeNode = arc;\n currentShapeNode.setFill(selectedColor);\n\n break;\n }\n default: break;\n }\n shapeList.add(currentShapeNode);\n canvas.getChildren().add(currentShapeNode);\n }else if (event.getEventType() == MouseEvent.MOUSE_RELEASED) {\n currentShapeNode = null;\n }\n\n event.consume();\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "@Override\n public void mouseClicked(MouseEvent e) {\n \n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "@Override\r\n public void mouseClicked(MouseEvent e) {}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void mouseClicked( MouseEvent event ){}", "void clickOnEmptyNode(Node node);", "@Override\r\n public void mouseClicked(MouseEvent e) {\n\r\n }", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t// find and set the coordinates of the current click\n\t\t\t_gridPanel.selected(e.getX(), e.getY());\n\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "public void dockNodeWindowed(DockNodeEvent e) {}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}" ]
[ "0.68606836", "0.68005145", "0.6735146", "0.64702827", "0.6466782", "0.63687265", "0.63369966", "0.63274133", "0.63105136", "0.62545395", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.6252433", "0.62475324", "0.62382114", "0.6149488", "0.6149405", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.61450493", "0.6143291", "0.6133561", "0.6133457", "0.6123787", "0.6118122", "0.61129653", "0.61122674", "0.6106418", "0.60984683", "0.60984683", "0.60984683", "0.6096924", "0.6096924", "0.60908175", "0.6084061", "0.60811466", "0.60811466", "0.6081102", "0.6081102", "0.6081102", "0.6079999", "0.6079637", "0.6068357", "0.60521346", "0.60521346", "0.60521346", "0.60521346", "0.60509604", "0.60501945", "0.6049586", "0.6046843", "0.60400957", "0.6033087", "0.6028195", "0.6027859", "0.6027859", "0.6027859", "0.6027859", "0.6027859", "0.6027859", "0.6027859", "0.60278076", "0.60256225", "0.6025545", "0.6024008", "0.6021421", "0.6021421", "0.6021421", "0.6021421", "0.6021421", "0.6021421", "0.6021421", "0.6021421", "0.6018594", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459", "0.6018459" ]
0.7732041
0
us the display function
public static void display(){ //create an array : Remember positions //wheat= 0 //Land = 1 //Population = 2 String[] items = {"Wheat", "Land", "Population"}; // call the crops object Crops theCrops = Game.getCrop(); //get wheat int wheat = theCrops.getWheatInStore(); //get land (acres) int acres = theCrops.getAcres(); //get population int population = theCrops.getPopulation(); //print results System.out.println("\nInventory List:"); //wheat System.out.println("Wheat in Store:" + wheat + " bushels of " + items[0]); //acres System.out.println("Acres of Land owned:" + acres + " acres of " + items[1]); //population System.out.println("Current population:" + population + " people in the " + items[2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void display() {\n\t\t\n\t}", "public void display() {\n\t\t\n\t}", "protected abstract String display();", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "public void display()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}", "public void display() {\n\t}", "public String display();", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "protected void display() {\n\r\n\t}", "public void display() {\n System.out.println(toString());\n }", "public abstract String display();", "@Override\r\n\tpublic void display() {\n\r\n\t}", "abstract public void display();", "public void display();", "public void display();", "@Override\n public void display() {\n display.display();\n }", "@Override\n public void display() {\n\n }", "private void display(Object a) {\r\n System.out.print(a.toString());\t\r\n }", "public void display() {\n\t\tSystem.out.println(\"display..\");\n\t}", "public abstract void display();", "public abstract void display();", "void display() {\r\n\t\tSystem.out.println(id + \" \" + name);\r\n\t}", "public void display()\n\t{\n\t\tSystem.out.println(data+\" \");\n\t}", "void display(){\n System.out.println(\"Name:\"+name);\n System.out.println(\"Age:\"+age);\n System.out.println(\"Faculty:\"+faculty);\n System.out.println(\"Department:\"+department);\n System.out.println(\"IsHandicapped:\"+isHandicapped);\n }", "void display(){\n\t \t\r\n\t \t\r\n\t \tSystem.out.println(\"Student id :\" +id);\r\n\t \t //system : system is a class in java language.lang package\r\n\t\t \t//out : out is the static member of system class.It's type PrintStream\r\n\t\t \t//println: which is used to print the output.\r\n\t \tSystem.out.println(\"Student name: \" +name);\r\n\t \t //system : system is a class in java language.lang package\r\n\t\t \t//out : out is the static member of system class.It's type PrintStream\r\n\t\t \t//println: which is used to print the output.\r\n\t \tSystem.out.println(\"Student marks: \" +marks);\r\n\t \t //system : system is a class in java language.lang package\r\n\t\t \t//out : out is the static member of system class.It's type PrintStream\r\n\t\t \t//println: which is used to print the output.\r\n\t \t\r\n\t \t}", "void display()\r\n\t {\n\t System.out.println(\"a = \" + a + \" b = \" + b);\r\n\t }", "public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }", "public void display() {\n\t\tSystem.out.println(x + \" \" + y + \" \" + z);\n\t}", "void display() {\n System.out.println(id + \" \" + name);\n }", "void display()\n\t {\n\t\t System.out.println(\"Student ID: \"+id);\n\t\t System.out.println(\"Student Name: \"+name);\n\t\t System.out.println();\n\t }", "public void display () {\n System.out.println(rollNo + \" \" + name + \" \" + college );\n }", "void display();", "void display();", "void display();", "public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }", "public void display() {\n\t\tSystem.out.println(\"[\" + recDisplay(head) + \"]\");\n\t}", "void display() {\n System.out.println(\"============================================================================================\");\n System.out.println(\"Name of the book:: \" + Bname);\n System.out.println(\"Price of the book:: Rs \" + price);\n System.out.println(\"============================================================================================\");\n }", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"Displaying...\");\r\n\t}", "public void display(){\r\n System.out.println(\"The Vacancy Number is : \" + getVacancyNumber());\r\n System.out.println(\"The Designation is : \" + getDesignation());\r\n System.out.println(\"The Job Type is : \" + getJobType());\r\n }", "void display() {\n System.out.println(id + \" \" + name + \" \" + age);\n }", "public void Display(){\n System.out.println(a);\n }", "OperationDisplay display();", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "public void display(){\n System.out.println(\"\\n Car 2:\");\n System.out.println(toString());\n }", "public void display()\n\t{\n\t\tSystem.out.println(\"Bike No.\\t\"+\n\t\t\t\t\"Phone no.\\t\"+\n\t\t\t\t\"Name\\t\"+\n\t\t\t\t\"No. of days\\t\"+\n\t\t\t\t\"Charge\");\n\t\tSystem.out.println(bno+\n\t\t\t\t\"\\t\"+phno+\n\t\t\t\t\"\\t\"+name+\n\t\t\t\t\"\\t\"+days+\n\t\t\t\t\"\\t\"+charge);\n\t}", "public void display(String result);", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(name);\n\t}", "@Override\r\n\tpublic void display() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"Im a mallard Duck!\");\r\n\t}", "public void display() {\n\tSystem.out.println(\"student id is \"+studentid+\"\\t\"+\"student name is \"+studentName+\"\\t\"+\"marks is \"+marks);\r\n}", "public void display() {\n System.out.println(\"Title: \" + this.title);\n System.out.println(\"Description: \" + this.des);\n System.out.println(\"Price Per Night: $\" + this.price);\n System.out.println(\"Max Guests: \" + this.guests);\n System.out.println(\"Length of stay: \" + this.days + \" days\");\n System.out.println(\"Total for stay: $\" + this.total);\n System.out.println(\"-----------------------------------\");\n }", "@Override\r\n public void display() { //implements abstract display() method from Division.java\r\n System.out.println(\"Division Name: \" + getDivisionName());\r\n System.out.println(\"Account Number: \" + getAccountNumber());\r\n\r\n System.out.println(\"Country: \" + getCountry());\r\n System.out.println(\"Language Spoken: \" + getLanguageSpoken() + \"\\n\");\r\n\r\n }", "public void display() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(a[i] + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void display() {\n\t\tSystem.out.println(\"do something...\");\n\t}", "public void display() {\n\t\tSystem.out.print(\"\\nPC \");\n\t\tmPC.display(true);\n\t\tSystem.out.print(\" \");\n\n\t\tSystem.out.print(\"IR \");\n\t\tmPC.display(true);\n\t\tSystem.out.print(\" \");\n\n\t\tSystem.out.print(\"CC \");\n\t\tmCC.display(true);\n\t\tSystem.out.println(\" \");\n\n\t\tfor (int i = 0; i < MAX_REGISTERS; i++) {\n\t\t\tSystem.out.printf(\"R%d \", i);\n\t\t\tmRegisters[i].display(true);\n\t\t\tif (i % 3 == 2) {\n\t\t\t\tSystem.out.println();\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < MAX_MEMORY; i++) {\n\t\t\tSystem.out.printf(\"%3d \", i);\n\t\t\tmMemory[i].display(true);\n\t\t\tif (i % 3 == 2) {\n\t\t\t\tSystem.out.println();\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t}", "public void display()\n {\n System.out.println(�\\n The elements are�);\n for(int i=0; i<n; i++)\n System.out.println(� �+a[i]);\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Hyunjun\");\n\t}", "public void display() {System.out.println(skaitlis);}", "public void displayData();", "public void display(){\n System.out.println(\"I am a mallard duck\");\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"콘텐츠화면이 출력되었습니다\");\n\t}", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"RedHeadDuck\");\r\n\t}", "@Override\n public String toString() {\n return displayString;\n }", "public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getCommunicability()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getInitiative()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getOrganizationalAbilities())\n );\n }", "public void display()\r\n {\r\n recursiveDisplay(head);\r\n }", "public void Display() {\n\t\tSystem.out.println(Integer.toHexString(PID) + \"\\t\" + Integer.toString(CreationTime) + \"\\t\"+ Integer.toHexString(CommandCounter) + \"\\t\" + ProcessStatus.toString() \n\t\t+ \"\\t\" + Integer.toString(MemoryVolume) + \"\\t\" + Integer.toHexString(Priority) + \"\\t\" + ((MemorySegments != null)? MemorySegments.toString() : \"null\"));\n\t}", "@Override\n\tpublic void display() {\n\t\tInterface1.super.display();\n\t}", "public void display() {\n String box = \"\\n+--------------------------------------------+\\n\";\n String header = \"| \" + name;\n String lvlStat = \"Lv\" + level;\n for (int i=0; i<42-name.length()-lvlStat.length(); i++) {\n header += \" \";\n }\n header += lvlStat + \" |\\n\";\n System.out.println(box + header + \"| \" + getHealthBar() + \" |\" + box);\n }", "public void display() {\n\t\tSystem.out.println(\"none static display() called\");\n\t}", "public interface Display {\n\t/**\n\t * Function name : Display \n\t * Parameters : game Board. \n\t * Return value : None.\n\t * General flow : Displays the game board.\n\t */\n\tpublic void DisplayBoard(Board bord);\n\t\n\t/**\n\t * Function name : DisplayMessage \n\t * Parameters : A string. \n\t * Return value : None. \n\t * General flow : Displays the massage to the player.\n\t */\n\tpublic void DisplayMessage(String massage);\n\t\n\t/**\n\t * Function name : getNum\n\t * Parameters : None. \n\t * Return value : A number (int).\n\t * General flow : Gets a number from the user, and return itS.\n\t */\n\tpublic int getNum();\n}", "public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }", "public abstract void displayInfo();", "public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}", "public void displayWord() {\n System.out.println(String.valueOf(display));\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(menuTitle);\n\t\tfor(int i=1; i<menuArr.length; i++)\n\t\t{\n\t\t\tSystem.out.printf(\"%d.%s \", i, menuArr[i]);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"¼±Åà : \");\n\t\tint num = scan.nextInt();\n\t\tdata.number = num;\n\t\t\n\t}", "public void display() {\n\t\tdisplayColumnHeaders();\n\t\taddHyphens();\n\t\tfor (int row = 0; row < 3; row++) {\n\t\t\taddSpaces();\n\t\t\tSystem.out.print(\" row \" + row + ' ');\n\t\t\tfor (int col = 0; col < 3; col++)\n\t\t\t\tSystem.out.print(\"| \" + getMark(row, col) + \" \");\n\t\t\tSystem.out.println(\"|\");\n\t\t\taddSpaces();\n\t\t\taddHyphens();\n\t\t}\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}", "public void display()\n {\n for (int i = 0; i < length; i++)\n {\n System.out.print(list[i] + \" \");\n }\n\n System.out.println();\n }", "@AutoEscape\n\tpublic String getDisplay();", "public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }", "void display(DisplayInfo info, Coordinates position, Graphics2D g, ImageObserver io);", "@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}", "public void display () {\n super.display ();\n if (joined == true) {\n System.out.println(\"Staff name: \"+staffName+\n \"\\nSalary: \"+salary+\n \"\\nWorking hour: \"+workingHour+\n \"\\nJoining date: \"+joiningDate+\n \"\\nQualification: \"+qualification+\n \"\\nAppointed by: \"+appointedBy);\n }\n }", "@Override\n\tpublic int display() {\n\t\treturn 0;\n\t}", "public void display() {\r\n\t\tNode curr = new Node();\r\n\t\tcurr = head;\r\n\t\tString Output = \"Here is the linked list from the head node till the end\";\r\n\t\twhile (curr != null) {\r\n\t\t\tOutput += \"\\n\" + curr.num + \", \" + curr.str;\r\n\t\t\tcurr = curr.next;\r\n\t\t}\r\n\t\tSystem.out.print(Output);\r\n\t}", "public void displayNode() // display ourself\n\t{\n\t\tSystem.out.print('{');\n\t\tSystem.out.print(iData);\n\t\t\n\t\tSystem.out.print(\"} \");\n\t}", "public void display(){\n\t\tSystem.out.print(programGrade + \" \" + examGrade );\n\t\t\n\t\t\n\t}", "public void displayValues()\n {\n \tSystem.out.println(\"The name of a bicycle is \"+name);\n \tSystem.out.println(\"The cost of a bicycle is \"+cost);\n \tSystem.out.println(\"The total numer of gears \"+gears);\n \t\n \t\n }", "String getDisplayText();", "public void display(){\n \tfor(int i=0;i<size;i++){\n \tSystem.out.print(elements[i]+\" \");\n \t}\n\t}", "public void display() {\n\t\tSystem.out.println(\" ---------------------------------------\");\n\t\t\n\t\tfor (byte r = (byte) (b.length - 1); r >= 0; r--) {\n\t\t\tSystem.out.print(r + 1);\n\t\t\t\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tSystem.out.print(\" | \" + b[r][c]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\" |\");\n\t\t\tSystem.out.println(\" ---------------------------------------\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" a b c d e f g h\");\n\t}", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "private void diplay() {\n\t\tSystem.out.println(new StringBuilder(HUMIDITY_CONSTANT + humidity + TEMPRETURE_CONSTANT + temp\n\t\t\t\t+ PRESSURE_CONSTANT + pressure));\n\n\t}", "public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}", "public void display(Grid grid) {\n super.display(grid, \"C\");\n// super.displayPath(grid);\n }" ]
[ "0.84901166", "0.84901166", "0.82829183", "0.8246834", "0.8246834", "0.82424724", "0.81945217", "0.81945217", "0.8188135", "0.8181135", "0.81049055", "0.81049055", "0.81049055", "0.80437315", "0.8041346", "0.7971157", "0.79661095", "0.7963681", "0.79353565", "0.79353565", "0.78320605", "0.7807607", "0.78066397", "0.7792059", "0.7767618", "0.7767618", "0.7750448", "0.7743279", "0.7734503", "0.7717859", "0.7691997", "0.7650598", "0.76488453", "0.76464874", "0.764522", "0.76085395", "0.76024306", "0.76024306", "0.76024306", "0.75674075", "0.7557365", "0.7529473", "0.75196016", "0.75187874", "0.75022453", "0.7458926", "0.7448143", "0.737754", "0.73626876", "0.7359886", "0.73442966", "0.7337196", "0.7336271", "0.73228854", "0.7288145", "0.7285961", "0.7284833", "0.7266296", "0.72366285", "0.722298", "0.7209623", "0.7195754", "0.7179605", "0.7177996", "0.7175916", "0.7156167", "0.7137074", "0.7123449", "0.71152425", "0.7113941", "0.71082926", "0.7107904", "0.71040726", "0.70912033", "0.7078079", "0.7049894", "0.70400393", "0.7037076", "0.7033985", "0.7028567", "0.70264715", "0.7000119", "0.6992493", "0.69841766", "0.697501", "0.69724524", "0.69712657", "0.69712657", "0.69532764", "0.6951807", "0.6948717", "0.6946938", "0.6925961", "0.6922026", "0.69214475", "0.69178104", "0.6912674", "0.69091773", "0.6906321", "0.6898524", "0.6892757" ]
0.0
-1
Handles the event and performs operations on the players and the board
@Override public void handleEvent(Player affectedPlayer, Player[] players, Board board) { // Current fixed implementation for salary 200, can change for a constant read from map if (targetSpace.getIndex() < affectedPlayer.getCurrentSpace().getIndex() && canCollectSalary) { affectedPlayer.setMoney(affectedPlayer.getMoney() + 200 + affectedPlayer.getToken().getSalaryChange()); } affectedPlayer.setJailed(true); affectedPlayer.setCurrentSpace(targetSpace); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onClickHandler(MouseEvent e) {\n Circle source = (Circle) e.getSource();\n int selectColumnIndex = GridPane.getColumnIndex(source);\n // Display the move of Player on the Grid, and registered that move to the Game logic\n checkCircle(selectColumnIndex);\n client.getHumanPlayer().play((byte) selectColumnIndex);\n // Check if player's move is a winning move. 1 mean player\n if (client.getHumanPlayer().getGame().playerHasWon((byte) 1)) {\n playerWinCounter++;\n playerCounter.setText((Integer.toString(playerWinCounter)));\n winDisplay.setText(\"YOU WON THE MATCH.\\nClick Reset to replay, , or Quit to Close the Game\\n\");\n // Disable the Grid so user Cannot continue after they won\n grid.setDisable(true);\n // Exit the method\n return;\n } // --------------------- \\\\\n // If the last move from Player is NOT a winning move, send the Player's move to server \n else {\n // Disable the Grid so user cannot make move while waiting for AI to respond\n grid.setDisable(true);\n try {\n serverPackage = client.sendAndReceive(client.getSocket(), client.getPackage(), 1, selectColumnIndex);\n } catch (IOException error) {\n System.out.println(\"There is an error while trying to send the Client move to server: \" + error + \"\\n\");\n }\n }\n\n // Get the move from the server\n int serverMove = client.checkPackage(serverPackage);\n // Display the move of AI on the Grid, and registered that move to the Game logic\n checkCircle(serverMove);\n client.getGame().getBoard().insertToken((byte) serverMove, (byte) 2);\n // Check if AI's move is a winning move. 2 mean AI\n if (client.getHumanPlayer().getGame().playerHasWon((byte) 2)) {\n AIwinCounter++;\n aiCounter.setText(Integer.toString(AIwinCounter));\n winDisplay.setText(\"COMPUTER WON THE MATCH.\\nClick Reset to replay, or Quit to Close the Game\");\n grid.setDisable(true);\n // Exit the method\n return;\n }\n\n // If 42 moves have been made, and noone win, then it's a draw\n if (client.getGame().isDraw()) {\n winDisplay.setText(\"IT IS A DRAW.\\nClick Reset to replay, or Quit to Close the Game\");\n grid.setDisable(true);\n // Exit the method\n return;\n }\n // Enable the Grid again so User can Play\n grid.setDisable(false);\n }", "@Override\n public void handle(Event event) {\n secondPlayer();\n }", "@Override\r\n\tpublic void onBoardEvent(BoardEvent e) {\n\t\tif(e.getId() == BoardEvent.CAPTURE || e.getId() == BoardEvent.DROP){\r\n\t\t\tselected = -1;\r\n\t\t\tb.selectedFromHand(selected);\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t\telse if(e.getId() == BoardEvent.TURN_END){\r\n\t\t\tplayer = player^1;\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}", "public void actionPerformed(ActionEvent event)\n {\n int row, col;\n // Check which button is clicked column by column\n for (col = 0; col < COLUMNS; col++ )\n {\n if (event.getSource() == drop[col])\n {\n // Disable all buttons to prevent the player put another chess\n disable();\n // Send the index of the clicked column to the other client\n theClient.sendInt(col);\n // Find the unoccupied row from bottom to up to put the chess on\n for (row = ROWS - 1; row >= 0; row-- )\n {\n if (chessBoard[row][col] == 0)\n {\n break;\n }\n }\n // Put the chess from the player on the board\n chessBoard[row][col] = player;\n grid[row][col].setIcon(new ImageIcon(playerURL));\n // Check whether the player wins\n // If the other player wins, show the message dialog and tell the\n // player \"You win\".\n // Then exit the system, terminate the game.\n if (win(row, col, player))\n {\n out.println(\"Win.\");\n JOptionPane.showMessageDialog(null, \"You win.\");\n System.exit(0);\n }\n // Else if the chess board is full, tie\n // Show the message dialog and tell the player \"Tie\".\n // Then exit the system, terminate the game.\n else if (full())\n {\n out.println(\"Tie.\");\n JOptionPane.showMessageDialog(null, \"Tie.\");\n System.exit(0);\n }\n // Else continue the game\n else\n {\n out.println(\"Continue.\");\n }\n break;\n }\n }\n }", "public void run(){\n //make sure user enters valid number of players\n if((numTotalPlayers < 1) || (numTotalPlayers > 8)){\n view.showErrorPopUp(\"Invalid input, please enter a player number from 2 to 8\");\n System.out.println(\"Please enter a number from 2 to 8\");\n System.exit(0);\n }\n \n //creates the player queue with diff values according to num players\n players = initPlayers();\n\n // init and show board and currentPlayer\n board.resetBoard();\n startNewTurn();\n view.show(); // show view as last step of run()\n\n if (numTotalPlayers == numComputerPlayers) { // if all players are computers, trigger doComputerTurn()\n view.showErrorPopUp(\"The board is excited to have all computer players, so it's about to shake things up, like it's dancing! \\n\\nWARNING: do not run the program with all of the players as computer players if you have epilepsy as the colors of the game are about to flash on-screen during the whole game.\");\n doComputerTurn();\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = 0, col = 0;\n gridLocationFinder:\n for (row = 0; row < 3; row++) {\n for (col = 0; col < 3; col++) {\n if (e.getSource() == gridButtons[row][col])\n break gridLocationFinder; // break out of outer loop using labelled break\n }\n }\n if (gameModel.setCell(row, col, gameModel.currentPlayer())) // legal\n {\n JButton buttonPressed = (JButton) e.getSource();\n buttonPressed.setText(gameModel.currentPlayer().toString());\n buttonPressed.setEnabled(false); // disable pressing again\n\n // check for gameOver...display game over in statusBar or whose turn it now is\n statusBar.setText(gameModel.currentPlayer().toString());\n }\n\n }", "public void runTheGame() {\n\t\txPlayer.setOpponent(oPlayer);\n\t\toPlayer.setOpponent(xPlayer);\n\t\tboard.display();\n\t\txPlayer.play();\n\t}", "public void handleEvent(GameEvent<S, A> e) {\n\t\t\r\n\t\tif (playerId == e.getState().getTurn() && !game.isFinished()){\r\n\t\t\tif (playerMode != PlayerMode.manual && (e.getType() == GameEvent.EventType.Info || e.getType() == GameEvent.EventType.Change)) {\r\n\t\t\t\tdecideMakeAutomaicMove();\r\n\t\t\t}\r\n\r\n\t\t\telse if (e.getType() == GameEvent.EventType.Start){\r\n\t\t\t\tif (playerMode == PlayerMode.random) makeRandomMove();\r\n\t\t\t\telse if (playerMode == PlayerMode.smart) makeSmartMove();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void HandleOnMoveStart(Board board, Piece turn){}", "public boolean movePiece(int player, int from, int to) {\n\n int piece = players.get(player).getPiece(from);\n\n // PIECELISTENER : Throw PieceEvent to PieceListeners\n for (PieceListener listener : pieceListeners) {\n PieceEvent pieceEvent = new PieceEvent(this, player, piece, from, to);\n listener.pieceMoved(pieceEvent);\n }\n\n if (piece != -1) {\n //last throw was a 6, but player is in starting position\n //end of turn\n if (this.lastThrow == 6 && players.get(player).inStartingPosition() && from == 0) {\n // PLAYERLISTENER : Trigger playerEvent for player that is WAITING\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, players.get(player).getColour(), PlayerEvent.WAITING);\n listener.playerStateChanged(event);\n }\n this.setNextActivePlayer();\n }\n //player didn't throw a 6\n //end of turn\n if (this.lastThrow != 6) {\n // PLAYERLISTENER : Trigger playerEvent for player that is WAITING\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, players.get(player).getColour(), PlayerEvent.WAITING);\n listener.playerStateChanged(event);\n }\n this.setNextActivePlayer();\n }\n\n //Resets the tower info when a tower is split\n if (players.get(player).getPieces().get(piece).towerPos != -1) {\n players.get(player)\n .getPieces()\n .get(piece)\n .setTower(-1);\n\n for (Piece piece2 : players.get(player).pieces) {\n if (piece2.position == from) {\n piece2.setTower(-1);\n }\n }\n }\n\n //Sets tower info when a tower is made\n for (Piece piece2 : players.get(player).pieces) {\n if (piece2.position == to) {\n //Both pieces become a tower\n piece2.setTower(piece2.position);\n players.get(player)\n .getPieces()\n .get(piece)\n .setTower(to);\n }\n }\n\n //move piece\n players.get(player)\n .getPieces()\n .get(piece)\n .setPosition(to);\n\n //set piece to in play\n if (to > 0 && to < 59) {\n players.get(player)\n .getPieces()\n .get(piece)\n .setInPlay(true);\n }\n\n checkIfAnotherPlayerLiesThere(player, to);\n\n if (to == 59) {\n\n if (players.get(player).pieceFinished()) {\n this.status = \"Finished\";\n getWinner();\n }\n }\n\n return true;\n } else {\n //doesn't work\n return false;\n }\n\n }", "protected void processPlayerArrived(String name) {\n Player player = tournamentService.findPlayer(name);\n if (player == null) {\n alertManagers(\"Arriving player {0} is on my notify list, but I don''t have him in the tournament roster.\", name);\n return;\n }\n player.setState(PlayerState.WAITING);\n Game game = tournamentService.findPlayerGame(player);\n if (game == null) return;\n if (game.status.isFinished()) return;\n if (loggingIn) {\n \tcommand.sendCommand(\"observe {0}\", name);\n } else {\n tellManagers(\"{0} arrived. Reserving board {1}.\", name, game.boardNumber);\n }\n command.sendAdminCommand(\"spoof {0} tell JudgeBot nowin\", game.whitePlayer);\n command.sendAdminCommand(\"spoof {0} tell JudgeBot nowin\", game.blackPlayer);\n command.sendAdminCommand(\"set-other {0} kib 0\", game.blackPlayer);\n command.sendAdminCommand(\"set-other {0} kib 0\", game.whitePlayer);\n command.sendAdminCommand(\"reserve-game {0} {1}\", game.whitePlayer, game.boardNumber);\n command.sendAdminCommand(\"reserve-game {0} {1}\", game.blackPlayer, game.boardNumber);\n if (game.status.isAdjourned()) {\n command.sendAdminCommand(\"spoof {0} match {1}\", game.whitePlayer, game.blackPlayer);\n command.sendAdminCommand(\"spoof {0} match {1}\", game.blackPlayer, game.whitePlayer);\n }\n }", "public void actionPerformed(ActionEvent e) \n {\n JFrame dialogBox;\n \n // Use a nested for loop to loop through the buttons and find which\n // one was clicked.\n for (int row = 0; row < 15; row++) \n {\n for (int col = 0; col < 15; col++) \n {\n // If the button is valid, continue, otherwise, show an error.\n if (_self[row][col] == e.getSource() && \n _self[row][col].getBackground() == Color.WHITE)\n {\n dialogBox = new JFrame();\n \n // Display a coordinate message.\n JOptionPane.showMessageDialog(dialogBox, \n \"Coordinates: \" + row + \", \" + col, \n \"Button Coordinates\", JOptionPane.INFORMATION_MESSAGE);\n \n // Needs to know which player to use, we also need to change the color of the selected cell based off of response\n boolean result = _currentPlayer.takeATurn(row, col); //0 for miss 1 for hit? \n \n // KIRSTEN/NOAH HERE, Using currentPlayer, call function in Player that sets the status of color grid in the Grid class if takeATurn returns as a hit\n // Then Based on that color setbackground to Red if its a hit\n \n //works if current player is initialized \n _currentPlayer.setColorGrid(row, col, result ? Color.ORANGE : Color.WHITE);\n \n _buttonGrid[row][col].setBackground(result ? Color.ORANGE : Color.WHITE);\n \n // changeGridColor(row, col, result);\n // switchPlayer();\n }\n \n else if (_self[row][col] == e.getSource() && \n _self[row][col].getBackground() == Color.WHITE)\n {\n dialogBox = new JFrame();\n \n // Display an error message.\n JOptionPane.showMessageDialog(dialogBox, \n \"Button already chosen\", \"Invalid Button\", \n JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n }", "public void handleEvent(PlayerPosition event)\r\n {\r\n if(m_active)\r\n {\r\n String name = m_botAction.getPlayerName(event.getPlayerID());\r\n\r\n if(event.isInSafe())\r\n {\r\n int ship = m_botAction.getPlayer(event.getPlayerID()).getShipType();\r\n int freq = m_botAction.getPlayer(event.getPlayerID()).getFrequency();\r\n boolean delayExceeded = true;\r\n\r\n if(delaySeconds > 0)\r\n {\r\n long currentTime = System.currentTimeMillis();\r\n\r\n if(m_entryTimes.containsKey(name))\r\n {\r\n long entryTime = m_entryTimes.get(name);\r\n int delta = (int)(currentTime - entryTime);\r\n\r\n if(!enableMS) {\r\n // Do the delay in seconds.\r\n delta /= Tools.TimeInMillis.SECOND;\r\n }\r\n\r\n if(delta < delaySeconds)\r\n {\r\n delayExceeded = false;\r\n }\r\n else\r\n {\r\n m_entryTimes.remove(name);\r\n }\r\n }\r\n else\r\n {\r\n m_entryTimes.put(name, currentTime);\r\n delayExceeded = false;\r\n }\r\n }\r\n\r\n if(delayExceeded)\r\n {\r\n if(specPlayer)\r\n {\r\n m_botAction.spec(event.getPlayerID());\r\n m_botAction.spec(event.getPlayerID());\r\n\r\n if(!speccedMsg.equalsIgnoreCase(\"none\")) {\r\n if(speccedSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + speccedMsg, speccedSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + speccedMsg);\r\n }\r\n }\r\n\r\n if(changeShip && ship != targetShip)\r\n {\r\n m_botAction.setShip(event.getPlayerID(), targetShip);\r\n\r\n if(!shipChgMsg.equalsIgnoreCase(\"none\")) {\r\n if(shipSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + shipChgMsg, shipSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + shipChgMsg);\r\n }\r\n\r\n }\r\n\r\n if(changeFreq && freq != targetFreq)\r\n {\r\n m_botAction.setFreq(event.getPlayerID(), targetFreq);\r\n\r\n if(!freqChgMsg.equalsIgnoreCase(\"none\")) {\r\n if(freqSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + freqChgMsg, freqSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + freqChgMsg);\r\n }\r\n }\r\n }\r\n }\r\n else if(delaySeconds > 0)\r\n {\r\n m_entryTimes.remove(name);\r\n }\r\n }\r\n }", "public void game() {\n\n String method = \"game\";\n m_board = new Board();\n players = new ArrayList<>();\n m_currentTurn = 0;\n\n Intent intent = getIntent();\n\n m_manageFunds = intent.getBooleanExtra(MainActivity.MANAGE_FUNDS,false);\n\n if(m_manageFunds){\n Log.d(method, \"Application is managing funds\");\n } else {\n funds = (TextView) findViewById(R.id.funds);\n funds.setVisibility(View.INVISIBLE);\n }\n\n String player1name = intent.getStringExtra(MainActivity.PLAYER1);\n String player2name = intent.getStringExtra(MainActivity.PLAYER2);\n Player player1 = new Player(player1name);\n Player player2 = new Player(player2name);\n players.add(player1);\n players.add(player2);\n\n if(intent.getExtras().size()>4){\n String player3name = intent.getStringExtra(MainActivity.PLAYER3);\n Player player3 = new Player(player3name);\n players.add(player3);\n }\n if(intent.getExtras().size()>5){\n String player4name = intent.getStringExtra(MainActivity.PLAYER4);\n Player player4 = new Player(player4name);\n players.add(player4);\n }\n\n m_numPlayers = players.size();\n\n Log.d(method, \"*****START GAME*****\");\n Log.d(method, \"numPlayers: \" + m_numPlayers);\n\n Player current = players.get(m_currentTurn);\n int pos = current.getCurrentPosition();\n player = (TextView) findViewById(R.id.player);\n player.setText(current.getName());\n Log.d(method, \"*****IT IS \" + current.getName().toUpperCase() + \"'S TURN*****\");\n Log.d(method, \"Current Position:\" + pos + \", \" + m_board.getSquare(pos).getName());\n\n currentPosition = (TextView) findViewById(R.id.currentPosition);\n currentPosition.setText(\"Current Position: \" + pos + \", \" +\n m_board.getSquare(pos).getName());\n convertTextToSpeech(\"Start Game\" + players.get(m_currentTurn).getName() +\n \"please roll the dice\");\n\n // Initiating\n BluetoothManipulator.initiate(this);\n DiceController.initiate(developerKey);\n\n // Every time the application starts it will search for a dice\n BluetoothManipulator.registerDiceScanningListener(scanningListener);\n DiceController.registerDiceConnectionListener(connectionListener);\n DiceController.registerDiceResponseListener(responseListener);\n\n BluetoothManipulator.startScan();\n\n }", "public void onMove(Player player, Move move) {\n if (move != null) {\n //gridView.board.move(move);\n gridView.fromBoard(gridView.board);\n updateScores();\n }\n gridView.zoomOnCenter();\n gridView.redraw();\n }", "@Override\n\t public void actionPerformed(ActionEvent e) {\n\t\t isPlayerDead();\n\t\t isGameRunning();\n\n\t updatePlayer();\n\t updateCentipede();\n\t updateMissiles();\n\t\t updateMushrooms();\n\t updateSpider();\n\n\t checkCollisions();\n\t repaint();\n\t }", "@Override\n public void run() {\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != opponentPiece) {\n\n // Updating colors for profile areas:\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mPlayerUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mOpponentUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now Player should make a move:\n showGuidelines();\n mIsAllowedToPlay = true;\n\n }\n\n // Otherwise, opponent gets another turn:\n else{\n makeAIMove();\n }\n\n }\n\n else{ // Otherwise (game has ended)\n handleGameEnding();\n }\n\n }", "public void performActions(){\n GameInformation gi = this.engine.getGameInformation();\n\n if(gi.getTeam() == 0)\n this.engine.performPlayerAction(\n new MoveAction(src, dst)\n );\n\n }", "public void mousePressed(MouseEvent e) {\n //transpose the coordinates to the gameboard (each tile is 100x100 px)\n int x = (int)(e.getX() * 0.01 );\n int y = (int)(e.getY() * 0.01 );\n //if the ai isn't moving and the move is valid\n if( !timer.isRunning() && attemptMove( x, y ) ) {\n //move there\n gamepieces[x][y] = currentPlayer;\n gameFrame.repaint();\n //switch to the ai\n currentPlayer = Color.BLACK;\n timer.start();\n //the player could move\n canLastPlayerMove = true;\n }\n }", "@Override\n\tpublic void execute() {\n\t\t\n\t\tif (GamesHandler.test) {\n\t\t\tserverModel = ServerFacadeTest.getSingleton().getGameModel(gameID);\n\t\t} else {\n\t\t\tserverModel = ServerFacade.getSingleton().getGameModel(gameID);\n\t\t}\n\t\t\n\t\tPlayer player = serverModel.getPlayers().get(sender);\n\t\tDevCardList playerOldDevCards = player.getOldDevCards();\n\t\t\n\t\tplayerOldDevCards.setRoadBuilding(playerOldDevCards.getRoadBuilding() - 1);\n\t\t\n\t\tserverModel.getMap().addRoad(new Road(sender, spot1));\n\t\tserverModel.getMap().addRoad(new Road(sender, spot2));\n\t\t\n\t\tplayer.setRoads(player.getRoads() - 2);\n\t\t\n\t\tplayer.setPlayedDevCard(true);\n\t\t\n\t\tMessageLine line = new MessageLine();\n\t\tString username = player.getName();\n\t\tif(username.toLowerCase().equals(\"ife\") || username.toLowerCase().equals(\"ogeorge\")){\n\t\t\tline.setMessage(\"Ife built a couple of roads to try to catch up with Paul, but Daniel always wins anyway\");\n\t\t}\n\t\telse{\n\t\t\tline.setMessage(username + \" built a couple roads with a road building development card\");\n\t\t}\n//\t\tline.setMessage(username + \" built a couple roads with a road building development card\");\n\t\tline.setSource(username);\n\t\tserverModel.getLog().addLine(line);\n\t}", "void otherPlayerMoved()\r\n {\r\n socketWriter.println(\"OPPONENT_MOVED ,\" + getCurrentBoard());\r\n }", "public void onBoardGameOver(ObjPuyoBoard board) {\n\t\t\t\n\t\t}", "@Override\n public void receiveInfo(GameInfo info) {\n\n //only update the state if info is a game state\n if (info instanceof ShogiState) {\n\n // update our state, then display\n this.state = (ShogiState) info;\n this.myPieces = state.getBoard();\n\n if (usingRulesScreen) return;\n if (usingDropsScreen) return;\n if (usingHistoryScreen) return;\n\n\n gui = myActivity.findViewById(R.id.shogiBoard);\n gui.myPieces = this.myPieces;\n\n //finds the player's king\n int kingRow = 0;\n int kingCol = 0;\n for(int i = 0; i < 9; i++){\n for(int j = 0; j < 9; j++){\n if (myPieces[i][j] != null){\n Piece possKing = myPieces[i][j];\n if(possKing.getPlayer() == 0 &&\n possKing.getType() == Piece.PieceType.KING){\n kingRow = i;\n kingCol = j;\n }\n }\n }\n }\n\n //if the king is in check, notify the player\n if(state.determinePlayerInCheck(0, this.myPieces, kingRow, kingCol)){\n new AlertDialog.Builder(getTopView().getContext())\n .setTitle(\"You are in check!\")\n .setMessage(\"Your king is in danger. You should move it.\")\n\n // A null listener allows the button to dismiss the dialog and take no further action.\n .setNegativeButton(\"Ok\", null)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n\n\n if (info instanceof IllegalMoveInfo) {\n\n Log.d(\"ShogiHP\", \"illegal move\");\n\n\n\n if (super.getflash()) {\n\n try {\n flashButton();\n } catch (InterruptedException ignored) {\n\n\n }\n }\n\n gui.invalidate();\n }\n\n gui.invalidate();\n\n }\n }", "@Override\n public void run() {\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != mPlayerGamePiece) {\n\n // Updating colors for profile areas:\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mOpponentUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mPlayerUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now A.I. opponent should make a move:\n makeAIMove();\n\n }\n\n // Otherwise, player gets another turn:\n else{\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n\n }\n\n else{ // Otherwise, game has ended.\n handleGameEnding();\n }\n\n }", "public void processInput() {\n \ttempBoard[inputRowIndex-1][inputColIndex-1]=piece; //set the chosen cell to the piece of the current player\n \tGame.permBoard.setBoard(tempBoard); //set this tempBoard with the new turn on it to the permBoard\n \t\n \t//TODO implement quit\n }", "private void fireGameBoardChanged() {\n\t\tfor (int i = 0; i < gameBoardListeners.size(); i++) {\n\t\t\tGameBoardListener listener = (GameBoardListener) gameBoardListeners.get(i);\n\t\t\tlistener.gameBoardChanged(this);\n\t\t}\n\t}", "void playerPositionChanged(Player player);", "public void play() {\n Player playerOne = preparePlayer(getUserName(scanner, validator, shipsGameText.getMessage(\"show.player.one\"), null));\n Player currentPlayer = playerOne;\n ShipsGameBoard playerOneGameBoard = new ShipsGameBoard(playerOne, playerOneFleet);\n ShipsGameBoard playerOneCheckBoard = new ShipsGameBoard(playerOne, playerOneFleetToCheck);\n playerOneCheckBoard.setup();\n\n TreeMap<Character, Integer> lettersAndDigits = lettersAndDigits(playerOneGameBoard.getLength());\n ShipCreator threeMastShipCreatorPlayerOne = new ShipCreator(THREE_MASTS_SHIP,\n null,\n playerOne,\n ShipGameBoardMark.THREE_MASTS,\n playerOneGameBoard,\n playerOneShipsGameLogic);\n\n playerOneGameBoard.print();\n shipsDeployment(playerOneGameBoard,\n lettersAndDigits,\n threeMastShipCreatorPlayerOne,\n playerOneShipsGameLogic,\n playerOneFleet,\n NUMBER_OF_SHIPS);\n\n// playerOneShipsGameLogic.clearConsole();\n\n Player playerTwo = preparePlayer(getUserName(scanner, validator, shipsGameText.getMessage(\"show.player.two\"), playerOne.getName()));\n ShipsGameBoard playerTwoGameBoard = new ShipsGameBoard(playerTwo, playerTwoFleet);\n ShipsGameBoard playerTwoCheckBoard = new ShipsGameBoard(playerTwo, playerTwoFleetToCheck);\n playerTwoCheckBoard.setup();\n\n ShipCreator threeMastShipCreatorPlayerTwo = new ShipCreator(THREE_MASTS_SHIP,\n null,\n playerTwo,\n ShipGameBoardMark.THREE_MASTS,\n playerTwoGameBoard,\n playerTwoShipsGameLogic);\n\n playerTwoGameBoard.print();\n shipsDeployment(playerTwoGameBoard,\n lettersAndDigits,\n threeMastShipCreatorPlayerTwo,\n playerTwoShipsGameLogic,\n playerTwoFleet,\n NUMBER_OF_SHIPS);\n\n\n boolean isAWinner = false;\n do {\n int userRow;\n int userCol;\n// playerOneGameBoard.clearConsole();\n showCurrentPlayerBoards(playerOne, currentPlayer, playerOneGameBoard, playerTwoGameBoard, playerOneCheckBoard,\n playerTwoCheckBoard, shipsGameText);\n System.out.println(shipsGameText.getMessage(\"show.witch.player.move\", currentPlayer.getName()));\n\n System.out.println(shipsGameText.getMessage(\"show.input.row\", Integer.toString(playerOneGameBoard.getLength())));\n userRow = getPlayerRowChoice(scanner, validator, playerOneGameBoard.getLength());\n\n System.out.println(shipsGameText.getMessage(\"show.input.col\",\n Character.toString(playerOneGameBoard.generateLastLetterOfColumn('A', playerOneGameBoard.getLength()))));\n userCol = convertLetterToDigit(lettersAndDigits, getPlayerColChoice(scanner, validator,\n lettersAndDigits));\n\n if (currentPlayer.equals(playerOne)) {\n if (playerTwoShipsGameLogic.checkForHit(userRow, userCol)) {\n playerOneShipsGameLogicToCheck.changeMastStatus(userRow, userCol, playerOne, ShipGameBoardMark.HIT_BUT_NOT_SUNK);\n playerTwoShipsGameLogic.changeMastStatus(userRow, userCol, playerTwo, ShipGameBoardMark.HIT_BUT_NOT_SUNK);\n if (playerTwoShipsGameLogic.checkShipForStatusChange(userRow, userCol)) {\n playerTwoShipsGameLogic.changeShipStatusToSunk(userRow, userCol, playerTwo);\n playerOneShipsGameLogicToCheck.changeShipStatusToSinkOnCheckBoard(playerTwoFleet, playerOne);\n System.out.println(shipsGameText.getMessage(\"show.player.sunk.ship\"));\n System.out.println(shipsGameText.getMessage(\"show.player.checkboard\", currentPlayer.getName()));\n playerOneCheckBoard.print();\n System.out.println(shipsGameText.getMessage(\"show.player.gameboard\", playerTwo.getName()));\n playerTwoGameBoard.print();\n } else {\n System.out.println(shipsGameText.getMessage(\"show.player.hit.ship\", playerOne.getName()));\n }\n } else {\n System.out.println(shipsGameText.getMessage(\"show.player.miss\"));\n playerOneShipsGameLogicToCheck.changeMastStatus(userRow, userCol, playerOne, ShipGameBoardMark.MISS);\n playerTwoShipsGameLogic.changeMastStatus(userRow, userCol, playerTwo, ShipGameBoardMark.MISS);\n }\n\n// if (playerTwoShipsGameLogic.checkShipForStatusChange(userRow, userCol)) {\n// playerTwoShipsGameLogic.changeShipStatusToSunk(userRow, userCol, playerTwo);\n// playerOneShipsGameLogicToCheck.changeShipStatusToSinkOnCheckBoard(playerTwoFleet, playerOne);\n// System.out.println(shipsGameText.getMessage(\"show.player.sunk.ship\"));\n// System.out.println(shipsGameText.getMessage(\"show.player.checkboard\", currentPlayer.getName()));\n// playerOneCheckBoard.print();\n// System.out.println(shipsGameText.getMessage(\"show.player.gameboard\", playerTwo.getName()));\n// playerTwoGameBoard.print();\n// }\n\n\n if (playerTwoShipsGameLogic.isPlayerLoose()) {\n System.out.println(shipsGameText.getMessage(\"show.player.win\", playerOne.getName()));\n isAWinner = true;\n }\n\n } else {\n if (playerOneShipsGameLogic.checkForHit(userRow, userCol)) {\n playerTwoShipsGameLogicToCheck.changeMastStatus(userRow, userCol, playerTwo, ShipGameBoardMark.HIT_BUT_NOT_SUNK);\n playerOneShipsGameLogic.changeMastStatus(userRow, userCol, playerOne, ShipGameBoardMark.HIT_BUT_NOT_SUNK);\n if (playerOneShipsGameLogic.checkShipForStatusChange(userRow, userCol)) {\n playerOneShipsGameLogic.changeShipStatusToSunk(userRow, userCol, playerOne);\n playerTwoShipsGameLogicToCheck.changeShipStatusToSinkOnCheckBoard(playerOneFleet, playerTwo);\n System.out.println(shipsGameText.getMessage(\"show.player.sunk.ship\"));\n System.out.println(shipsGameText.getMessage(\"show.player.checkboard\", currentPlayer.getName()));\n playerTwoCheckBoard.print();\n System.out.println(shipsGameText.getMessage(\"show.player.gameboard\", playerOne.getName()));\n playerOneGameBoard.print();\n }\n else {\n System.out.println(shipsGameText.getMessage(\"show.player.hit.ship\", playerOne.getName()));\n }\n } else {\n playerTwoShipsGameLogicToCheck.changeMastStatus(userRow, userCol, playerOne,\n ShipGameBoardMark.MISS);\n playerOneShipsGameLogic.changeMastStatus(userRow, userCol, playerOne, ShipGameBoardMark.MISS);\n System.out.println(shipsGameText.getMessage(\"show.player.miss\"));\n }\n if (playerOneShipsGameLogic.isPlayerLoose()) {\n System.out.println(shipsGameText.getMessage(\"show.player.win\", playerTwo.getName()));\n isAWinner = true;\n }\n }\n\n currentPlayer = swapPlayers(playerOne, currentPlayer, playerTwo);\n }\n while (!isAWinner);\n }", "@Override\n\tpublic void executeMove(Player player, Board gameBoard, int turn, int startRow, int startCol, int endRow,\n\t\t\tint endCol) {\n\t\t\n\t}", "public void startGame(){\n\n\t\tGame.updatePlayer(players.get(curr));\n\t\tGameBoard gb = new GameBoard();\n\t\tthis.registerObserver(gb);\n\t\tgb.update(this, board);\n\n\t}", "public void actionPerformed(ActionEvent e)\n {\n \tif(buttonActionFlag)\n \t{\n \t\tGraphics controlDisplay = new BasicControls();\n \t\tGraphics outwardDisplay = new OutwardDisplay();\n \t\tTimerImpl t = new TimerImpl();\n \t\tt.addObserver(controlDisplay);\n \t\tt.addObserver(outwardDisplay);\n \t\tScoreboardImpl s = new ScoreboardImpl();\n \t\ts.addObserver(controlDisplay);\n \t\ts.addObserver(outwardDisplay);\n \t\tTeamImpl t1 = new TeamImpl(teamName1.getText());\n \t\tt1.addObserver(controlDisplay);\n \t\tt1.addObserver(outwardDisplay);\n \t\tTeamImpl t2 = new TeamImpl(teamName2.getText());\n \t\tt2.addObserver(controlDisplay);\n \t\tt2.addObserver(outwardDisplay);\n \t\tcontrolDisplay.start(t, s, t1, t2);\n \t\toutwardDisplay.start(t, s, t1, t2);\n\t\t\tteamFrame.dispose();\n \t}\n \telse\n \t{\n \t\tArrayList<Player> team1players = new ArrayList<Player>();\n \t\tteam1players.add(new PlayerImpl(team1playerName1.getText(), Integer.valueOf(team1playerNumber1.getText())));\n \t\tteam1players.add(new PlayerImpl(team1playerName2.getText(), Integer.valueOf(team1playerNumber2.getText())));\n \t\tteam1players.add(new PlayerImpl(team1playerName3.getText(), Integer.valueOf(team1playerNumber3.getText())));\n \t\tteam1players.add(new PlayerImpl(team1playerName4.getText(), Integer.valueOf(team1playerNumber4.getText())));\n \t\tteam1players.add(new PlayerImpl(team1playerName5.getText(), Integer.valueOf(team1playerNumber5.getText())));\n \t\tteam1players.add(new PlayerImpl(team1playerName6.getText(), Integer.valueOf(team1playerNumber6.getText())));\n \t\tteam1players.add(new PlayerImpl(team1playerName7.getText(), Integer.valueOf(team1playerNumber7.getText())));\n \t\tArrayList<Player> team2players = new ArrayList<Player>();\n \t\tteam2players.add(new PlayerImpl(team2playerName1.getText(), Integer.valueOf(team2playerNumber1.getText())));\n \t\tteam2players.add(new PlayerImpl(team2playerName2.getText(), Integer.valueOf(team2playerNumber2.getText())));\n \t\tteam2players.add(new PlayerImpl(team2playerName3.getText(), Integer.valueOf(team2playerNumber3.getText())));\n \t\tteam2players.add(new PlayerImpl(team2playerName4.getText(), Integer.valueOf(team2playerNumber4.getText())));\n \t\tteam2players.add(new PlayerImpl(team2playerName5.getText(), Integer.valueOf(team2playerNumber5.getText())));\n \t\tteam2players.add(new PlayerImpl(team2playerName6.getText(), Integer.valueOf(team2playerNumber6.getText())));\n \t\tteam2players.add(new PlayerImpl(team2playerName7.getText(), Integer.valueOf(team2playerNumber7.getText())));\n \t\t\n \t\tGraphics controlDisplay = new AdvancedControls();\n \t\tGraphics outwardDisplay = new OutwardDisplay();\n \t\tTimerImpl t = new TimerImpl();\n \t\tt.addObserver(controlDisplay);\n \t\tt.addObserver(outwardDisplay);\n \t\tScoreboardImpl s = new ScoreboardImpl();\n \t\ts.addObserver(controlDisplay);\n \t\ts.addObserver(outwardDisplay);\n \t\tTeamImpl t1 = new TeamImpl(teamName1.getText());\n \t\tt1.addObserver(controlDisplay);\n \t\tt1.addObserver(outwardDisplay);\n \t\tt1.addPlayers(team1players);\n \t\tTeamImpl t2 = new TeamImpl(teamName2.getText());\n \t\tt2.addObserver(controlDisplay);\n \t\tt2.addObserver(outwardDisplay);\n \t\tt2.addPlayers(team2players);\n \t\tcontrolDisplay.start(t, s, t1, t2);\n \t\toutwardDisplay.start(t, s, t1, t2);\n\t\t\tteamFrame.dispose();\n \t}\n }", "@Override\n public void gameWindow() {\n gameBoard = guiGame.getPanel();\n boardArea = guiGame.getBoardArea();\n inputArea = guiGame.getInputArea();\n JButton sendMessageButton = guiGame.getSendButton();\n JButton skipTurnButton = guiGame.getSkipTurnButton();\n JButton swapPiece = guiGame.getSwapPieceButton();\n messagesArea = guiGame.getMessagesArea();\n JButton forfeitButton = guiGame.getForfeitButton();\n JLabel usernameLabel = guiGame.getUsernameLabel();\n usernameLabel.setText(username);\n JButton movePieceButton = guiGame.getMovePieceButton();\n JButton leaveButton = guiGame.getLeaveButton();\n JButton hintButton = guiGame.getHintButton();\n\n boardArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n boardArea.setEditable(false);\n\n messagesArea.setEditable(false);\n inventoryArea.setEditable(false);\n\n forfeitButton.addActionListener(e -> {\n connectedServer.writeMessage(client.leave());\n frame.setContentPane(gameList);\n });\n\n JPanel piecePanel = new JPanel();\n piecePanel.add(new JLabel(\"Piece number:\"));\n JTextField pieceNumber = new JTextField(1);\n piecePanel.add(pieceNumber);\n piecePanel.add(Box.createHorizontalStrut(15));\n piecePanel.add(new JLabel(\"Index on board:\"));\n JTextField indexOnBoard = new JTextField(2);\n piecePanel.add(indexOnBoard);\n piecePanel.add(Box.createHorizontalStrut(15));\n piecePanel.add(new JLabel(\"Rotation 1 or 2 (0 for default)\"));\n JTextField rotationField = new JTextField(1);\n rotationField.setText(\"0\");\n piecePanel.add(rotationField);\n\n\n\n movePieceButton.addActionListener(e -> {\n int result = JOptionPane.showConfirmDialog(frame, piecePanel, \"Move piece\", JOptionPane.OK_CANCEL_OPTION);\n if(result == JOptionPane.OK_OPTION) {\n int pieceNum = Integer.parseInt(pieceNumber.getText());\n int i = Integer.parseInt(indexOnBoard.getText());\n int rotation = Integer.parseInt(rotationField.getText());\n if(!Board.isLegal(i)) {\n JOptionPane.showMessageDialog(frame, \"Invalid board index\", \"Ilegal board index\", JOptionPane.ERROR_MESSAGE);\n } else if(pieceNum > client.getGame().getPlayer(username).getInventory().size()) {\n JOptionPane.showMessageDialog(frame, \"Invalid piece number\", \"Ilegal piece\", JOptionPane.ERROR_MESSAGE);\n } else {\n Tile t = client.getGame().getPlayer(username).getInventory().get(pieceNum - 1);\n t.rotate(rotation);\n connectedServer.writeMessage(client.move(t, i));\n }\n }\n });\n\n skipTurnButton.addActionListener(e -> {\n connectedServer.writeMessage(client.skip());\n });\n\n hintButton.addActionListener(e -> {\n giveHint(client.getHint());\n });\n\n swapPiece.addActionListener(e -> {\n String[] options = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"};\n String result = (String) JOptionPane.showInputDialog(frame, \"Piece number:\", \"Swap piece\", JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n int resultInt = Integer.parseInt(result);\n if(resultInt > client.getGame().getPlayer(username).getInventory().size()) {\n JOptionPane.showMessageDialog(frame, \"Invalid piece number\", \"Ilegal piece\", JOptionPane.ERROR_MESSAGE);\n } else {\n connectedServer.writeMessage(client.swap(client.getGame().getPlayer(username).getInventory().get(resultInt)));\n }\n });\n\n sendMessageButton.addActionListener(e -> {\n executeCommand();\n });\n\n leaveButton.addActionListener(e -> {\n forfeit();\n });\n\n //an action for when someone presses enter in the inputArea\n Action pressedEnter = new AbstractAction() {\n public void actionPerformed(ActionEvent e) {\n executeCommand();\n }\n };\n\n inputArea.getInputMap().put(KeyStroke.getKeyStroke(\"ENTER\"),\n pressedEnter);\n\n frame.setContentPane(gameBoard);\n frame.revalidate();\n\n forfeitButton.addActionListener(e -> {\n forfeit();\n });\n\n client.setGame(connectedGamePlayerCount);\n client.getGame().addPlayer(client.getPlayer());\n\n tui = new TUI();\n messagesArea.append(tui.HELP);\n\n boardArea.append(tui.getBoard());\n }", "private void leaderboardBtnListener() {\n leaderboardBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new LeaderboardScreen(game));\n }\n });\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n updateJTables();\n if(Controller.flag<3)\n Controller.flag++;\n else{\n Controller.flag=0;\n }\n if(Controller.initialTurnCount>=4){\n \tDice.DiceClick=true;\n if(AdjacencyListRoads.roadKingDeterminer()!=-1){//if there is a road king\n if(Controller.lastRoadKing!=-1){//if last road king exists\n Controller.players[Controller.lastRoadKing].roadKing=false;\n Controller.players[Controller.lastRoadKing].score-=2;\n }\n Controller.lastRoadKing=AdjacencyListRoads.roadKingDeterminer();//set current road king as the last\n Controller.players[AdjacencyListRoads.roadKingDeterminer()].roadKing=true;\n Controller.players[AdjacencyListRoads.roadKingDeterminer()].score+=2;\n }\n }\n for(int i=0;i>4;i++) {\n \tif(Controller.players[i].score>=20) {\n \t\tJOptionPane.showMessageDialog(null, \"Player\"+(i+1)+\"is the winner!\");\n \t}\n }\n turn.setText(\"The current player is: \"+\"Player\"+String.valueOf(Controller.flag+1));\n }", "public abstract Scoreboard update(Player player);", "protected void newPlayersClicked(ActionEvent e) {\n getPlayerNames();\n blackPlayer = 0;\n playerScores[0] = 0;\n playerScores[1] = 0;\n refreshScore();\n updateTurnInfo();\n startNewGame();\n }", "public void run() {\n System.out.println(\"Starting game!\");\n this.clients[0].startgame();\n this.clients[1].startgame();\n\n this.clients[0].setError(this::error);\n this.clients[1].setError(this::error);\n\n for (int moveNum = 0; !this.board.gameOver(); moveNum = (moveNum + 1) % 2) {\n ChessConnection player = this.clients[moveNum];\n\n player.make_move();\n\n String[] move;\n try {\n move = player.parseCommand();\n }\n catch (NullPointerException e) {\n System.err.println(\"Could not read response from client\");\n error();\n break;\n }\n\n if (!move[0].equals(ChessConnection.MOVE)) {\n if (move[0].equals(ChessConnection.CHOSE)) {\n Piece p = Piece.createPiece(this.board, ChessColor.valueOf(move[2]), move[1], parseInt(move[3]), parseInt(move[4]));\n this.board.chosePiece(p);\n this.clients[0].chose(p);\n this.clients[1].chose(p);\n moveNum++;\n continue;\n }\n\n if (error)\n break;\n\n System.err.printf(\"Invalid Command from client: %s\\n\", move[0]);\n error();\n break;\n }\n\n int startRow = Integer.parseInt(move[1]);\n int startCol = Integer.parseInt(move[2]);\n int row = Integer.parseInt(move[3]);\n int col = Integer.parseInt(move[4]);\n\n try {\n Piece p = this.board.pieceAt(startRow, startCol);\n this.board.movePiece(p, row, col);\n }\n catch (PawnInterrupt e) {\n this.board.choosePiece(e.getPawn());\n this.clients[(moveNum + 1) % 2].choose(e.getPawn().getRow(), e.getPawn().getCol());\n }\n catch (ChessException e) {\n e.printStackTrace();\n error();\n break;\n }\n\n /* No error */\n this.clients[0].move_made(startRow, startCol, row, col);\n this.clients[1].move_made(startRow, startCol, row, col);\n }\n\n if (!error) {\n /* Tell the client if they won or not */\n if (this.board.getWinner() == ChessColor.BLACK) {\n this.clients[0].game_won();\n this.clients[1].game_lost();\n } else if (this.board.getWinner() == ChessColor.WHITE) {\n this.clients[1].game_won();\n this.clients[0].game_lost();\n } else {\n this.clients[0].game_tied();\n this.clients[1].game_tied();\n }\n }\n\n /* parseCommand on each thread should exit because socket closed */\n this.clients[0].close();\n this.clients[1].close();\n }", "@Override\n\tpublic void onPlayerTurnListener() {\n\n\t}", "public void playTheGame() {\n\t\tint column;\n\t\ttry {\n\t\t\tboolean gameIsOver = false;\n\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\tthePlayers[count].getView().showOutput(\n\t\t\t\t\t\taConnect4Field.toString());\n\n\t\t\tdo {\n\t\t\t\tfor (int index = 0; index < thePlayers.length; index++) {\n\t\t\t\t\t// thePlayers[index].getView().showOutput(aConnect4Field.toString());\n\t\t\t\t\tif (aConnect4Field.isItaDraw()) {\n\t\t\t\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\t\t\t\tthePlayers[count].getView().showOutput(\"Draw\");\n\t\t\t\t\t\tgameIsOver = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthePlayers[index].getView().showOutput(\n\t\t\t\t\t\t\t\tthePlayers[index].getName()\n\t\t\t\t\t\t\t\t\t\t+ \" it's Your Turn! play your move\");\n\t\t\t\t\t\tcolumn = thePlayers[index].nextMove();\n\t\t\t\t\t\twhile (!aConnect4Field\n\t\t\t\t\t\t\t\t.checkIfPiecedCanBeDroppedIn(column)) {\n\t\t\t\t\t\t\tthePlayers[index].getView().showOutput(\n\t\t\t\t\t\t\t\t\t\"Invalid Turn Try again\");\n\t\t\t\t\t\t\tcolumn = thePlayers[index].nextMove();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\taConnect4Field.dropPieces(column,\n\t\t\t\t\t\t\t\tthePlayers[index].getGamePiece());\n\t\t\t\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\t\t\t\tthePlayers[count].getView().showOutput(\n\t\t\t\t\t\t\t\t\taConnect4Field.toString());\n\t\t\t\t\t\tif (aConnect4Field.error != \"\") {\n\n\t\t\t\t\t\t\tthePlayers[index].getView().showOutput(\n\t\t\t\t\t\t\t\t\taConnect4Field.error);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (aConnect4Field.didLastMoveWin()) {\n\t\t\t\t\t\t\t\tgameIsOver = true;\n\t\t\t\t\t\t\t\t// all player get to know\n\t\t\t\t\t\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\t\t\t\t\t\tthePlayers[count].getView().showOutput(\n\t\t\t\t\t\t\t\t\t\t\t\"The winner is: \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ thePlayers[index]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} while (!gameIsOver);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void play() {\r\n _board = new Board();\r\n _command = new LoaGUI(\"Lines of Action\", this);\r\n\r\n while (true) {\r\n int playerInd = _board.turn().ordinal();\r\n if (_playing) {\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n continue;\r\n }\r\n Move next = _players[playerInd].makeMove();\r\n System.out.println(\"The move is get\");\r\n if (next != null) {\r\n assert _board.isLegal(next);\r\n _board.makeMove(next);\r\n _command.repaint();\r\n System.out.println(\"Repaint\");\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n }\r\n }\r\n } else {\r\n try {\r\n Thread.sleep(magic2);\r\n } catch (InterruptedException ex) {\r\n return;\r\n }\r\n }\r\n }\r\n }", "private void win() {\r\n Player winner = board.win();\r\n if (winner == null)\r\n return;\r\n\r\n int winner_number;\r\n Label winner_info;\r\n Label loser_info;\r\n if (winner.getId() == 'U') {\r\n winner_info = player1info;\r\n loser_info = player2info;\r\n winner_number = 1;\r\n }\r\n else {\r\n winner_info = player2info;\r\n loser_info = player1info;\r\n winner_number = 2;\r\n }\r\n\r\n winner_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n winner_info.setText(\"You Won!!\");\r\n loser_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n loser_info.setText(\"You Lost :)\");\r\n\r\n for (int i = 0; i < 17; ++i)\r\n for (int j = 0; j < 17; j++) {\r\n String id = \"#cell\" + ((i < 10) ? \"0\" + i : i) + ((j < 10) ? \"0\" + j : j);\r\n AnchorPane cell = (AnchorPane) (play.getScene().lookup(id));\r\n // remove functionality\r\n cell.setOnMouseClicked(null);\r\n cell.setOnMouseEntered(null);\r\n cell.setOnMouseExited(null);\r\n if (!cup_is_on) {\r\n if (i == 6) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"try\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"again?\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n else if(i == 8) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: limegreen\");\r\n Label label = new Label(\"YES\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try {\r\n gotoNewGame(new Player(board.getPlayer1().getName(), 'U', 10),\r\n new Player(board.getPlayer2().getName(), 'D', 10));\r\n } catch (IOException ioException) { ioException.printStackTrace(); }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: red\");\r\n Label label = new Label(\"NO\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try { gotoGameModes(); } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (cup_is_on)\r\n cupOptimizer(winner_number);\r\n }", "public void RunGame(){\r\n \r\n for (int i=0;i<numberoplayers;i++){ \r\n if (Objects.equals(Players.get(i).numofdestroyedships,numberofships))\r\n {\r\n Leave(Players.get(i));\r\n }\r\n if (Players.size()==1){\r\n Stop(Players.get(0));\r\n return ;\r\n }\r\n Square attackmove=Players.get(i).AttackOpponent();\r\n if (attackmove==null){\r\n if (i==1)\r\n i=-1;\r\n continue;\r\n }\r\n //know the player name and the attack point and add it to the list\r\n moves.add(new ToturialClass(Players.get(i).name,attackmove.x,attackmove.y,new Date()));\r\n //to know the targeted player\r\n int temp=i+1;\r\n if (temp==2)\r\n temp=0;\r\n AttackResult result=Players.get(temp).AcceptAttack(attackmove); \r\n Players.get(i).AcceptAttackResult(result);\r\n playerboard.repaintafterupdate();\r\n \r\n if (i==1)\r\n i=-1;\r\n }\r\n }", "public void drawBoard() {\n\n\t\t// Create Observable variable\n\t\tgameObserver = new GameObservable(0);\n\n\t\t// Add panel with buttons Start/Stop, Pause/Resume, Undo and Replay\n\t\tJPanel buttonPanel = new JPanel();\n\n\t\tstartStopButton = new JButton();\n\t\tstartStopButton.setText(\"Start\");\n\t\tstartStopButton.addMouseListener(new customMouseListener());\n\t\tstartStopButton.setFocusable(false);\n\n\t\tpauseResumeButton = new JButton();\n\t\tpauseResumeButton.setText(\"Pause\");\n\t\tpauseResumeButton.addMouseListener(new customMouseListener());\n\t\tpauseResumeButton.setFocusable(false);\n\t\tpauseResumeButton.setEnabled(false);\n\n\t\tundoButton = new JButton();\n\t\tundoButton.setText(\"Undo\");\n\t\tundoButton.addMouseListener(new customMouseListener());\n\t\tundoButton.setFocusable(false);\n\t\tundoButton.setEnabled(false);\n\n\t\treplayButton = new JButton();\n\t\treplayButton.setText(\"Replay\");\n\t\treplayButton.addMouseListener(new customMouseListener());\n\t\treplayButton.setFocusable(false);\n\t\treplayButton.setEnabled(false);\n\n\t\t// Add buttons to the panel\n\t\tbuttonPanel.add(startStopButton);\n\t\tbuttonPanel.add(pauseResumeButton);\n\t\tbuttonPanel.add(undoButton);\n\t\tbuttonPanel.add(replayButton);\n\n\t\t// Add Panels\n\t\tsetLayout(new BorderLayout());\n\t\tclock = new Clock(gameObserver);\n\t\tadd(clock, BorderLayout.NORTH);\n\t\tadd(buttonPanel, BorderLayout.SOUTH);\n\t\tboard = new Board(gameObserver);\n\t\tboard.setBackground(Color.white);\n\t\tadd(board);\n\n\t\t// Register to observer\n\t\tgameObserver.addObserver(board);\n\t\tgameObserver.addObserver(clock);\n\n\t\t// JFrame Properties\n\t\tsetTitle(\"Breakout\");\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tsetSize(Constants.WIDTH, Constants.HEIGTH);\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\n\t}", "public Bot startGame(){\n\t\t\n\t\ttable.addObserver(this); //to keep scores.\n\t\ttable.addObserver(players.get(0)); //observer pattern to notify players via events.\n\t\ttable.addObserver(players.get(1));\n\t\ttable.addObserver(players.get(2));\n\t\ttable.addObserver(players.get(3));\n\t\t\n\t\ttable.putInitialCards(deck.getFourCards());\n\t\t\n\t\twhile(!deck.isEmpty()){\n\t\t\t//deal cards\n\t\t\tfor(Bot bot : players){\n\t\t\t\tbot.setHand(deck.getFourCards());\n\t\t\t}\n\t\t\t\n\t\t\t//start playing\n\t\t\tfor(int i = 0 ; i < 4 ; i++){\n\t\t\t\tfor(Bot bot : players){\n\t\t\t\t\tcurrentPlayer = bot;\n\t\t\t\t\tCard cardToThrow = currentPlayer.throwACard();\n//\t\t\t\t\tSystem.out.println(\"Bot \"+ currentPlayer.toString() + \" threw \" + cardToThrow.toString());\n\t\t\t\t\ttable.putOnPile(cardToThrow);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//award last pile winner\n\t\tplayers.get(lastWinnerId).addPoints(Table.calculatePoints(table.getCardsOnPile()));\n\t\tplayers.get(lastWinnerId).addWonCards(table.getCardsOnPile().size());\n//\t\tSystem.out.println(\"Last pile goes to [\"+players.get(lastWinnerId).toString()+\"]\");\n\t\ttable.clearPile();\n\t\t\n\t\t\n\t\t//award most card winner\n\t\tCollections.sort(players, new CompareByWonCardSize()); // sort players by most cards won.\n\t\tplayers.get(3).addPoints(3); // last one has most cards.\n//\t\tSystem.out.println(\"The bot [\"+players.get(3).toString()+\"] won the most cards so it gets bonus 3 points!\");\n\t\t\t\t\n//\t\tSystem.out.println(\"### SCORES ###\");\n\t\tCollections.sort(players, new CompareByPoints()); // sort by points\n\t\t\n\t\tBot winner = players.get(3);\n//\t\tSystem.out.println(\"WINNER IS: \"+ winner);\n\t\t\n\t\treturn winner;\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tBoardButton button = (BoardButton) e.getSource();\r\n\t\tGameBoard board = game.getBoard();\r\n\t\tint row = button.getRow();\r\n\t\tint column = button.getColumn();\r\n\t\tgame.savePieceToMove(column, row);\r\n\t}", "void processKeyEvent(KeyEvent event, Level level, Game game, Canvas canvas, BorderPane[] panes) {\r\n\r\n // Get the event code\r\n KeyCode key = event.getCode();\r\n\r\n if (key.isArrowKey()) {\r\n\r\n // Grab the player, current entity grid and the enemy array\r\n Entity[][] newGrid;\r\n Player player = level.getPlayer();\r\n\r\n ArrayList<KeyCode> codes = new ArrayList<>(Arrays.asList(\r\n KeyCode.UP, KeyCode.RIGHT, KeyCode.DOWN, KeyCode.LEFT\r\n ));\r\n\r\n newGrid = player.move(codes.indexOf(key), level);\r\n newGrid = level.moveEnemys(level, newGrid);\r\n\r\n // Update the Level object for drawing\r\n level.setEntityGrid(newGrid);\r\n\r\n if (player.getGameStatus()) {\r\n player.setGameStatus();\r\n\r\n GUI.END_TIME = System.nanoTime();\r\n GUI.ELAPSED_TIME = GUI.END_TIME - GUI.START_TIME;\r\n GUI.CONVERTED_TIME = TimeUnit.SECONDS.convert(GUI.ELAPSED_TIME, TimeUnit.NANOSECONDS);\r\n GUI.scene.setRoot(panes[0]);\r\n Main.window.setScene(GUI.scene);\r\n\r\n System.out.println(GUI.CONVERTED_TIME);\r\n\r\n game.getUser().addScore(level, (int) GUI.CONVERTED_TIME);\r\n this.save.saveProfile(game.getUser());\r\n\r\n update(level);\r\n }\r\n\r\n if (level.getPlayer() != null && player.getStatus()) {\r\n // Player should be alive\r\n game.drawGame(level, canvas);\r\n } else {\r\n GUI.LEVEL = new Level(level.getLevelName());\r\n GUI.scene.setRoot(panes[1]);\r\n Main.window.setScene(GUI.scene);\r\n }\r\n\r\n }\r\n\r\n event.consume();\r\n }", "@Override\n public void handle(ActionEvent event)\n {\n Object source = event.getSource();\n Button clickedBtn = (Button) source;\n\n //don't allow player to click a computer move\n if(clickedBtn.getText() == \"Y\")\n {\n //show prompt telling user illegal move\n moveBetter = new BetterMove();\n moveBetter.initModality(Modality.APPLICATION_MODAL);\n moveBetter.showAndWait();\n }\n //Allow player to only play non played buttons\n else if(clickedBtn.getText() == \"\" && clickedBtn.getText() != \"Y\")\n {\n //add image to button if user has selected an image\n if(AddDialog.getxImage() == true)\n {\n clickedBtn.setText(null);\n clickedBtn.setPadding(Insets.EMPTY);\n clickedBtn.setGraphic(new ImageView(AddDialog.getXImage()));\n clickedBtn.setId(\"xHasImage\");\n }\n\n //add default x if no image has been selected\n else\n {\n clickedBtn.setText(\"X\");\n }\n playComputer(usedRows, usedCols);\n }\n //get the location in grid where the button clicked is located\n currentX = myPane.getRowIndex(clickedBtn);\n currentY = myPane.getColumnIndex(clickedBtn);\n checkWin(usedRows, usedCols);\n }", "public void mousePressed(java.awt.event.MouseEvent evt) {\r\n int col,row;\r\n if(!gameOver()){\r\n if(currentPlayer.getClass()== Human.class) {\r\n col = (evt.getX() - 8) / tileSize;\r\n row = (evt.getY() - 30) / tileSize;\r\n System.out.println(col + \" \" + row);\r\n if (!selected && checks[row][col] != 0 && (currentPlayer.getColor() == checks[row][col])) {\r\n lastCol = col;\r\n lastRow = row;\r\n getAvailablePlays(row, col);\r\n } else if (selected && nextMove[row][col] == 1) {\r\n makeMove(lastRow, lastCol, row, col);\r\n resetTurn();\r\n swapPlayer();\r\n } else resetTurn();\r\n }\r\n }\r\n }", "public TicTacToeGui() {\n canvas = new DrawCanvas(); // Construct a drawing canvas (a JPanel)\n canvas.setPreferredSize(new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT)); //Dimension size\n \n // The canvas (JPanel) makes a MouseEvent upon mouse-click\n canvas.addMouseListener(new MouseAdapter() {\n @Override //override MouseListener/MouseAdapter\n public void mouseClicked(MouseEvent e) { // mouse-clicked handler\n int mouseX = e.getX();\n int mouseY = e.getY();\n \n // Getting the row and column clicked\n int rowSelected = mouseY / CELL_SIZE;\n int columnSelected = mouseX / CELL_SIZE;\n \n if (currentState == GameState.PLAYING) {\n if (rowSelected >= 0 && rowSelected < ROWS && columnSelected >= 0\n && columnSelected < COLUMNS && board[rowSelected][columnSelected] == Seed.EMPTY) {\n board[rowSelected][columnSelected] = currentPlayer; // Makes a move\n updateGame(currentPlayer, rowSelected, columnSelected); // updates state\n // Switches player\n currentPlayer = (currentPlayer == Seed.CROSS) ? Seed.NOUGHT : Seed.CROSS;\n }\n } else { // game over\n initGame(); // restarts the game\n }\n // Refresh drawing canvas\n repaint(); // Calls-back paintComponent().\n }\n });\n \n // Setup the status bar (JLabel) to display status message\n statusBar = new JLabel(\" \");\n statusBar.setFont(new Font(Font.DIALOG_INPUT, Font.BOLD, 20));\n statusBar.setBorder(BorderFactory.createEmptyBorder(2, 5, 4, 5));\n \n Container cp = getContentPane();\n cp.setLayout(new BorderLayout());\n cp.add(canvas, BorderLayout.CENTER);\n cp.add(statusBar, BorderLayout.PAGE_END); // same as SOUTH\n //cp.add(score, BorderLayout.SOUTH);\n \n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n pack(); // pack all the components in this JFrame\n setTitle(\"Tic Tac Toe\");\n setVisible(true); // show this JFrame\n \n board = new Seed[ROWS][COLUMNS]; // allocates array ROWS by COLUMNS\n initGame(); // initialize the game board contents and game variables\n }", "private void addUserChangeListener(){\n mDatabaseRef.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n loggedInUser = user;\n\n playerText.setText(loggedInUser.email+\"vs. \"+loggedInUser.opponentEmail);\n if (user.myGame.gameInProgress == false && user.currentlyPlaying == true){\n if (loggedInUser.myGame.currentLetter.equals(\"X\")){\n //populates the gameBoard array,swapping x with y\n gameBoard[user.myGame.currentMove]=2;\n printMove(user.myGame.currentMove,\"O\");\n }else{\n gameBoard[user.myGame.currentMove] = 1;\n printMove(user.myGame.currentMove,\"X\");\n }\n //remove all of the buttons\n removeAllButtons();\n\n //make sure we draw a the line\n if(checkGameWon() == 0){\n checkTie();\n\n //initialize game values\n mDatabaseRef.child(loggedInUser.myId).child(\"myGame\").child(\"gameInProgress\").setValue(false);\n mDatabaseRef.child(loggedInUser.myId).child(\"myGame\").child(\"currentlyPlaying\").setValue(false);\n\n mDatabaseRef.child(loggedInUser.opponentId).child(\"myGame\").child(\"gameInProgress\").setValue(false);\n mDatabaseRef.child(loggedInUser.opponentId).child(\"myGame\").child(\"currentlyPlaying\").setValue(false);\n //initialize each user opponents\n mDatabaseRef.child(loggedInUser.myId).child(\"opponentId\").setValue(\"\");\n mDatabaseRef.child(loggedInUser.myId).child(\"opponentEmail\").setValue(\"\");\n\n mDatabaseRef.child(loggedInUser.opponentId).child(\"opponentId\").setValue(\"\");\n mDatabaseRef.child(loggedInUser.opponentId).child(\"opponentEmail\").setValue(\"\");\n\n Toast.makeText(GameActivity.this,\"Game Is Over\",Toast.LENGTH_LONG).show();\n\n\n }\n //if my turn,draw board and enable buttons\n else if(user.myGame.currentTurn.equals(user.myId)){\n turn.setText(\"Your Turn to make a move\");\n //make sure there was a move\n if (user.myGame.currentMove != -1){\n if (loggedInUser.myGame.currentLetter.equals(\"X\")){\n //populates the gameboard array\n gameBoard[user.myGame.currentMove] = 2;\n printMove(user.myGame.currentMove,\"O\");\n }else{\n gameBoard[user.myGame.currentMove] = 1;\n printMove(user.myGame.currentMove,\"X\");\n }\n //re-enable buttons\n updateButtons();\n }\n }else//not my turn\n {\n turn.setText(\"Waiting for other player\");\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tif (arg0.getSource() instanceof ChessPiece) {\r\n\t\t\tChessPiece p = (ChessPiece)arg0.getSource();\r\n\t\t\tChessBoardBlock block = findMovedBlock(p.getLocation().x + arg0.getX(), p.getLocation().y + arg0.getY());\r\n\t\t\tif (block == null) {\r\n\t\t\t\tchangePosition(p, board.get(p.position).position);\r\n\t\t\t} else\r\n\t\t\tif (block.isBorderPainted() && ((LineBorder)block.getBorder()).getLineColor().equals(Color.GREEN)) {\r\n\t\t\t\tchangePosition(p, block.position);\r\n\t\t\t} else {\r\n\t\t\t\tchangePosition(p, board.get(p.position).position);\r\n\t\t\t}\r\n\t\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\t\tb.setBorder(null);\r\n\t\t\t\tb.setBorderPainted(false);\r\n\t\t\t}\r\n\t\t\tAIRobot.robotMove(this);\r\n\t\t\t\r\n\t\t\tif (this.isPeace()) {\r\n\t\t\t\tt.setText(\"This game is peace, restart a new game\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString winner = this.win();\r\n\t\t\tif (winner != null) {\r\n\t\t\t\tt.setText(\"Winner is:\" + winner);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public void run() {\n if(mPlayerGamePiece == mGame.getmCurrentlyPlaying()){\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n // Otherwise, opponent begins:\n else{\n mIsAllowedToPlay = false;\n makeAIMove();\n }\n\n }", "public void actionPerformed(ActionEvent e) \n\t{\n\t\t/* the source of the event */\n\t\tGameButton button = (GameButton)e.getSource();\n\t\t\n\t\t/* row and column of the button that triggered the event */\n\t\tint row = button.getRow();\n\t\tint col = button.getColumn();\n\t\t\n\t\t/* same button clicked twice in a row */\n\t\tif (row == m_rowFocused && col == m_colFocused) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* highlight the piece if it's owned by the player whose turn it is */\n\t\tif (isMyPiece(row, col)) {\n\t\t\tclearAllSquares();\n\t\t\thighlightSquare(row, col);\n\t\t} else {\n\t\t\t/* check if this is a second click */\n\t\t\tChessPiece piece = getPiece(m_rowFocused, m_colFocused);\n\t\t\tif (piece != null) {\n\t\t\t\t/* attempt our move if it's a second click */\n\t\t\t\tm_version.makeMove(piece, row, col);\n\t\t\t}\n\t\t\t\n\t\t\t/* clear our highlighting variables */\n\t\t\tclearSquare(m_rowFocused, m_colFocused);\n\t\t\tm_rowFocused = m_colFocused = -1;\n\t\t}\n\t}", "public void process() {\n\t\ttime--;\n\t\tif (time <= 0) {\n\t\t\tend(false);\n\t\t\treturn;\n\t\t}\n\t\tfor (Player p : getPlayers()) {\n\t\t\t// Check if p is not null and make sure they are active\n\t\t\tif (Objects.nonNull(p) && p.isActive()) {\n\t\t\t\t// Here we will send interfaces, update the score, notify\n\t\t\t\t// players of\n\t\t\t\t// what is going on in the game etc.\n\t\t\t\tp.send(new SendMessage(\"Active\"));\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void run()\r\n {\r\n try\r\n {\r\n socketWriter.println(\"MESSAGE All players connected\");\r\n\r\n if (playerColor.equals(\"Black\")) {\r\n socketWriter.println(\"MESSAGE Your move\");\r\n }\r\n\r\n while (true)\r\n {\r\n String command;\r\n while ((command = socketReader.readLine()) != null)\r\n {\r\n if (command.startsWith(\"MOVE\"))\r\n {\r\n String[] coordinates = command.substring(5).split(\",\");\r\n int row = Integer.parseInt(coordinates[0]);\r\n int column = Integer.parseInt(coordinates[1]);\r\n\r\n if (game.performTurn(row, column, this))\r\n {\r\n socketWriter.println(\"VALID_MOVE ,\" + getCurrentBoard());\r\n if (gameIsFinished(this.getOpponent()))\r\n {\r\n int ownScore = getScore();\r\n int opponentScore = this.getOpponent().getScore();\r\n\r\n if (ownScore > opponentScore)\r\n {\r\n socketWriter.println(\"VICTORY\");\r\n this.getOpponent().socketWriter.println(\"DEFEAT\");\r\n }\r\n else if (ownScore == opponentScore)\r\n {\r\n socketWriter.println(\"TIE\");\r\n this.getOpponent().socketWriter.println(\"TIE\");\r\n }\r\n else\r\n {\r\n socketWriter.println(\"DEFEAT\");\r\n this.getOpponent().socketWriter.println(\"VICTORY\");\r\n }\r\n }\r\n }\r\n else\r\n {\r\n socketWriter.println(\"MESSAGE ?\");\r\n }\r\n }\r\n else if (command.startsWith(\"QUIT\"))\r\n {\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"Player died: \" + e);\r\n }\r\n finally\r\n {\r\n try {socket.close();} catch (IOException e) {e.printStackTrace();}\r\n }\r\n }", "public void run() {\n\t\t\t\tif (consoleTextArea.getConsoleText().equals(\"CHEAT\")) {\n\t\t\t\t\tconsolePlayer.cheatMode();\n\t\t\t\t} else {\n\t\t\t\t\tswitch (consolePlayer.getGameState().getGameState()) {\n\t\t\t\t\t// addPlayer(1)\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tconsolePlayer.addPlayer(userName, consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waitingForStartGame(2)\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tconsolePlayer.startGame(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// gameStarted(3)\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// moving(4)\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\tconsolePlayer.movePlayer(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// chooseAction(5),\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\tconsolePlayer.chooseAction(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// suggesting(6)\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\tconsolePlayer.makeSuggestion(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// accussing(7)\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\tconsolePlayer.makeAccusation(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waiting(8)\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// showCard(9)\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\tconsolePlayer.showCard(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waitingSeeCard(10)\n\t\t\t\t\tcase 10:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void frame() {\r\n\r\n\r\n\t\t//this will solves a thread issue, to do FX application stuff in a non FX application thread. \r\n\t\tPlatform.runLater(() -> {\r\n\r\n\t\t\tif (Player.isBattle()) {\r\n\r\n\t\t\t\tPlayer.setVelX(0);\r\n\t\t\t\tPlayer.setVelY(0);\r\n\t\t\t\tmainStage.setScene(combatScene);\r\n\r\n\t\t\t} else if (Player.isShop()) {\r\n\t\t\t\tmainStage.setScene(shopScene);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tcircle.setFill(getColor());\r\n\t\t\t\tmainStage.setScene(mainScene);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyPressed(e -> {\r\n\t\t\tPlayer.move(e);\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyReleased(e -> {\r\n\t\t\tPlayer.stop(e);\t\r\n\t\t});\r\n\r\n\t\tPlayer.update();\r\n\t\tposition();\r\n\t}", "@Override\n public void doOpponentMove(Display disp) {\n listenForMove(disp);\n }", "@Override\n\tprotected void handleMouseClick(int row, int col, int mouseButton) {\n\t\tif(activeBoard) {\n\t\t\tplayer.setMove(row, col);\n\t\t\tdecideMakeManualMove(player);\n\t\t}\n\t}", "public void mouseClicked(){\n int x = mouseX/64;\n int y = mouseY/64;\n boolean placed = Grid.place(x, y, gridPlane, 10, 6, this.turn, this.players, 0);\n if(placed){\n Player prev_player = players.get(this.turn%2);\n players.get(this.turn%2).addNumMoves();\n this.turn+=1;\n while(true){\n if((players.get(this.turn%2).getNumMoves() > 0 && players.get(this.turn%2).getGridsOwned() == 0) || (players.get(this.turn%2).isLost() == true)){\n players.get(this.turn%2).lost();\n this.turn+=1;\n }else{\n break;\n }\n }\n if(players.get(this.turn%2).equals(prev_player)){\n this.finish = true;\n }\n }\n }", "public static void main (String args[]){\n\t\tString input = null;\n\t\tboolean gameDone = false;\n\t\tPlayerOne p1 = new PlayerOne();\n\t\tPlayerTwo p2 = new PlayerTwo();\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t// grabs the state of the game board \n\t\tGameBoard aBoard = new GameBoard();\n\t\tchar[][] board = aBoard.getBoard();\n\t\t\n\n\t\t// game loop\n\t\twhile (gameDone != true){\n\t\t\t\n\t\t\t// asks for input for player 1 row move \n\t\t\tSystem.out.println(\"Player One Move {R}: \");\n\t\t\tint p1r = sc.nextInt();\n\t\t\t// asks for input for player 1 column move \n\t\t\tSystem.out.println(\"Player One Move {C}: \");\n\t\t\tint p1c = sc.nextInt();\n\t\t\t// places move on the board \n\t\t\tboard[p1r][p1c] = p1.playerPiece;\n\t\t\t// checks win condition \n\t\t\tprintBoard(board);\n\t\t\tif (checkWin(board, p1.playerPiece) || checkDraw(board)){\n\t\t\t\tgameDone = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// asks for input for player 2 row move\n\t\t\tSystem.out.println(\"Player Two Move {R}: \");\n\t\t\tint p2r = sc.nextInt();\n\t\t\t// asks for input for player 2 column move\n\t\t\tSystem.out.println(\"Player Two Move {C}: \");\n\t\t\tint p2c = sc.nextInt();\n\t\t\t// places move on the board \n\t\t\tboard[p2r][p2c] = p2.playerPiece;\n\t\t\tprintBoard(board);\n\t\t\t// checks win and draw condition \n\t\t\tif(checkWin(board, p2.playerPiece) || checkDraw(board)){\n\t\t\t\tgameDone = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "@Override\r\n\tpublic void handleEvent(GameEvent<S, A> e) {\r\n\t\tif ((e.getType() == EventType.Info || e.getType() == EventType.Change) && e.getState().getTurn() == this.playerId) decideMakeAutomaticMove();\r\n\t}", "void changepos(MouseEvent e, pieces chessPiece) \n { \n for(int beta : chessPiece.movnum)\n { \n if (chessPiece.color == 0 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allWhitePositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false;\n \n \n \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/\n }\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = false;\n }\n else if (chessPiece.color == 1 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allBlackPositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false; \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/}\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = true;\n }\n }//for ends\n \n }", "@Override\n public void run() {\n if (plugin.getGm().getPlayersInGame().size() < plugin.getAm().getMinPlayers()) {\n plugin.getGm().setCheckStart(true);\n plugin.getServer().getOnlinePlayers().forEach(pl -> pl.setLevel(0));\n GameState.state = GameState.LOBBY;\n cancel();\n return;\n }\n \n plugin.getGm().getPlayersInGame().stream().forEach(players -> {\n plugin.getMsg().sendActionBar(players, \"&a&lEl juego empieza en: \" + count);\n });\n\n switch (count){\n case 30:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c30 &7segundos\");\n break;\n case 5:\n GameState.state = GameState.GAME;\n plugin.getGm().getPlayersInGame().forEach(p -> {\n plugin.getAm().teleport(p);\n TntWars.getPlayer(p).setCleanPlayer(GameMode.SURVIVAL);\n });\n break;\n case 4:\n case 3:\n case 2:\n case 1:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c\" + count + \" &7segundos\");\n plugin.getGm().getPlayersInGame().forEach(p -> p.playSound(p.getLocation(), Sound.NOTE_PLING, 1F, 1F));\n break;\n case 0:\n plugin.getGm().setDañoEnCaida(false);\n\n //Iniciar hilo de la fase de esconder (Ja, still nope)\n new GameTask(plugin).runTaskTimer(plugin, 20, 20);\n cancel();\n break;\n }\n --count; \n }", "public void startGame() {\n\n // Initialize both players\n players[0] = new Player(\"Paras\", true);\n players[1] = new Player(\"Computer\", false);\n\n // Initialize ChessBoard\n board = new ChessBoard(8);\n movesPlayed = new ArrayList<>();\n\n // Keep playing game until GameStatus is BLACK_WIN or WHITE_WIN\n while (true) {\n\n processTurn(players[0]);\n if (this.status == GameStatus.WHITE_WIN) {\n System.out.println(\"P1 win!\");\n break;\n }\n\n processTurn(players[1]);\n if (this.status == GameStatus.BLACK_WIN) {\n System.out.println(\"P2 win!\");\n break;\n }\n }\n\n }", "@Override\r\n\tpublic void onTournamentMatchEvent(BattleEvent e, MatchStatus matchStatus) {\n\r\n\t\tif(e.getType()== BattleEventType.STARTED){\r\n\t\t\tif (((Battle) e.getSource()).getMe() instanceof PlayableFighter && ((Battle) e.getSource()).getFoe() instanceof PlayableFighter ) {\r\n\t\t\t\tSystem.out.println(\"OnTournament Match Event \");\r\n\t\t\tchild=new BattleMeVsMe(getGame(), (Battle) e.getSource(), this) ; \r\n\t\t\tchild.setVisible(true);\r\n\t\t\t Runnable r = new Runnable() {\r\n\t\t\t\t public void run() {\r\n\t\t\t\t try {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t setVisible(false);\r\n\t\t\t\t }\r\n\t\t\t\t };\r\n\t\t\tThread t = new Thread(r) ;\r\n\t\t\tt.start();\r\n\t\t\t}\r\n\t\t\telse if (((Battle) e.getSource()).getMe() instanceof PlayableFighter ^ ((Battle) e.getSource()).getFoe() instanceof PlayableFighter ){\r\n\t\t\t\tchild2=new BattleMevsFoe(getGame(), (Battle) e.getSource(), this) ; \r\n\t\t\t\tchild2.setVisible(true);\r\n\t\t\t\t Runnable r = new Runnable() {\r\n\t\t\t\t\t public void run() {\r\n\t\t\t\t\t try {\r\n\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t setVisible(false);\r\n\t\t\t\t\t }\r\n\t\t\t\t\t };\r\n\t\t\t\tThread t = new Thread(r) ;\r\n\t\t\t\tt.start();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tif (game.getPlayerID() == -1)\n\t\t\t{\n\t\t\t\tclearMsgArea();\n\t\t\t\tgame.makeConnection();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintMsg(\"You're already in the game.\\n\");\n\t\t\t}\n\t\t\t/*\n\t\t\tBigTwoDeck ndeck = new BigTwoDeck();\n\t\t\tndeck.shuffle();\n\t\t\tgame.start(ndeck);\n\t\t\t*/\n\n\t\t}", "public abstract void openScoreboard(Scoreboard scoreboard, Player player);", "public void updateScoreBoard() {\n Player player1 = playerManager.getPlayer(1);\n Player player2 = playerManager.getPlayer(2);\n MainActivity mainActivity = (MainActivity) this.getContext();\n\n mainActivity.updateScoreBoard(player1, player2);\n }", "public interface GameListener {\n\n /**\n * Called when a player makes a move in the game.\n * @param playerIndex Player identifier\n * @param move Move made\n */\n void moveAdded(int playerIndex, Move move);\n\n /**\n * Called when a move is undone.\n */\n void moveRemoved(Move move);\n\n /**\n * Called when a haslam.blackstone.players turn has started.\n * @param playerIndex Player identifier\n */\n void turnStarted(int playerIndex);\n\n /**\n * Called when the game has started.\n */\n void gameStarted();\n\n /**\n * Called when a previous game is resumed.\n */\n void gameResumed();\n\n /**\n * Called when the game has finished.\n */\n void gameFinished();\n\n /**\n * Called when the game requests a move from the user.\n */\n void userMoveRequested(int playerIndex);\n\n /**\n * Called when a new position is loaded by the user.\n * @param orderedMoves A list of moves made, in order, to assemble the new\n * position.\n */\n void positionLoaded(List<Move> orderedMoves);\n\n /**\n * Called when a position is cleared by the user.\n */\n void positionCleared();\n\n /**\n * Called when the user adds an external player.\n */\n void playerAdded();\n\n}", "@EventHandler\n public void onPlayerShootGoalEvent(GameWinEvent event) {\n this.plugin.getServer().getScheduler().runTaskAsynchronously(this.plugin, () -> {\n synchronized (this.statsController) {\n for (final Player player : event.getWinningTeam()) {\n final Stats stats = GameListener.this.statsController.getByPlayer(player);\n stats.setAmountOfWins(stats.getAmountOfWins() + 1);\n this.statsController.store(stats);\n this.plugin.getServer().getScheduler().runTaskLater(this.plugin, () -> this.updateStats(player, stats), 40L);\n }\n }\n });\n }", "@FXML\n public void btnStartGame(Event e)\n {\n\n LobbyPlayer lobbyPlayer = PlayerSingleton.getPlayer().getLobbyPlayer();\n try {\n List<LobbyPlayer> lobbyPlayerList = LobbyServerConnection.getInstance().getPlayerList(lobbyPlayer);\n\n List<Player> pl = new ArrayList<>();\n\n for (LobbyPlayer lp :lobbyPlayerList) {\n Player p = new Player(lp.getUniqueId(), lp.getName());\n pl.add(p);\n }\n\n //game gets starter on server\n GameServerConnection.getInstance().startGame(pl);\n sleep();\n //tartGamevanuit lobby\n LobbyServerConnection.getInstance().startGame(lobbyPlayer);\n\n } catch (RemoteException e1) {\n log.warning(e1.toString());\n log.warning(\"couldn't create a game\");\n }\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tgame.makeMove(activePlayer, null);\n\t\t}", "public void onBoard(View view)\n {\n Intent intent = new Intent(this, Board.class);\n\n intent.putExtra(constants.player1Name, player1Name);\n intent.putExtra(constants.player2Name, player2Name);\n intent.putExtra(constants.currentPlayer, currentPlayer);\n\n intent.putExtra(constants.roundsLeft, roundsLeft);\n\n RadioGroup options = (RadioGroup) this.findViewById(R.id.gameOptions);\n int optionId = options.getCheckedRadioButtonId();\n\n if (optionId == R.id.dotCapture)\n {\n opt = constants.dotSelected;\n }\n else if (optionId == R.id.boxCapture)\n {\n opt = constants.boxSelected;\n }\n else\n {\n opt = constants.lineSelected;\n }\n\n intent.putExtra(constants.captureOption, opt);\n\n finish();\n startActivity(intent);\n }", "@Override\n\tpublic void onRun(PlatformPlayer player) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent evt) {\n\t\t\t\tv = new SpaceShip(120, 525, 50, 50,1);\t// Create Player1\n\t\t\t\tv2 = new SpaceShip(230, 525, 50, 50,2); // Create Player2\n\t\t\t\tgp = new GamePanel();\n\t\t\t\t//New Game 2 players mode\n\t\t\t\tengine = new GameEngine(gp, v, v2,2);\n\n\t\t\t\t//Remove button's panel from Main frame\n\t\t\t\tframe.getContentPane().remove(buttonPanel);\n\n\t\t\t\t//add KeyListener and GamePanel to Main frame\n\t\t\t\tframe.addKeyListener(engine);\n\t\t\t\tframe.getContentPane().add(gp,BorderLayout.CENTER);\n\n\t\t\t\t//Start timmer\n\t\t\t\tengine.start();\n\n\t\t\t\t//Setting MainFrame and re-panting\n\t\t\t\tframe.validate();\n\t\t\t\tframe.repaint();\n\n\t\t\t\t//Eable KeyListener\n\t\t\t\tframe.requestFocus();\n }", "public static void buttonHandler(ActionEvent e){\t\n\t\t\n\t\tif(firstButtonPressed == false){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\n\t\t\tfirstButton = (JButton)e.getSource();\n\t\t\tlocation = Integer.parseInt(firstButton.getName());\n\t\t\tfirstRow = location/boardBoundsRow;\n\t\t\tfirstColumn = location%boardBoundsColumn;\n\t\t\tfirstSelected = (JPanel)userInterface.boardButtons.getComponent(location);\n\t\t\toldColor = firstSelected.getBackground();\n\t\t\tif(board[firstRow][firstColumn].color.equals(turn) == false){\t\t\t\t\t\t\t\t\t//picked opponent piece\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfirstButtonPressed = true;\n\t\t\tfirstSelected.setBackground(new Color(255,255,51));\n\t\t}\n\t\telse{\n\t\t\tsecondButton = (JButton)e.getSource();\n\t\t\tlocation = Integer.parseInt(secondButton.getName());\n\t\t\tsecondRow = location/boardBoundsRow;\n\t\t\tsecondColumn = location%boardBoundsColumn;\n\t\t\tfirstButtonPressed = false;\n\t\t\tfirstSelected.setBackground(oldColor);\n\t\t\tif(board[secondRow][secondColumn].color.equals(turn)){\t\t\t\t\t\t\t\t\t//own piece can't move there pick new move\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpieces oldPiece = new pieces(firstRow,firstColumn,board[firstRow][firstColumn].name,board[firstRow][firstColumn].color);\n\t\t\tpieces newPiece = new pieces(secondRow,secondColumn,board[secondRow][secondColumn].name,board[secondRow][secondColumn].color);\n\t\t\tif(game.checkAndMovePiece(board, board[firstRow][firstColumn], board[secondRow][secondColumn])){\n\t\t\t\tpushUndoVectors(firstButton.getIcon(), secondButton.getIcon(),oldPiece, newPiece);\n\t\t\t\tsecondButton.setIcon(firstButton.getIcon());\n\t\t\t\tfirstButton.setIcon(null);\n\t\t\t\tif(turn.equals(\"white\")){\n\t\t\t\t\tking.whiteKingCheck = false;\n\t\t\t\t}\n\t\t\t\tif(turn.equals(\"black\")){\n\t\t\t\t\tking.blackKingCheck = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitchPlayers();\n\t\t\t\tString playerTurn = \"Player turn: \";\n\t\t\t\tuserInterface.turn.setText(playerTurn.concat(turn));\n\t\t\t\tif(king.whiteKingCheck==true || king.blackKingCheck == true){\n\t\t\t\t\tString checkMate = checkEndGame();\n\t\t\t\t\tuserInterface.check.setText(\"You are in check!\");\n\t\t\t\t\tcheckMateScenario(checkMate);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tuserInterface.check.setText(\"You are not in check\");\n\t\t\t\t}\n\t\t\t\tif(endGame.staleMate(board, turn)){\n\t\t\t\t\tJOptionPane.showMessageDialog(userInterface.frame, \"StaleMate!\");\n\t\t\t\t\tnewGame();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tJOptionPane.showMessageDialog(userInterface.frame, \"Invalid Move! Please try again\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tprotected void handleMouseClick(int row, int col, int mouseButton) {\n\t\tthis.turn = getTurn();\n\t\tif (activeBoard) {\n\t\t\tif (getBoard().getPieceCount(turn) == 0) {\n\t\t\t\tif(initAvailable){\n\t\t\t\t\tplayer.setMove(init_row, init_col, row, col);\n\t\t\t\t\tinitAvailable = false;\n\t\t\t\t\tdecideMakeManualMove(player);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tinit_row = row;\n\t\t\t\t\tinit_col = col;\n\t\t\t\t\tinitAvailable = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayer.setMove(-1, -1, row, col);\n\t\t\t\tdecideMakeManualMove(player);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void gameTurn(int move){\n int gameWon = -1;\n boolean gameTie = false;\n //set the board to a move and print it\n if (loggedInUser.myGame.currentLetter.equals(\"X\")){\n gameBoard [move] = 1;\n printMove(move,\"X\");\n }\n else{\n gameBoard[move] = 2;\n printMove(move,\"O\");\n }\n //Update the status of the buttons graying out the ones that were played\n updateButtons();\n\n //checks if the game has been won or not\n gameWon = checkGameWon();\n\n //check of the game has been tied\n gameTie = checkTie();\n\n Game game = new Game(loggedInUser.opponentId);\n game.currentMove = move;\n\n if (loggedInUser.myGame.currentLetter.equals(\"X\")){\n game.currentLetter = \"O\";\n }else {\n game.currentLetter = \"X\";\n }\n\n //if the game hasn't been won and the game hasnt been tied the other playesr turn is made\n if(gameWon != 0 && !gameTie){\n game.gameInProgress = true;\n }\n //if game won\n else if (gameWon != 0){\n //remove all of the buttons\n removeAllButtons();\n game.gameInProgress = false;\n }\n else{\n playerText.setText(\"The game is tie\");\n turn.setText(\"No one wins\");\n game.gameInProgress = false;\n }\n\n //set data\n mDatabaseRef.child(loggedInUser.myId).child(\"myGame\").setValue(game);\n mDatabaseRef.child(loggedInUser.opponentId).child(\"myGame\").setValue(game);\n }", "@Override\r\n public void clicked(InputEvent event, float x, float y) {\n\r\n \t\tGameDataInterface gameData = GameDataUtils.getInstance();\r\n \t\t\r\n \t\t/*\r\n \t\t * hardcoded a instance to send to the gameDataInterface\r\n \t\t */\r\n \t\tInstance instance = new Instance();\r\n \t\tinstance.setBoardId(1);\r\n \t\tinstance.setInstanceId(2);\r\n \t\tinstance.setMissionId(1);\r\n \t\tinstance.setTurnId(1);\r\n \t\t\r\n \t\tgameData.loadInstance(game,instance); \r\n \t\tgame.setScreen(game.board);\r\n }", "private void updatePlayersStatus() {\n PlayerModel[] playersInLobby = this.lobbyModel.getPlayersInLobby();\n int i = 0;\n for (; i < playersInLobby.length; i++) {\n final PlayerModel playerInLobby = playersInLobby[i];\n final TextField playerStatus = this.playersStatus[i];\n playerStatus.setColor(playerInLobby.isReady() ? Color.GREEN : Color.RED);\n playerStatus.setText(playerInLobby.getUsername());\n playerInLobby.clearPropertyChangeListeners();\n this.addPropertyChangeListener(playerInLobby, new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n String propertyName = evt.getPropertyName();\n if (propertyName.equals(\"username\")) {\n playerStatus.setText((String) evt.getNewValue());\n } else if (propertyName.equals(\"ready\")) {\n playerStatus.setColor((boolean) evt.getNewValue() ? Color.GREEN : Color.RED);\n }\n }\n });\n if (i >= 1 && this.host) {\n TextButton kickButton = kickButtons[i - 1];\n kickButton.clearListeners();\n kickButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent e, float x, float y) {\n Connection connection = ConnectionManager.getInstance().getConnection();\n if (connection instanceof ServerConnection) {\n UUID playerUUID = playerInLobby.getPlayerUUID();\n ServerSenderReceiver client = ((ServerConnection) connection).getClientByUUID(playerUUID);\n if (client != null) {\n connection.sendPacket(new KickPlayerPacket(playerUUID));\n ((ServerConnection) connection).removeClient(client);\n connection.getPlayer().getLobby().removePlayer(client.getPlayer());\n }\n }\n }\n });\n kickButton.setDisabled(false);\n }\n }\n for (int j = i; j < this.playersStatus.length; j++) {\n final TextField playerStatus = this.playersStatus[j];\n playerStatus.setColor(Color.RED);\n playerStatus.setText(\"\");\n if (j >= 1 && this.host) {\n TextButton kickButton = kickButtons[j - 1];\n kickButton.clearListeners();\n kickButton.setDisabled(true);\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\tif(!isFinished){\n\t\t\t//get the button\n\t\t\tJButton clicked = (JButton) e.getSource();\n\t\t\t\n\t\t\tfor(int row=0;row<SIZE;row++){\n\t\t\t\tfor(int col=0;col<SIZE;col++){\n\t\t\t\t\tif(clicked == buttonGrid[row][col]){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//fill the virtual array with text (O or X)\n\t\t\t\t\t\tengine.fill(row, col);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//fill the real graphical button with text (O or X)\n\t\t\t\t\t\tif(engine.counter%2==0){\n\t\t\t\t\t\t\tbuttonGrid[row][col].setText(\"X\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuttonGrid[row][col].setText(\"O\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//disable the button\n\t\t\t\t\t\tbuttonGrid[row][col].setEnabled(false);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//check if one wins the game\n\t\t\tisFinished = engine.isFinished();\n\t\t\t\n\t\t\t//if finished,\n\t\t\tif(isFinished) {\n\t\t\t\t\n\t\t\t\t//send message\n\t\t\t\tif(engine.counter%2==0){\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"'X' wins the game\");\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"'O' wins the game\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t//check if the game is a tie\n\t\t\t}else if(engine.counter==SIZE*SIZE){\n\t\t\t\tisFinished = true;\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"The game is a tie\");\n\t\t\t}\n\t\t\t \n\t\t\t//part where program asks user whether he or she wants extra games\n\t\t\tif(isFinished) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(frame, \"Do you want to player another game?\", \"Message Board\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\n\t\t\t\tif(option == JOptionPane.YES_OPTION){\n\t\t\t\t\treset();\n\t\t\t\t} else{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void notifyPlayerChanged(PlayerNumber newPlayer);", "@Override\n\tpublic void onGameOver(ReadOnlyBoard board, Counter winner) {\n\n\t}", "private void handleGame(Tile t) {\r\n boolean clickedOnBomb = t.handleTile(); \r\n if (clickedOnBomb) {\r\n gameRunning = false;\r\n status.setText(\"You Lost! Press Reset to try again!\");\r\n timer.stop();\r\n } else {\r\n openFloor(t);\r\n updateClearedTiles();\r\n }\r\n if (clearedTiles >= gridSize * gridSize - numBombs) {\r\n gameRunning = false;\r\n status.setText(\"You Win! Press Reset to play more!\");\r\n Game.resetStopwatch();\r\n timer.stop();\r\n String nickname = JOptionPane.showInputDialog(\r\n \"Congrats! What name would you like to add to the leaderboard?\");\r\n scoreboard.put(nickname, totalMoves);\r\n } \r\n }", "public void play() {\n HashSet<Board> positionsPlayed = new HashSet<Board>();\n _board = new Board();\n\n while (true) {\n int playerInd = _board.turn().ordinal();\n Move next;\n if (_playing) {\n if (_board.gameOver()) {\n announceWinner();\n _playing = false;\n continue;\n }\n if (_hasGUI) {\n if (_players[playerInd].type().equals(\"human\")) {\n if (_ready) {\n next = _nextMove;\n } else if (_readyCommand) {\n processCommand(_nextCommand);\n next = null;\n } else {\n continue;\n }\n } else {\n next = _players[playerInd].makeMove();\n }\n } else {\n next = _players[playerInd].makeMove();\n }\n assert !_playing || next != null;\n } else {\n if (_hasGUI) {\n System.out.print(\"\");\n if (_readyCommand) {\n processString(_nextCommand);\n }\n } else {\n getMove();\n }\n next = null;\n }\n if (next != null) {\n assert _board.isLegal(next);\n _board.makeMove(next);\n if (_players[playerInd].type().equals(\"machine\") && !_hasGUI) {\n System.out.println(_players[playerInd].side().abbrev().toUpperCase() + \"::\" + next.toString());\n if (_autoprint) {\n System.out.println(_board.toString2());\n }\n }\n if (_board.gameOver()) {\n announceWinner();\n _playing = false;\n }\n }\n _ready = false;\n }\n }", "void userMoveRequested(int playerIndex);", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tint counter = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < textFieldHolder.size(); i++){//if field isn't empty\n\t\t\t\t\t\tif(!textFieldHolder.get(i).getText().equals(\"\")){\n\t\t\t\t\t\t\t//game.addTeamToGame(textFieldHolder.get(i).getText()); // adds team to game\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"teams: \"+ textFieldHolder.get(i).getText());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(host.isSelected()){\n\t\t\t\t\t\tString portStr = portText.getText();\n\t\t\t\t\t\tSystem.out.println(\"port # : \" + portStr);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint portInt = Integer.parseInt(portStr);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint sliderValue = hostSlider.getValue();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tgameData = new Jeopardy_Game(fileName, teamsFromUser, gameType);\n\t\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnew GameServer(portInt, sliderValue, gameData);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew GameClient(portInt, hostUN.getText());\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(joinGame.isSelected()){\n\t\t\t\t\t\tString portStr = joinPort.getText();\n\t\t\t\t\t\tSystem.out.println(\"port # : \" + portStr);\n\t\t\t\t\t\tString ipStr = ip.getText();\n\t\t\t\t\t\tint portInt = Integer.parseInt(portStr);\n\t\t\t\t\t\tnew GameClient(portInt, joinName.getText());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{ //if \"not networked\" is selected\n\t\t\t\t\t\tdisplayGB();\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t}", "private Board playerMove(Board board)\n {\n System.out.println(\"Player Move\");\n \n Scanner scanner = new Scanner(System.in);\n int i = scanner.nextInt();\n int j = scanner.nextInt();\n \n board.array[i][j] = PLAYER;\n \n displayBoard(board);\n \n return board;\n }", "void addBoardListener(BoardListener boardListener);", "@Override public void widgetSelected(SelectionEvent arg0) {\n\t\t\t if((gameAlive == false)&&(! (domain.getText().isEmpty()))&&(! algorithm.getText().isEmpty())&&(! hardLevel.getText().isEmpty())) {\r\n\t\t\t\t //get selected combos and start conversation with the model\r\n\t\t\t\t String s = \"SelectGame \"+domain.getText()+\":\"+hardLevel.getText()+\",SelectAlgoritm \"+algorithm.getText()+\",play\";\r\n\t\t\t\t actions = s.split(\",\");\r\n\t\t\t\t gameAlive = true;\r\n\t\t\t\t if(domain.getText().equals(\"TicTacToe\")) {\r\n\t\t\t\t\t board = new TicTacToeCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t\t// board.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));\r\n\t\t\t\t }\r\n\t\t\t\t else if(domain.getText().equals(\"Reversi\")) {\r\n\t\t\t\t\t board = new ReversiCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t }\r\n\t\t\t\t try {\r\n\t\t\t\t\t startView();\r\n\t\t\t\t } catch (IOException e) {\r\n\t\t\t\t\t getExeptionMessage(e.getMessage());\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }", "public void configureSocketEvents() {\n socket.on(\"startGame\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n\n try {\n String start = (String) data.getString(\"room\");\n if (start.equals(roomHost)) {\n startGame = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }).on(\"playerNames\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONArray data = (JSONArray) args[0];\n try {\n\n for (int i = 0; i < data.length(); i++) {\n playerNames[i] = (String) data.getString(i);\n }\n for (int i = data.length(); i < maxPlayers; i++) {\n playerNames[i] = \"Empty\";\n }\n updateNames();\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to update names\");\n }\n }\n }).on(\"maxPlayers\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n try {\n maxPlayers = (int) data.getInt(\"maxPlayers\");\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to get max players\");\n }\n }\n }).on(\"lobbyUpdate\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n try {\n String room = (String) data.getString(\"id\");\n if (room.equals(roomHost)) {\n updateLobby();\n }\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to get max players\");\n }\n }\n }).on(\"roomCanceled\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n try {\n String room = (String) data.getString(\"roomid\");\n if (room.equals(roomHost)) {\n mainmenu = true;\n }\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to get max players\");\n }\n }\n });\n }", "private JFrame playGame(){\r\n \r\n JPanel board = new JPanel();\r\n board.setLayout(new GridLayout(row,column));\r\n \r\n //cell button 2d array\r\n JButton[][] cellButtons = new JButton[row][column];\r\n for (int i = 0; i < row; ++i) {\r\n for (int j = 0; j < column ; ++j) {\r\n cellButtons[i][j] = new JButton();\r\n }\r\n }\r\n \r\n \r\n for (int i = 0; i < row; ++i) {\r\n for (int j = 0; j < column ; ++j) {\r\n int temp_i = i;\r\n int temp_j = j;\r\n \r\n cellButtons[temp_i][temp_j] = new JButton();\r\n ImageIcon imageIcon = new ImageIcon(new ImageIcon(\"src\\\\empty circle.png\").getImage().getScaledInstance(500 / row, 500 / column, 1));\r\n cellButtons[temp_i][temp_j].setIcon(imageIcon);\r\n cellButtons[temp_i][temp_j].setBackground(Color.orange);\r\n \r\n \r\n \r\n cellButtons[temp_i][temp_j].addActionListener(new ActionListener() \r\n {\r\n public void actionPerformed(ActionEvent e) //event handler\r\n {\r\n int computerEntryKey = 0;\r\n if(usable(temp_j) != 0){\r\n if(move%2 == 0){ //sıra user1 de ise seçilen columna oyna\r\n ImageIcon imageIcon = new ImageIcon(new ImageIcon(\"src\\\\blue circle.png\").getImage().getScaledInstance(500 / row, 500 / column, 1));\r\n cellButtons[usable(temp_j)-1][temp_j].setIcon(imageIcon);\r\n cellButtons[usable(temp_j)-1][temp_j].setBackground(Color.orange);\r\n\r\n gameCells[usable(temp_j)-1][temp_j].setCell('X');\r\n ++move;\r\n if (end(cellButtons)) { //oyun sonlandıysa kazandı mesajını bas ve yeniden başlat\r\n if (check(cellButtons) == 1) {\r\n JOptionPane.showMessageDialog(null, \"User 1 Winner\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"The game ended in a draw!\");\r\n }\r\n computerEntryKey = 1;\r\n window.dispose();\r\n String[] arg = new String[10];\r\n arg[0] = \"\";\r\n main(arg);\r\n }\r\n }\r\n else if(move%2 == 1 && gameType == 1){ //oyun modu pvp ise ve sıra user2 iki de ise seçilen columna oyna\r\n ImageIcon imageIcon = new ImageIcon(new ImageIcon(\"src\\\\red circle.png\").getImage().getScaledInstance(500 / row, 500 / column, 1));\r\n cellButtons[usable(temp_j)-1][temp_j].setIcon(imageIcon);\r\n cellButtons[usable(temp_j)-1][temp_j].setBackground(Color.orange);\r\n\r\n gameCells[usable(temp_j)-1][temp_j].setCell('O');\r\n ++move;\r\n if (end(cellButtons)) { //oyun sonlandıysa kazandı mesajını bas ve yeniden başlat\r\n if (check(cellButtons) == 2) {\r\n JOptionPane.showMessageDialog(null, \"User 2 Winner\");\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"The game ended in a draw!\");\r\n }\r\n\r\n window.dispose();\r\n String[] arg = new String[10];\r\n arg[0] = \"\";\r\n main(arg);\r\n }\r\n }\r\n if(move%2 == 1 && gameType == 2 && computerEntryKey == 0){//pvc modunda computerın sırası ise oynar\r\n ImageIcon imageIcon = new ImageIcon(new ImageIcon(\"src\\\\red circle.png\").getImage().getScaledInstance(500 / row, 500 / column, 1));\r\n int tmpcol = attack3();\r\n if(tmpcol<0)\r\n tmpcol = defence3();\r\n if(tmpcol < 0)\r\n tmpcol = attack1();\r\n if(tmpcol < 0)\r\n tmpcol = findEmptyColumn();\r\n \r\n int tmprow = usable(tmpcol)- 1;\r\n \r\n cellButtons[tmprow][tmpcol].setIcon(imageIcon);\r\n cellButtons[tmprow][tmpcol].setBackground(Color.orange);\r\n\r\n gameCells[tmprow][tmpcol].setCell('O');\r\n ++move;\r\n if (end(cellButtons)) {//oyun sonlandıysa kazandı mesajını bas ve yeniden başlat\r\n if (check(cellButtons) == 2) {\r\n JOptionPane.showMessageDialog(null, \"Computer Winner\");\r\n } \r\n else {\r\n JOptionPane.showMessageDialog(null, \"The game ended in a draw!\");\r\n }\r\n\r\n window.dispose();\r\n String[] arg = new String[10];\r\n arg[0] = \"\";\r\n main(arg);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n //cell button 2d arrayini gridlayout olan board paneline ekler\r\n for (int i = 0; i < row; ++i) {\r\n for (int j = 0; j < column ; ++j) {\r\n board.add(cellButtons[i][j]);\r\n }\r\n }\r\n \r\n window.add(board);\r\n return window;\r\n }", "public void mouseClicked(MouseEvent e) {\n ready = 1;\n Object source = e.getComponent();\n if (source == grid[7] || source == grid[15] || source == grid[23] || source == grid[31] || source == grid[39] || source == grid[47] || source == grid[55] || source == grid[63]) {\n JOptionPane.showMessageDialog(null, \"You cannot select the far right row, try further to the left.\");\n ready = 0;\n } else {\n for (int i = 0; i < 64; i++) {\n if (source == grid[i]) {\n check = comp.checkHorizontalPlay(i);\n if (check == 0) {\n comp.horizontalPlay(i);\n grid[i].setBackground(black);\n grid[i + 1].setBackground(black);\n } else {\n JOptionPane.showMessageDialog(null, \"That play is not available, one or both positions are already played.\");\n ready = 0;\n }\n }\n }\n }\n if (ready == 1) {\n play = comp.nextMove();\n if (play < 56) {\n grid[play].setBackground(white);\n grid[play + 8].setBackground(white);\n } else {\n JOptionPane.showMessageDialog(null, \"Human wins! You most likely cheated!\");\n updateStats(1);\n }\n winner = comp.checkWinner();\n if (winner == 1) {\n JOptionPane.showMessageDialog(null, \"Computer wins! My intelect is far greater than yours!\");\n updateStats(0);\n } else if (winner == 2) {\n JOptionPane.showMessageDialog(null, \"Draw game. You most likely cheated!\");\n updateStats(0);\n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n activedicenumberselected = 0;\n AttackedPlayer = 99;\n if (listenforplayerwormnumber) {\n activeplayerwormnumberselected = setwormnumber;\n AttackedPlayer = setattackedplayernumber;\n }\n\n if (activeplayerwormnumberselected != 0 && AttackedPlayer != 99) {\n if (Dice.getDiceSum() == PlayerWormsArray.get(AttackedPlayer).getPlayerWormsArrayListWormValue(0)) {\n currentplayeractions.performTakeWormFromPlayer(PlayerWormsArray.get(AttackedPlayer).getPlayerWormsArrayListWormValue(0));\n PlayerWormsArray.get(AttackedPlayer).RemoveStolenWormFromPlayer();\n currentplayeractions.setDiceRollAvailable(true);\n TakeWormFromPlayerAvailable = false;\n TakeWormFromGrillAvailable = false;\n listenfordicenumber = false;\n listenforplayerwormnumber = false;\n listenforgrillwormnumber = false;\n EndPlayerTurn = true;\n }\n }\n performGamePanelUpdate();\n }", "public void play(MouseEvent e) {\n\t\tLogic.curComp = (JLabel) e.getComponent();\n\t\tString name = Logic.curComp.getName();\n\t\tSystem.out.println(name);\n\t\tint posx = (int) name.charAt(0) - 48;\n\t\tint posy = (int) name.charAt(1) - 48;\n\t\tint piece = Logic.arr[posx][posy]; \n\t\t\n\t\tif (moveRed(piece)) { // Checks turn && target piece is pawn or king\n\t\t\tjumping = false;\n\t\t\tprepare(posx, posy, piece, null);\n\t\t} else if (moveBlack(piece)) { // Checks turn && target piece is pawn or king\n\t\t\tjumping = false;\n\t\t\tprepare(posx, posy, piece, \"black\");\n\t\t} else if (validate(posx, posy, Playboard.red, Playboard.rKing , Playboard.redSanta, Playboard.redSKing) && finishRedMoves(piece)){ // Checks that previous component was pawn or king and that it's a legal move\n\t\t\tapplyMove(name, posx, posy, piece);\n\t\t\tnext();\n\t\t} else if (validate(posx, posy, Playboard.black, Playboard.bKing, Playboard.blackSanta, Playboard.blackSKing) && finishBlackMoves(piece)){ // Checks that previous component was pawn or king and that it's a legal move\n\t\t\tapplyMove(name, posx, posy, piece);\n\t\t\tnext();\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid move\");\n\t\t}\n\t}", "public void onAction(Player player) {\n }", "@Override\n\tpublic void onOpponentTurnListener() {\n\n\t}", "public void His_Turn(String opponent_coord){\r\n\r\n\t\t/*\r\n\t\t * will get xcoor and ycoor\r\n\t\t * NOTE: We don't need to validate, it should be already validate\r\n\t\t * we only need this function to parse the xcoor and ycoor\r\n\t\t */\r\n\t\tValidate_Input(opponent_coord);\r\n\t\t\r\n\t\t/*\r\n\t\t * update hit_history\r\n\t\t */\r\n\t\tmyBoard.hit_history[xcoor][ycoor]=1; \r\n\r\n\t\tboolean hit=false;\r\n\t\t\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(myBoard.hit_or_miss(xcoor, ycoor)){\r\n\t\t\tSound.playSound(\"res/explosion.wav\");\r\n\t\t\thit=true;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSound.playSound(\"res/Missile_Incoming_FlyBy.wav\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\t// Check if a ship was sunk and update the board accordingly\r\n\t\tString sunk=myBoard.check_sunk();\r\n\t\tif(sunk!=\"nothing\"){\r\n\t\t\tSound.playSound(\"res/bubbles.wav\");\r\n\t\t\tif(myBoard.check_all_sunk()){\r\n\t\t\t\topponent_victory=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t// Handle all the output/display after all the calculation...\r\n\t\tdisplay.clearScreen();\r\n\t\tthis.Display_Boards();\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(hit)\r\n\t\t\tdisplay.putStaticLine(\"Opponent attacked \" + opponent_coord+\"... \" + \"Hit!\");\r\n\t\telse\r\n\t\t\tdisplay.putStaticLine(\"Opponent attacked \" + opponent_coord+\"... \" + \"Miss\");\r\n\t\tif(sunk!=\"nothing\"){\r\n\t\t\tdisplay.putStaticLine(\"\");\r\n\t\t\tdisplay.putStaticLine(\"He sunk your \" + sunk); \r\n\t\t}\r\n\t\tif(opponent_victory){\r\n\t\t\tdisplay.putStaticLine(\"\");\r\n\t\t\tdisplay.putStaticLine(\"You LOSE!!!!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tdisplay.putStaticLine(\"Press Enter to continue with you turn...\");\r\n\t\tdisplay.printScreen();\r\n\t\tdisplay.printPrompt(\"user> \");\r\n\t\t\r\n\t\thit=false;\r\n\t\tturn_change=true;\r\n\t\t// now it's my turn again\r\n\t\tthis.isTurn=true;\r\n\t}" ]
[ "0.67720234", "0.66271514", "0.6624912", "0.66136056", "0.6550955", "0.63632584", "0.63387126", "0.6332779", "0.632534", "0.6255528", "0.6229603", "0.6189877", "0.61835206", "0.6163363", "0.61580074", "0.6150989", "0.61505044", "0.61479247", "0.61438274", "0.6137108", "0.6136151", "0.61285865", "0.6124555", "0.6122382", "0.61209875", "0.6118157", "0.6093752", "0.60710645", "0.6063879", "0.6063237", "0.60632104", "0.6052926", "0.6043343", "0.6037399", "0.6029196", "0.60179657", "0.6015844", "0.60076916", "0.59959203", "0.59913844", "0.59905994", "0.5986575", "0.5983488", "0.59792084", "0.5960183", "0.5959886", "0.5956943", "0.59501404", "0.594602", "0.59435785", "0.5942766", "0.5930921", "0.5915678", "0.59154713", "0.59083474", "0.5907622", "0.5905693", "0.589437", "0.587997", "0.58796287", "0.58778316", "0.58709544", "0.5862653", "0.58606607", "0.5849114", "0.58460206", "0.58325803", "0.5830684", "0.58298963", "0.582988", "0.58262765", "0.5822578", "0.5821261", "0.58121324", "0.58119065", "0.58002275", "0.5797571", "0.57939357", "0.5790445", "0.5789882", "0.5757945", "0.57554954", "0.57554936", "0.5749625", "0.57464004", "0.5743382", "0.5741727", "0.57415605", "0.5738395", "0.5736622", "0.57346284", "0.5733439", "0.5733203", "0.57307327", "0.5726305", "0.572117", "0.57170177", "0.5716384", "0.57152927", "0.57142293" ]
0.640584
5
Computes the starting location for the component
@SuppressWarnings("WeakerAccess") public int[] getNextComponentStartingLocation(Dimension dimension) { for (int y = 0; y < lines.length; y++) { for (int x = 0; x < lines[0].length; x++) { if (lines[y][x]) { continue; } if (hasEnoughSpace(x, y, dimension)) { return new int[]{x, y}; } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getStartLocation() {\r\n \treturn new Location(0,0);\r\n }", "public Location getStartingLocation() {\r\n return startingLocation;\r\n }", "public Coordinate getStart( )\n\t{\n\t\treturn startLocation;\n\t}", "protected Vector3D getStartPosition(){\r\n\t\treturn new Vector3D(\r\n\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + pnlSubDeviceButtons.getHeightXY( TransformSpace.GLOBAL)\r\n\t\t);\r\n\t}", "@Override\n\tprotected Point getInitialLocation(Point initialSize)\n\t{\n\t\tShell shell = this.getShell();\n Monitor primary = shell.getMonitor();\n Rectangle bounds = primary.getBounds ();\n int x = bounds.x + (bounds.width - initialSize.x) / 2;\n int y = bounds.y + (bounds.height - initialSize.y) / 2;\n\t\treturn new Point(x, y);\n\t}", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "public Point getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}", "public float getStartX() {return startX;}", "int getStartPosition();", "int getStartPosition();", "void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }", "public abstract int getStartPosition();", "org.mojolang.mojo.lang.Position getStartPosition();", "public XYPoint getSnakeHeadStartLocation();", "public Point start() {\r\n return this.start;\r\n }", "public Position getStart() {\r\n return start;\r\n }", "public double getStartX()\n {\n return startxcoord; \n }", "public Position getStartPosition() {\n return start;\n }", "public ImPoint getCurrentLoc() {\n \treturn this.startLoc;\n }", "public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }", "public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }", "public Point getStart() {\n\t\treturn _start;\n\t}", "public Point getStart() {\n return mStart;\n }", "@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}", "public int getStartPosition() {\n return startPosition_;\n }", "public GeoPointND getStartPoint();", "public Vector3f getStartPosition()\n {\n return startPosition;\n }", "public Point getInitialPosition()\n {\n return this.initialPosition;\n }", "public abstract Vec2 startPosition();", "public Ndimensional getStartPoint();", "double getStartX();", "public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }", "public int getStartPosition() {\n return startPosition_;\n }", "public Point getStart(){\n\t\treturn bigstart;\n\t}", "public String getStartPoint()\n\t{\n\t\tString getStart;\n\t\tgetStart = (this.startPoint.xPosition + \",\" + this.startPoint.yPosition);\n\t\treturn getStart;\n\t}", "public WeightedPoint getStart()\n {\n return map.getStart();\n }", "public void setStart() {\r\n // this code handles all events for squares\r\n int x1 = this.origin.getX(); //origin point is used to keep track\r\n int y1 = this.origin.getY(); //of where the rectangle was first pressed\r\n int x2 = this.end.getX();\r\n int y2 = this.end.getY();\r\n int L = this.length;\r\n\r\n if (x1 >= x2 && y1 >= y2) {\r\n this.start = new Point(x1 - L, y1 - L);\r\n } else if (x1 >= x2 && y1 <= y2) {\r\n this.start = new Point(x1 - L, y1);\r\n } else if (x1 <= x2 && y1 >= y2) {\r\n this.start = new Point(x1, y1 - L);\r\n } else if (x1 <= x2 && y1 <= y2) {\r\n this.start = new Point(x1, y1);\r\n }\r\n }", "public double getStartX() {\r\n return startx;\r\n }", "public Position getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}", "private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }", "public double getStart();", "public GeoPoint getStart(){\n return getOrigin();\n }", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "public Position getStartPosition() {\n return startPosition;\n }", "public double getDistanceToStart() {\r\n return startDistance;\r\n }", "public Vector2 getInitLoc() { return initLoc; }", "public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {state.initialize();}\n else\n {parentLevel.state.copyTo(state);}\n }\n\n notifyStart();\n\n refresh();\n }", "public Point getStartPoint() {\n\t\treturn startPoint;\n\t}", "protected void locateOnScreen(Component component) {\r\n \t\t Dimension paneSize = component.getSize();\r\n \t Dimension screenSize = component.getToolkit().getScreenSize();\r\n \t component.setLocation(\r\n \t (screenSize.width - paneSize.width) / 2,\r\n \t (screenSize.height - paneSize.height) / 2);\r\n\t\t\t// TODO: handle exception\r\n \r\n }", "public static int getStartYCoordinate(){\n\t\tint y = getThymioStartField_Y();\n\t\tif(y == 0){\n \t\t\n \t}else{\n \t\ty *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}", "public int getLocation() {\n\t\treturn 0;\n\t}", "public int getStart() {\r\n\t\treturn this.offset;\r\n\t}", "@Override\n\tpublic Position getInitialPosition() \n\t{\n\t\treturn initialPosition;\n\t}", "public int getStartX() {\r\n\t\treturn startX;\r\n\t}", "public String getInitialPosition() {\n\t\treturn initPos;\n\t}", "public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }", "public void startPosition();", "double getStartY();", "@Override\n SubwayStation getStartLocation() {\n return this.startLocation;\n }", "public double getStartX() {\n\treturn v1.getX();\n }", "public Position getStartPosition() throws IllegalStateException{\r\n for (int i = 0; i < mazeData.length; i++) {\r\n for (int j = 0; j < mazeData[i].length; j++) {\r\n if (mazeData[i][j] == START)\r\n return new Position(i, j);\r\n }\r\n }\r\n throw new IllegalStateException(\"Could not find a start-point\");\r\n }", "public double getStart() {\n return start;\n }", "public double getStartY()\n {\n return startycoord; \n }", "public float getInitialPosition() {\n return initialPosition;\n }", "public float getDistanceToStart() {\n\t\treturn distanceToStart;\n\t}", "public Point getLocation() {\r\n return layout.location;\r\n }", "public int getStart() {\r\n\t\treturn start;\r\n\t}", "public void setStartX(double x)\n {\n startxcoord=x; \n }", "private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}", "public double getStartY() {\n\treturn v1.getY();\n }", "public int getStartx(){\n\t\treturn startx;\n\t}", "public ArrayList<Vertex> initStart() {\r\n\t\tArrayList<Vertex> startPoint = new ArrayList<>();\r\n\t\tstartPoint.add(new Vertex(17, 2));\r\n\t\tstartPoint.add(new Vertex(16, 14));\r\n\t\tstartPoint.add(new Vertex(15, 14));\r\n\t\tstartPoint.add(new Vertex(11, 22));\r\n\t\tstartPoint.add(new Vertex(11, 21));\r\n\t\tstartPoint.add(new Vertex(22, 3));\r\n\t\tstartPoint.add(new Vertex(22, 2));\r\n\t\tstartPoint.add(new Vertex(20, 3));\r\n\t\tstartPoint.add(new Vertex(17, 21));\r\n\t\tstartPoint.add(new Vertex(17, 20));\r\n\t\tstartPoint.add(new Vertex(15, 21));\r\n\t\tstartPoint.add(new Vertex(12, 21));\r\n\t\treturn startPoint;\r\n\t}", "public void checkAndSetStart() {\r\n\t\tSystem.out.println(\"\t\tcheckAndSetStart \"+this.id +\" size:\"+this.components.size());\r\n\t\tif(hasNoStart()) {\t\t\r\n\t\t\tList<ComponentConfig> longestVisitedComps = new ArrayList<ComponentConfig>();\r\n\t\t\tComponentConfig longestVisitedComp = null;\r\n\t\t\tint longestVisited = 0;\r\n\t\t\tfor(ComponentConfig comp: components) {\r\n\t\t\t\tint visited = traverseModel(0,comp);\r\n\t\t\t\tSystem.out.println(\"\t\t\ttraverse\"+comp.getId()+\" v:\"+visited);\r\n\t\t\t\tif(visited > longestVisited) {\r\n\t\t\t\t\tlongestVisited = visited;\r\n\t\t\t\t\tlongestVisitedComps.clear();\r\n\t\t\t\t\tlongestVisitedComps.add(comp);\r\n\t\t\t\t} else if(visited == longestVisited) {\r\n\t\t\t\t\tlongestVisitedComps.add(comp);\r\n\t\t\t\t}\r\n\t\t\t\t// catch deadloop, if all component are visisted\r\n\t\t\t\tif(longestVisited == components.size())\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfor(ComponentConfig st: longestVisitedComps) {\r\n\t\t\t\tst.setIsstartcaller(true);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t// find other component that call to the same component that start component calls within model\r\n\t\tList<ComponentConfig> startComps = new ArrayList<ComponentConfig>();\r\n\t\tfor(ComponentConfig st: components) {\r\n\t\t\tif(st.isIsstartcaller())\r\n\t\t\t\tstartComps.add(st);\r\n\t\t}\r\n\t\tList<Integer> calls = new ArrayList<Integer>();\r\n\t\tfor(ComponentConfig st: startComps) {\r\n\t\t\tif(st.isIsstartcaller() && st.getCalls()!=null) {\r\n\t\t\t\tfor(int i: st.getCalls())\r\n\t\t\t\t\tfor(ComponentConfig eachComp: components) {\r\n\t\t\t\t\t\tSystem.out.println(\"\tfind comp that call \"+i+\" \"+eachComp.getCalls());\r\n\t\t\t\t\t\tif(eachComp.getCalls()!=null)\r\n\t\t\t\t\t\t\tfor(int callee: eachComp.getCalls()) {\r\n\t\t\t\t\t\t\t\t// found component that call to the same target\r\n\t\t\t\t\t\t\t\tif(callee == i)\r\n\t\t\t\t\t\t\t\t\teachComp.setIsstartcaller(true);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\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}\r\n\t}", "private Point2D computeLayoutOrigin() {\r\n\r\n\t\tDimension size = getSize();\r\n\r\n\t\tPoint2D.Float origin = new Point2D.Float();\r\n\r\n\t\torigin.x = (float) (size.width - textLayout.getAdvance()) / 2;\r\n\t\torigin.y = (float) (size.height - textLayout.getDescent() + textLayout\r\n\t\t\t\t.getAscent()) / 2;\r\n\r\n\t\treturn origin;\r\n\t}", "@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}", "private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}", "Long getStartAt();", "private void setStart()\n {\n for(int i = 0; i < cities.size(); i++)\n System.out.println(\"Location: \"+i+\" \"+cities.get(i).getSourceName());\n \n System.out.println(\"Which city would you like to start at? Enter the location number\"); \n computePaths(cities.get(input.nextInt()));\n printMenu(); \n }", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "IntPoint getLocation();", "@Override\n protected void initLocation() {\n }", "public double getStartingDistance() {\n return myStartDistance;\n }", "public int getStart() {\r\n return start;\r\n }", "public int startOffset();", "public float getStartY() {return startY;}", "public int getStart() {\n\t\treturn start;\n\t}", "@Override\n public Location getDisplayedLocation() {\n this.displayedLocation = new Location((int)pane.getHvalue(), (int)pane.getVvalue(), curFloor, \"Unknown\");\n return displayedLocation;\n }", "public void setStartX(float startX) {this.startX = startX;}", "public int getStart() {\n return start;\n }", "public int getStart() {\n return start;\n }", "public Vertex getStart()\n\t{\n\t\treturn start.copy();\n\t}", "public C startComponent() {\n return startComponent(null);\n }", "public WorldCoordinate getBegin() {\r\n\t\treturn this.begin;\r\n\t}", "public Vector2D getStartPos(){\n\t\treturn startPos;\n\t}", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public void setStartPosition(int start) {\n mLastPosition = start;\n }", "Pair<Integer, Integer> getInitialPosition();", "private void initLocation() {\n setLocationRelativeTo(null);\n }" ]
[ "0.7274549", "0.7052742", "0.69411063", "0.67054", "0.66756934", "0.63691276", "0.635929", "0.6348279", "0.6342", "0.6340861", "0.6340861", "0.63399136", "0.63222", "0.6302549", "0.6289981", "0.6288056", "0.6236853", "0.6205435", "0.61982733", "0.6194685", "0.61860716", "0.6179757", "0.61420435", "0.61382484", "0.61370844", "0.6131728", "0.6129121", "0.61190665", "0.61090934", "0.6099446", "0.6097729", "0.6060165", "0.60471183", "0.6041727", "0.6034394", "0.60320413", "0.6023149", "0.6000447", "0.5986701", "0.59789395", "0.59753317", "0.59397167", "0.5937951", "0.59204525", "0.5909613", "0.5907629", "0.5902296", "0.5901266", "0.58890027", "0.58789897", "0.5878095", "0.58778816", "0.5874977", "0.58709407", "0.5864652", "0.58498293", "0.5845132", "0.5838756", "0.583855", "0.5836627", "0.5796543", "0.5794052", "0.5791073", "0.5754509", "0.575424", "0.5749073", "0.5748512", "0.57305115", "0.5725818", "0.5724561", "0.57221746", "0.5718232", "0.5717768", "0.5715232", "0.5711249", "0.5700363", "0.56936014", "0.56925964", "0.56912917", "0.5688646", "0.5680848", "0.5675883", "0.5671225", "0.5667851", "0.56645685", "0.56594956", "0.5649389", "0.56423455", "0.56422055", "0.56335425", "0.56318754", "0.5631628", "0.56311274", "0.56257355", "0.5623962", "0.56228817", "0.56228817", "0.56228817", "0.56225556", "0.5611824", "0.55934423" ]
0.0
-1
verif si la case n'est pas un mur et qu'elle fait bien partie de notre zone de jeu
public boolean isGround() { return this != WALL && this != BOUNDS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isMenorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()>this.getValue(); \n }", "boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }", "private boolean esVocalMayuscula(char letra)\n\t{\n\t\t\n\t\tboolean esVocal;\n\t\tswitch (letra) {\n\t\tcase 'A':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'E':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'I':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'O':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'U':\n\t\t\t esVocal=true;\n\t\t\tbreak;\n\n\t\tdefault: esVocal = false;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn esVocal;\n\t}", "@Override\n public boolean isMayorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()<this.getValue();\n }", "private boolean estSurPlateau(Coordonnees emplacement) {\n return emplacement.getLigne() >= 0 && emplacement.getColonne() >= 0 && emplacement.getLigne() < Plateau.NOMBRE_COLONNE && emplacement.getColonne() < Plateau.NOMBRE_LIGNE;\n }", "public static boolean cumpleEdadMinima(String tipoLicencia, int edad) {\n boolean cumple = false;\n switch(tipoLicencia){\n case \"Clase A\": \n if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase B\": if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase C\": if(edad >= 21)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase D\": if(edad >= 21)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase E\": if(edad >= 21)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase F\": if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase G\": if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n } \n return cumple;\n }", "private Boolean esMejor() {\n if(debug) {\n System.out.println(\"**********************esMejor\");\n }\n \n if(this.solOptima == null || (this.sol.pesoEmparejamiento < this.solOptima.pesoEmparejamiento)) return true;\n else return false;\n }", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "public boolean keineZuegeMehr(){\n\t\tboolean keinZugMoeglich = true;\n\t\t\n\t\tfor(int i=0; i<7; i++){\n\t\t\tfor(int j=0; j<6; j++){\n\t\t\t\tif(spielfeld[i][j].equals(\"_\")){\n\t\t\t\t\tmoeglicheZuege[i] = j;\n\t\t\t\t\tkeinZugMoeglich = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!spielfeld[i][5].equals(\"_\")){\n\t\t\t\tmoeglicheZuege[i] = 7;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn keinZugMoeglich;\n\t}", "public boolean hasSameRules(android.icu.util.TimeZone other) { throw new RuntimeException(\"Stub!\"); }", "private boolean isPosicaoEstatal(int posicao) {\n\n boolean estatal = false;\n if (posicao == 12 || posicao == 28) {\n return true;\n } else {\n return false;\n }\n }", "public boolean esMayorDeEdad(){\r\n \t\tboolean mayor=false;\r\n \t\tif (obtenerAnios()>=18){\r\n\t\t\tmayor=true;\r\n\t\t}\r\n\t\treturn mayor;\r\n\t}", "public boolean estMort() {\n\t\treturn false;\n\t}", "@Test\n public void testCheckPlaceVerticaleMembreDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"A8\", g, 5, false);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxMembreInvalide);\n }\n }", "private boolean estValide(Deplacement unDeplacement, Couleur couleurJoueur) {\n\t\tboolean estOK = true; \n\n\t\t//toutes les positions\n\t\tPosition[] positions = unDeplacement.toArray(new Position[0]);\n\n\t\t//on teste s'il y a au moins deux positions\n\t\testOK = estOK && (positions.length >= 2); \n\n\t\tif (estOK) {\n\t\n\t\t\t//on teste si toutes les positions sont valides\n\t\t\tfor (int i = 0; ( (i < positions.length)&&(estOK) ); i++) {\n\t\t\t\testOK = estOK && (positions[i].estValide()); \n\t\t\t}\n\t\t\tif(!estOK) return false;\n\n\t\t\t//position de depart\n\t\t\tPosition depart = positions[0];\n\n\t\t\t//on teste s'il y a un pion de la couleur du joueur\n\t\t\tPion aDeplacer = obtenirPion(depart); \n\t\t\testOK = estOK && (aDeplacer != null); \n\t\t\testOK = estOK && (aDeplacer.aMemeCouleur(couleurJoueur)); \n\t\t\t\n\t\t\t//on teste que les cases sont libres\t\t\n\t\t\tfor (int i = 1; ( (i < positions.length)&&(estOK) ); i++) {\n\t\t\t\testOK = estOK && (obtenirPion(positions[i]) == null); \n\t\t\t}\n\t\t\tif(!estOK) return false;\n\t\t\t\n\t\t\tArrayList<Position> pionsSuppr = new ArrayList<Position>();\n\t\t\tArrayList<Pion> piecesSuppr = new ArrayList<Pion>();\n\t\t\tfor (int i = 1; ( (i < positions.length)&&(estOK) ); i++) {\n\t\t\t\testOK = estOK && Position.estDiagonale(positions[i-1], positions[i]);\n\t\t\t\tif(!estOK) break;\n\t\t\t\t\n\t\t\t\tCollection<Position> c = Position.diagonale(positions[i-1], positions[i]); \n\t\t\t\tif (c.size() == 1) {\n\t\t\t\t\tif(!(aDeplacer instanceof Dame)) {\n\t\t\t\t\t\tfor (Position pos: c) {\n\t\t\t\t\t\t\tPion aSupprimer = obtenirPion(pos); \n\t\t\t\t\t\t\testOK = estOK && ( (aSupprimer != null) && (!aSupprimer.aMemeCouleur(couleurJoueur)) );\n\t\t\t\t\t\t\tif (estOK) {\n\t\t\t\t\t\t\t\tpionsSuppr.add(pos);\n\t\t\t\t\t\t\t\tpiecesSuppr.add(aSupprimer);\n\t\t\t\t\t\t\t\tsupprimerPion(pos);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint nbPionsSupprimes = 0;\n\t\t\t\t\t\tfor (Position pos: c) {\n\t\t\t\t\t\t\tPion aSupprimer = obtenirPion(pos); \n\t\t\t\t\t\t\tif(aSupprimer != null) {\n\t\t\t\t\t\t\t\testOK = estOK && (!aSupprimer.aMemeCouleur(couleurJoueur));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (estOK && (aSupprimer != null)) {\n\t\t\t\t\t\t\t\tnbPionsSupprimes++;\n\t\t\t\t\t\t\t\tpionsSuppr.add(pos);\n\t\t\t\t\t\t\t\tpiecesSuppr.add(aSupprimer);\n\t\t\t\t\t\t\t\tsupprimerPion(pos);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(nbPionsSupprimes == 0) {\n\t\t\t\t\t\t\testOK = estOK && (positions.length == 2);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\testOK = estOK && (nbPionsSupprimes == 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (c.size() > 1) {\n\t\t\t\t\t//c'est valide que pour une dame\n\t\t\t\t\tif(!(aDeplacer instanceof Dame)) {\n\t\t\t\t\t\testOK = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//est une dame\n\t\t\t\t\t\tint nbPionsSupprimes = 0;\n\t\t\t\t\t\tfor (Position pos: c) {\n\t\t\t\t\t\t\tPion aSupprimer = obtenirPion(pos); \n\t\t\t\t\t\t\tif(aSupprimer != null) {\n\t\t\t\t\t\t\t\testOK = estOK && (!aSupprimer.aMemeCouleur(couleurJoueur));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (estOK && (aSupprimer != null)) {\n\t\t\t\t\t\t\t\tnbPionsSupprimes++;\n\t\t\t\t\t\t\t\tpionsSuppr.add(pos);\n\t\t\t\t\t\t\t\tpiecesSuppr.add(aSupprimer);\n\t\t\t\t\t\t\t\tsupprimerPion(pos);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(nbPionsSupprimes == 0) {\n\t\t\t\t\t\t\testOK = estOK && (positions.length == 2);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\testOK = estOK && (nbPionsSupprimes == 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (c.size() == 0) {\n\t\t\t\t\testOK = estOK && (positions.length == 2);\n\t\t\t\t\tif(!(aDeplacer instanceof Dame)) {\n\t\t\t\t\t\tif (couleurJoueur.equals(Couleur.noir())) {\n\t\t\t\t\t\t\testOK = estOK && (positions[i].j() - positions[i-1].j() > 0);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\testOK = estOK && (positions[i].j() - positions[i-1].j() < 0);\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\tfor (int i=0; i<pionsSuppr.size(); i++) {\n\t\t\t\tajouterPion(piecesSuppr.get(i), pionsSuppr.get(i));\n\t\t\t}\n\t\t}\n\n\t\treturn estOK; \n }", "private static boolean poserTapis(){\n\t\tSystem.out.println(\"Choisisser une premiere case pour poser la premiere partie du tapis\");\n\t\tint premiereCaseTapis = console.obtenirDirection();\n\t\tint direction = premiereCaseTapis;\n\t\tint posXTapis = 0, posYTapis = 0;\n\n\t\t//Pose du premier carre de tapis\n\t\ttry{\n\t\t\tif(premiereCaseTapis == 1){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-2][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-2;\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 2){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion();\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 3){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()-2].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-2;\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion();\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\treturn false;\n\t\t}\n\n\n\n\n\t\tconsole.afficherJeu();\n\t\tSystem.out.println(\"Choisissez la deuxieme case\");\n\n\t\t//Pose du second petit carre de tapis\n\t\twhile(true){\n\t\t\tint d = console.obtenirDirection();\n\t\t\t//pour ne pas faire de demi tour ou erreur de d\n\t\t\tif(direction == 1 && d == 2 || direction == 2 && d == 1 || direction == 3 && d == 4 || direction == 4 && d == 3 || d<1 || d>4){\n\t\t\t\tconsole.afficherImpossibleChoisirDirection();\n\t\t\t} else {\n\t\t\t\ttry{\n\t\t\t\t\tif(d == 1){\n\t\t\t\t\t\tjeu.cases[posXTapis-1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 2){\n\t\t\t\t\t\tjeu.cases[posXTapis+1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 3){\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis-1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis+1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tjeu.getJoueurs()[tour-1].useTapis();\n\t\treturn true;\n\n\n\t}", "private boolean diaHabilLunesPlacaA(int diaActual){\n\t\treturn diaActual == LUNES;\t\t\n\t}", "@Override\r\n\tprotected boolean puedeExtraer(double monto) {\n\t\treturn ((super.getSaldo() - monto) >= 0) ? true : false;\r\n\t}", "@Test\n public void testCheckPlaceValideVerticale() throws BateauxMembreInvalide, BateauxStartPointInvalide {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(15, 15, j, p);\n\n Place[] pl = j.checkPlace(\"A6\", g, 5, false);\n Place[] att = new Place[]{new Place(\"A6\"), new Place(\"A7\"), new Place(\"A8\"), new Place(\"A9\"), new Place(\"A10\")};\n\n assertArrayEquals(\"Les places ne sont pas bonne\", att, pl);\n }", "boolean getEntrench(Unit unit);", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "@Test\n public void testCheckPlaceValideHorizontale() throws BateauxMembreInvalide, BateauxStartPointInvalide {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(15, 15, j, p);\n\n Place[] pl = j.checkPlace(\"A6\", g, 5, true);\n Place[] att = new Place[]{new Place(\"A6\"), new Place(\"B6\"), new Place(\"C6\"), new Place(\"D6\"), new Place(\"E6\")};\n\n assertArrayEquals(\"Les places ne sont pas bonne\", att, pl);\n }", "private boolean checkMovementsOf(int i, int j, int k) {\n\n\t\tswitch (k) {\n\t\t\tcase 0: if(j>1){\n\t\t\t\t\t\tif(this.grilla[i][j-1]==1 && this.grilla[i][j-2]==0) return true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\tcase 1: if(i>1){\n\t\t\t\t\t\tif(this.grilla[i-1][j]==1 && this.grilla[i-2][j]==0) return true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\tcase 2: if(i<5){\n\t\t\t\t\t\tif(this.grilla[i+1][j]==1 && this.grilla[i+2][j]==0) return true;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\tcase 3:if(j<5){\n\t\t\t\t\t\tif(this.grilla[i][j+1]==1 && this.grilla[i][j+2]==0) return true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t}\t\t\n\t\treturn false;\n\t}", "@Test\n public void testCheckPlaceVerticaleTeteDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"A50\", g, 5, false);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxStartPointInvalide);\n }\n }", "private static Boolean deplacementL(int initialLigne, int initialColonne, int destinationLigne, int destinationColonne) {\n return ((Math.abs(initialLigne - destinationLigne) == 2 && Math.abs(initialColonne - destinationColonne) == 1) || (Math.abs(initialLigne - destinationLigne) == 1 && Math.abs(initialColonne - destinationColonne) == 2));\n }", "public boolean metti(int r, int c, int pezzo)\n {\n if ( (pezzo>=0) && (pezzo<=4) )\n { contenutoCaselle[r][c] = pezzo; return true; }\n else return false;\n }", "public boolean jeu() {\n int k;\n\n String compJoueur = \"\";\n String compOrdi = \"\";\n String reponse;\n\n boolean victoireJoueur = false;\n boolean victoireOrdi = false;\n String mystJoueur = challenger.nbMystere(); /**nb que le joueur doit trouver*/\n String mystOrdi = defenseur.nbMystere(); /**nb que l'ordinateur doit trouver*/\n String propOrdi = defenseur.proposition(); /**ordinateur genere un code aleatoire en premiere proposition*/\n log.info(\"Proposition ordinateur : \" + propOrdi); /**afficher proposition ordinateur*/\n String propJoueur = \"\";\n String goodResult = MethodesRepetitives.bonResultat();\n\n\n for (k = 1; !victoireJoueur && !victoireOrdi && k <= nbEssais; k++) { /**si ni le joueur ou l'ordinateur n'ont gagne et si le nombre d'essais n'est pas atteind, relancer*/\n\n compOrdi = MethodesRepetitives.compare(mystOrdi, propOrdi); /**lancer la methode de comparaison du niveau defenseur*/\n log.info(\"Reponse Ordinateur :\" + compOrdi); /**afficher la comparaison*/\n propJoueur = challenger.proposition(); /**demander une saisie au joueur selon le mode challenger*/\n compJoueur = MethodesRepetitives.compare(mystJoueur, propJoueur); /**comparer selon le mode challenger*/\n log.info(\"Reponse Joueur :\" + compJoueur); /**afficher la comparaison*/\n\n if (compOrdi.equals(goodResult)) { /**si l'ordinateur a gagne, changement de la valeur victoireOrdi*/\n victoireOrdi = true;\n }else if(compJoueur.equals(goodResult)) {/**si le joueur a gagne changement de la valeur victoireJoeur*/\n victoireJoueur = true;\n } else if (k < nbEssais) { /**sinon redemander un code a l'ordinateur selon les symboles de comparaison*/\n propOrdi = defenseur.ajuste(propOrdi, compOrdi);\n log.info(\"Proposition Ordinateur :\" + propOrdi);\n }\n }\n\n if (victoireOrdi || !victoireJoueur)/**si l'ordinateur ou le joueur perdent alors perdu sinon gagne*/\n victoireJoueur = false;\n else\n victoireJoueur = true;\n\n return victoireJoueur;\n\n\n }", "@Test\n public void testCheckPlaceHorizontaleMembreDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"G6\", g, 5, true);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxMembreInvalide);\n }\n }", "boolean isAfuerMayorDentro(char dentro, char afuera){\n return peso(afuera)>peso(dentro);\r\n }", "private DragstrLocusCase toCase() {\n final DragstrLocus locus = DragstrLocus.make(chrIdx, pos, (byte) period, (short) (period * repeats), 0);\n // 60,0 minMQ,nSup are not relevant as these do not affect the test.\n return DragstrLocusCase.create(locus, n, k, 60, 0);\n }", "public abstract boolean canMoveTo(Case Location);", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "public boolean kiemTraPSToiGian(){\n if (timUSCLN(tuSo,mauSo) == 1){\n return true;\n }else {\n return false;\n }\n }", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "public boolean fechaVigente(String fechafinal, String horafinal)\r\n\t{\r\n\t\tboolean vigente = true;\r\n\t\tGregorianCalendar calendario = new GregorianCalendar();\r\n\t\tint añoactual = calendario.get(Calendar.YEAR);\r\n\t\tint mesactual = (calendario.get(Calendar.MONTH)+1);\r\n\t\tint diaactual = calendario.get(Calendar.DAY_OF_MONTH);\r\n\t\tString fechaactual = añoactual+\"-\"+mesactual+\"-\"+diaactual;\r\n\t\tint horasactuales = calendario.get(Calendar.HOUR_OF_DAY);\r\n\t\tint minutosactuales = calendario.get(Calendar.MINUTE);\r\n\t\tint segundosactuales = calendario.get(Calendar.SECOND);\r\n\t\tString horaactual = horasactuales+\":\"+minutosactuales+\":\"+segundosactuales;\r\n\t\t\r\n\t\tint añofinal = 0;\r\n\t\tint mesfinal = 0;\r\n\t\tint diafinal = 0;\r\n\t\t\r\n\t\tint horasfinales = 0;\r\n\t\tint minutosfinales = 0;\r\n\t\tint segundosfinales = 0;\r\n\r\n\t\tString numerofecha = \"\";\r\n\t\tfor (int i = 0; i < (fechafinal.length()); i++) \r\n\t\t{\r\n\t\t\tchar digito = fechafinal.charAt(i);\r\n\t\t\tif(digito == '0' || digito == '1' || digito == '2' || digito == '3' || digito == '4' || digito == '5' || digito == '6' || digito == '7' || digito == '8' || digito == '9')\r\n\t\t\t{\r\n\t\t\t\tnumerofecha += digito;\r\n\t\t\t\tif((i+1) == (fechafinal.length()))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(añofinal == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tañofinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(mesfinal == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmesfinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(diafinal == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdiafinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(añofinal == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tañofinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(mesfinal == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tmesfinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(diafinal == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tdiafinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tString numerohora = \"\";\r\n\t\tfor (int i = 0; i < (horafinal.length()); i++) \r\n\t\t{\r\n\t\t\tchar digito = horafinal.charAt(i);\r\n\t\t\tif(digito == '0' || digito == '1' || digito == '2' || digito == '3' || digito == '4' || digito == '5' || digito == '6' || digito == '7' || digito == '8' || digito == '9')\r\n\t\t\t{\r\n\t\t\t\tnumerohora += digito;\r\n\t\t\t\tif((i+1) == (horafinal.length()))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(horasfinales == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\thorasfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(minutosfinales == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tminutosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(segundosfinales == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsegundosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(horasfinales == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\thorasfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(minutosfinales == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tminutosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(segundosfinales == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tsegundosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tString fechafinal2 = añofinal+\"-\"+mesfinal+\"-\"+diafinal;\r\n\t\tString horafinal2 = horasfinales+\":\"+minutosfinales+\":\"+segundosfinales;\r\n\t\tif(añoactual >= añofinal)\r\n\t\t{\r\n\t\t\tif(mesactual >= mesfinal)\r\n\t\t\t{\r\n\t\t\t\tif(diaactual >= diafinal)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(horasactuales >= horasfinales)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(minutosactuales >= minutosfinales)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvigente = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn vigente;\r\n\t}", "@Override\n\tpublic void IsAtCentre(boolean b, Time time) {\n\t\t\n\t}", "public boolean isWin_LordVetinari(){\r\n // player got lordVetinari card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 1){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if (playerHoldCard != null) {\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n\r\n Set<Integer> areaList = new HashSet<Integer>();\r\n for (Integer minionID : playerHoldCard.getMinionList()) {\r\n int minion_ID = minionID;\r\n MinionPiece minion = discWorld.getMinionPiece_HASH().get(minion_ID);\r\n if (minion.getAreaNumber() != ConstantField.DEFAULT_UNDEFINED_PLAYID) {\r\n int areaID = minion.getAreaNumber();\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n // make sure free of demon\r\n if (area.getDemonList().size() == 0) {\r\n areaList.add(minion.getAreaNumber());\r\n }\r\n }\r\n\r\n }\r\n\r\n if (numPlayers == 2) {\r\n\r\n if (areaList.size() >= 11) {\r\n return true;\r\n }\r\n\r\n } else if (numPlayers == 3) {\r\n\r\n if (areaList.size() >= 10) {\r\n return true;\r\n }\r\n\r\n } else if (numPlayers == 4) {\r\n\r\n if (areaList.size() >= 9) {\r\n return true;\r\n }\r\n\r\n }\r\n }\r\n\r\n return false;\r\n }", "@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }", "private static boolean isValidateRecord(Map<String, Object> m)\n throws Exception{\n float crsArrTime = (float) m.get(\"CRS_ARR_TIME\");\n float crsDeptTime = (float) m.get(\"CRS_DEP_TIME\");\n float crsElapsedTime = (float) m.get(\"CRS_ELAPSED_TIME\");\n float actElapsedTime = (float) m.get(\"ACTUAL_ELAPSED_TIME\");\n float arrDelay = (float) m.get(\"ARR_DELAY\");\n float arrDelayMin = (float) m.get(\"ARR_DELAY_NEW\");\n float timeZone = crsArrTime - crsDeptTime - crsElapsedTime;\n float cancelledCheck = timeZone - actElapsedTime;\n float timeModulo = timeZone % 60;\n\n // CRSArrTime and CRSDepTime should not be zero\n // timeZone = CRSArrTime - CRSDepTime - CRSElapsedTime and timeZone % 60 should be 0\n if (crsArrTime == 0 || crsDeptTime == 0 || timeModulo != 0) return false;\n\n // AirportID, AirportSeqID, CityMarketID, StateFips, Wac should be larger than 0\n if ((float) m.get(\"ORIGIN_AIRPORT_ID\") <= 0) return false;\n if ((float) m.get(\"ORIGIN_AIRPORT_SEQ_ID\") <= 0) return false;\n if ((float) m.get(\"ORIGIN_CITY_MARKET_ID\") <= 0) return false;\n if ((float) m.get(\"ORIGIN_STATE_FIPS\") <= 0) return false;\n if ((float) m.get(\"ORIGIN_WAC\") <= 0) return false;\n\n if ((float) m.get(\"DEST_AIRPORT_ID\") <= 0) return false;\n if ((float) m.get(\"DEST_AIRPORT_SEQ_ID\") <= 0) return false;\n if ((float) m.get(\"DEST_CITY_MARKET_ID\") <= 0) return false;\n if ((float) m.get(\"DEST_STATE_FIPS\") <= 0) return false;\n if ((float) m.get(\"DEST_WAC\") <= 0) return false;\n\n // Origin, Destination, CityName, State, StateName should not be empty\n if (m.get(\"ORIGIN\").toString().equals(\"\")) return false;\n if (m.get(\"ORIGIN_CITY_NAME\").toString().equals(\"\")) return false;\n if (m.get(\"ORIGIN_STATE_ABR\").toString().equals(\"\")) return false;\n if (m.get(\"ORIGIN_STATE_NM\").toString().equals(\"\")) return false;\n if (m.get(\"DEST\").toString().equals(\"\")) return false;\n if (m.get(\"DEST_CITY_NAME\").toString().equals(\"\")) return false;\n if (m.get(\"DEST_STATE_ABR\").toString().equals(\"\")) return false;\n if (m.get(\"DEST_STATE_NM\").toString().equals(\"\")) return false;\n\n // For flights that are not Cancelled: ArrTime - DepTime - ActualElapsedTime - timeZone should be zero\n if ((boolean)m.get(\"CANCELLED\") && cancelledCheck != 0) return false;\n\n // if ArrDelay > 0 then ArrDelay should equal to ArrDelayMinutes if ArrDelay < 0 then ArrDelayMinutes should be zero\n // if ArrDelayMinutes >= 15 then ArrDel15 should be true\n if (arrDelay > 0 && arrDelay != arrDelayMin) return false;\n if (arrDelay < 0 && arrDelayMin != 0) return false;\n if (arrDelayMin >= 15 && !(boolean)m.get(\"ARR_DEL15\")) return false;\n\n return true;\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private boolean checkInsideZone() {\n for (Zone z : shiftZones) {\n if (PolyUtil.containsLocation(userLocation, Arrays.asList(z.getCoords()), true)) {\n return true;\n }\n }\n return false;\n }", "public final boolean zzhf() {\n AppMethodBeat.i(68698);\n Calendar instance = Calendar.getInstance();\n this.zzafm = TimeUnit.MINUTES.convert((long) (instance.get(16) + instance.get(15)), TimeUnit.MILLISECONDS);\n Locale locale = Locale.getDefault();\n String toLowerCase = locale.getLanguage().toLowerCase(Locale.ENGLISH);\n String toLowerCase2 = locale.getCountry().toLowerCase(Locale.ENGLISH);\n this.zzafn = new StringBuilder((String.valueOf(toLowerCase).length() + 1) + String.valueOf(toLowerCase2).length()).append(toLowerCase).append(\"-\").append(toLowerCase2).toString();\n AppMethodBeat.o(68698);\n return false;\n }", "private boolean m27364ml() {\n AppMethodBeat.m2504i(91878);\n if (this.azY < this.azX.size()) {\n AppMethodBeat.m2505o(91878);\n return true;\n }\n AppMethodBeat.m2505o(91878);\n return false;\n }", "boolean hasDesiredTime();", "private static boolean hasTimeZone(String lexicalForm) {\n return matchTimeZone.matcher(lexicalForm).find();\n }", "private static boolean m127620a(char c) {\n return Pattern.compile(\"[一-龥]\").matcher(String.valueOf(c)).matches();\n }", "public static boolean validMove(String move, Person p, Board building )\n {\n Room[][] map = building.getMap();\n move = move.toLowerCase().trim();\n switch (move) {\n case \"n\":\n if (p.getxLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()-1][p.getyLoc()].getName());\n map[p.getxLoc()-1][p.getyLoc()].enterRoom(p,building);\n return true;\n }\n else\n {\n return false;\n }\n case \"e\":\n if (p.getyLoc()< map[p.getyLoc()].length -1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc() + 1].getName());\n map[p.getxLoc()][p.getyLoc() + 1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"s\":\n if (p.getxLoc() < map.length - 1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()+1][p.getyLoc()].getName());\n map[p.getxLoc()+1][p.getyLoc()].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"w\":\n if (p.getyLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc()-1].getName());\n map[p.getxLoc()][p.getyLoc()-1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n default:\n break;\n\n }\n return true;\n }", "@Test\n public void testCheckPlaceHorizontaleTeteDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"Z6\", g, 5, true);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxStartPointInvalide);\n }\n }", "public final boolean zzh() {\n return zzq() && this.zzz <= zzgod.GROUP.zza();\n }", "public boolean esMorosa() {\r\n\t\tboolean esMorosa = false;\r\n\t\tfor (Cuenta c : cuentas) {\r\n\t\t\tif (c != null) {\r\n\t\t\t\tif (c.getSaldo() < 0) {\r\n\t\t\t\t\tesMorosa = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn esMorosa;\r\n\t}", "private boolean testSexSecol() {\n switch (S) {\n case \"1\":\n // 1,2 1900-1999\n secol = \"19\";\n Sex = \"M\";\n break;\n case \"2\":\n secol = \"19\";\n Sex = \"F\";\n break;\n case \"3\":\n // 3,4 1800-1899\n secol = \"18\";\n Sex = \"M\";\n break;\n case \"4\":\n secol = \"18\";\n Sex = \"F\";\n break;\n case \"5\":\n // 5,6 2000-2099\n secol = \"20\";\n Sex = \"M\";\n break;\n case \"6\":\n secol = \"20\";\n Sex = \"F\";\n break;\n case \"7\":\n // 7,8 straini rezidenti 1900+\n secol = \"19\";\n Sex = \"M\";\n break;\n case \"8\":\n secol = \"19\";\n Sex = \"F\";\n break;\n case \"9\":\n // 9 straini 1900+\n secol = \"19\";\n break;\n default:\n // Sexul nu poate fi \"0\"\n return false;\n }\n return true;\n }", "private void check_this_minute() {\n controlNow = false;\n for (DTimeStamp dayControl : plan) {\n if (dayControl.point == clockTime.point) {\n controlNow = true;\n break;\n }\n }\n for (DTimeStamp simControl : extra) {\n if (simControl.equals(clockTime)) {\n controlNow = true;\n break;\n }\n }\n }", "private boolean esCoordenadaValida(Coordenada c) {\n assert c != null : \"Error: la coordenada introducida no puede ser null\";\n int fila = c.getFila();\n int columna = c.getColumna();\n\n return (fila>=0 && fila<=casillas.length-1) &&\n (columna>=0 && columna<=casillas[0].length-1);\n }", "private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}", "protected boolean m9200e() {\n return this.this$0.b._getEtat() != 0;\n }", "public boolean mo1531a() {\n if (Math.abs(this.f15728e - 1.0f) < 0.01f) {\n if (Math.abs(this.f15729f - 1.0f) < 0.01f) {\n return false;\n }\n }\n return true;\n }", "boolean checkForShortCircuit(CaveGen g) {\n int i = g.placedMapUnits.size() - 1;\n MapUnit m = g.placedMapUnits.get(i);\n if (i >= Parser.scUnitTypes.length) return false;\n if (Parser.scUnitTypes[i] != -1) {\n String targetName = g.spawnMapUnitsSorted.get(Parser.scUnitTypes[i]).name;\n if (!targetName.equals(m.name))\n return true;\n } \n if (Parser.scRots[i] != -1) {\n if (m.rotation != Parser.scRots[i])\n return true;\n } \n if (Parser.scUnitIdsFrom[i] != -1 \n && Parser.scDoorsFrom[i] != -1\n && Parser.scDoorsTo[i] != -1) {\n Door d = m.doors.get(Parser.scDoorsTo[i]);\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n return true;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n return true;\n if (o.doors.indexOf(d.adjacentDoor) != Parser.scDoorsFrom[i])\n return true;\n }\n else {\n if (Parser.scDoorsTo[i] != -1) {\n Door d = m.doors.get(Parser.scDoorsTo[i]);\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n return true;\n }\n if (Parser.scUnitIdsFrom[i] != -1 \n && Parser.scDoorsFrom[i] != -1) {\n boolean isGood = false;\n for (Door d: m.doors) {\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n continue;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n continue;\n if (o.doors.indexOf(d.adjacentDoor) != Parser.scDoorsFrom[i])\n continue;\n isGood = true;\n }\n if (!isGood) return true;\n }\n else if (Parser.scUnitIdsFrom[i] != -1) {\n boolean isGood = false;\n for (Door d: m.doors) {\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n continue;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n continue;\n isGood = true;\n }\n if (!isGood) return true;\n }\n }\n return false;\n }", "public boolean muzeJitDomu(){\r\n return getBatoh().obsahujeVec(\"mec\");\r\n }", "public boolean isPM() {\n\tif (end != null)\n\t return end.isAfter(LocalTime.NOON) || end.equals(LocalTime.NOON);\n\treturn false;\n\n }", "boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean contieneVertice(Ciudad c1) {\n\t\tif (Objects.nonNull(getVertice(c1))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean estPlein() {\n return this.tapis.size() == capacite;\n }", "public boolean esmenor(){\n //este metodo no aplica en la resolución del caso de uso planteado\n //sólo sirve para determinar si el participante es menor de edad para \n //poner como obligatorio el campo nombreTutor de acuerdo a las reglas\n //del negocio.\n return false;\n }", "private boolean checkDesignCMT() {\n // check null\n if (jTFChungMinhThu.getText().trim().isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nhập CMT và nhấn Enter để tìm kiếm\\nHoặc nhấn nút \\\"SHOW INFO\\\" để chọn nhân khẩu.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n // check dinh dang so chung minh thu\n try {\n long d = Long.parseLong(jTFChungMinhThu.getText());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, \"Số CMT không thể chứa các ký tự chữ cái\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n // kiem tra do dai cmt\n if (jTFChungMinhThu.getText().length() != 9 && jTFChungMinhThu.getText().length() != 12) {\n JOptionPane.showMessageDialog(rootPane, \"Số CMT có 9 hoặc 12 số\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n return true;\n }", "public void moverJugador(char letra) {\n switch (letra) {\n case 'w':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x,y+3,AnchoJugador,largoJugador))){//Comprobamos si en el array de rectangles hacer overlaps con nuestro jugador\n olision=true;//Si lo hace olision se vuelve true y no se movera\n break;\n }else{\n olision=false;//Si no lo hace olision de volvera false y se movera\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){//Comprobamos si nuestro personaje hace overlaps con alguna salida\n switch (colisiones.getObj2()[b].getName()){//Si colisiona este switch se encargara de ver con que salida estamos chocando mediante el nombre de los rectangulos(Esto se pone en el tiled)\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,10));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n break;\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n y=y+3;\n }else{\n\n }\n\n break;\n case 's':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x,y-3,AnchoJugador,largoJugador))){\n olision=true;\n break;\n }else{\n olision=false;\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){\n System.out.println(\"colisionando\");\n switch (colisiones.getObj2()[b].getName()){\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,140));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n break;\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n\n y=y-3;\n }\n break;\n case 'd':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x+3,y,AnchoJugador,largoJugador))){\n olision=true;\n break;\n }else{\n olision=false;\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){\n System.out.println(\"colisionando\");\n switch (colisiones.getObj2()[b].getName()){\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,140));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.getScreen().dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n x=x+3;\n }\n break;\n case 'a':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x-3,y,AnchoJugador,largoJugador))){\n olision=true;\n break;\n }else{\n olision=false;\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){\n System.out.println(\"colisionando\"+colisiones.getObj2()[b].getName());\n switch (colisiones.getObj2()[b].getName()){\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,140));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n x=x-3;\n }\n break;\n }\n }", "public boolean vacio() {\r\n return (tamaño == 0);\r\n }", "public static boolean isMaggiorenne(Date dataDiNascita) {\r\n if (dataDiNascita != null) {\r\n Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone(\"Europe/Rome\"));\r\n cal.set(Calendar.YEAR, cal.get(Calendar.YEAR) - 18);\r\n return cal.getTime().after(dataDiNascita);\r\n }\r\n return false;\r\n }", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "private boolean canPrintContratEngagement(ContratDTO c)\r\n\t{\n\t\tif (new EditionSpeService().needEngagement(c.modeleContratId)==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tswitch (peMesContrats.canPrintContratEngagement)\r\n\t\t{\r\n\t\tcase TOUJOURS:\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\tcase JAMAIS:\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\tcase APRES_DATE_FIN_DES_INSCRIPTIONS:\r\n\t\t\tDate dateRef = DateUtils.getDateWithNoTime();\r\n\t\t\treturn dateRef.after(c.dateFinInscription);\r\n\r\n\t\tdefault:\r\n\t\t\tthrow new AmapjRuntimeException();\r\n\t\t}\r\n\t}", "private boolean crossesInternationalDateline(String eastValue, \n String westValue\n ) {\n boolean crosses = false;\n \n if ((eastValue != null) &&\n (eastValue != \"\") &&\n (westValue != null) &&\n (westValue != \"\")\n ) {\n Double eastInteger = new Double(eastValue);\n Double westInteger = new Double(westValue);\n \n crosses = westInteger > eastInteger;\n }\n \n logger.debug(\"crosses International Dateline: \" + crosses);\n \n return crosses;\n }", "public boolean compareEasternTime(String date){\n\n //Need to set the providedDate and utcOpen to standardize\n LocalTime providedDateToUtc = LocalDateTime.parse(getUtcFromLocal(date), dateTimeFormatter).toLocalTime();\n\n //Switches the utc version to eastern time for a direct comparison\n LocalTime providedTime = LocalTime.parse(providedDateToUtc.format(timeFormatter)).minusHours(5);\n\n LocalTime easternToUtcOpen = LocalTime.of(8, 0, 0, 0);\n LocalTime easternToUtcClose = LocalTime.of(22, 0, 0, 0);\n\n if((providedTime.isAfter(easternToUtcOpen) || (providedTime.equals(easternToUtcOpen))) && (providedTime.isBefore(easternToUtcClose) ||\n providedTime.equals(easternToUtcClose))){\n return true;\n }else{\n return false;\n }\n\n }", "public boolean mo9236at() {\n return false;\n }", "static boolean inAreaHuh ( PhoneNumber pn, int someArea ) {\n\t// return ... pn.areaCode ... pn.prefix ... pn.line ... someArea ;\n\treturn pn.areaCode == someArea ;\n }", "public boolean estSurLaCase(ICase c) ;", "private boolean diaHabilDomingoPlacaA(int diaActual){\n\t\treturn diaActual == DOMINGO;\n\t}", "public final boolean checkIfInZone(int x, int y) { return (getSiege(x, y) != null); }", "public void changeIfFlagZone()\r\n\t{\r\n\t\tlocInFlagZone = !locInFlagZone;\r\n\t}", "private boolean m72696hm() {\n if (!this.aet || !this.aev || TextUtils.isEmpty(this.aeq)) {\n return false;\n }\n this.aet = false;\n this.aeu = true;\n m72698ho();\n return true;\n }", "@Test\n\t\tpublic void canGiveMinotaurLocation() {\n\t\t\tPoint whereMinotaur = new Pointer(1,3);\n\t\t\tgameLoader.addMinotaur(whereMinotaur);\n\t\t\tPoint expected = whereMinotaur;\n\t\t\tPoint actual = gameSaver.wheresMinotaur();\n\t\t\t\n\t\t\tassertEquals(expected.across(), actual.across());\n\t\t\tassertEquals(expected.down(), actual.down());\n\t\t}", "public String check_loged_time(Operator op){\n String positive = \"соблюдено\";\n String negative = \"не соблюдено\";\n int loged_time_seconds = (int) get_seconds(op.getLoged_time());\n int loged_time_value = (int) get_seconds(loged_time_9);\n int delay_seconds;\n if(op.getShift()==Shift.nine){\n delay_seconds = 32400-loged_time_seconds;\n if(delay_seconds<=loged_time_value)\n return positive;\n else {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n }\n\n if(op.getShift()==Shift.twelve){\n delay_seconds = 43200-loged_time_seconds;\n if(delay_seconds<=loged_time_value)\n return positive;\n else\n {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n }\n\n return positive;\n }", "public boolean isWin_LordDeWorde(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 4){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }", "public boolean visit(MightyPacMan mp) {\n\t\treturn true;\n\t}", "public boolean realiser(Deplacement unDeplacement, Couleur couleurJoueur) {\n\t\n\t\tif (estValide(unDeplacement, couleurJoueur) && \n\t\t!(!estPrise(unDeplacement, couleurJoueur) && existePrise(couleurJoueur)) ) { //prise obligatoire\n\n\t\t\t//toutes les positions\n\t\t\tPosition[] positions = unDeplacement.toArray(new Position[0]); \n\t\t\t//position de depart\n\t\t\tPosition posDep = positions[0]; \n\n\t\t\t//pion de la position de posDep\n\t\t\tPion pionDep = obtenirPion(posDep);\n\t\t\t//pionDep = mesPions.get(posDep); \n\n\t\t\t//supprimer le pion de la position de depart\n\t\t\tsupprimerPion(positions[0]); \n\t\n\t\t\t//ajouter le pion a la position d'arrivee\n\t\t\tajouterPion(pionDep, positions[positions.length-1]); \n\n\t\t\t//traiter les positions intermediaires\n\t\t\tfor (int i = 1; i < positions.length; i++) {\n\t\t\t\tCollection<Position> c = Position.diagonale(positions[i-1], positions[i]); \n\t\t\t\tif (c.size() >= 1) {\n\t\t\t\t\tfor (Position pos: c) {\n\t\t\t\t\t\tPion aSupprimer = obtenirPion(pos); \n\t\t\t\t\t\tif ( (aSupprimer != null) && (!aSupprimer.aMemeCouleur(couleurJoueur)) ) {\n\t\t\t\t\t\t\tsupprimerPion(pos); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//promotion en dame\n\t\t\tfor(int i = 0; i < Constantes.N; i++) {\n\t\t\t\tPosition pos = new Position(i, 0);\n\t\t\t\tif(pos.estValide()) {\n\t\t\t\t\tPion pion = obtenirPion(pos);\n\t\t\t\t\tif(pion != null && pion.aMemeCouleur(Couleur.blanc())) {\n\t\t\t\t\t\tsupprimerPion(pos);\n\t\t\t\t\t\tajouterPion(new Dame(Couleur.blanc()), pos);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpos = new Position(i, Constantes.N - 1);\n\t\t\t\tif(pos.estValide()) {\n\t\t\t\t\tPion pion = obtenirPion(pos);\n\t\t\t\t\tif(pion != null && pion.aMemeCouleur(Couleur.noir())) {\n\t\t\t\t\t\tsupprimerPion(pos);\n\t\t\t\t\t\tajouterPion(new Dame(Couleur.noir()), pos);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treafficher();\n\t\t\treturn true; \n\t\t} else {\n\t\t\tSystem.err.println(\"Deplacement invalide\");\n\t\t\treturn false; \n\t\t}\n\t \n }", "public IJoueur quiEstMonMaitre();", "protected boolean isValidZoneChangeSetting(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public void testLastTransitionWithoutRules() {\n ZoneId zone = ZoneId.of(\"Asia/Kathmandu\");\n long time = time(\"1986-01-01T00:00:00\", zone);\n LocalTimeOffset.Lookup lookup = LocalTimeOffset.lookup(zone, time - 1, time);\n assertThat(lookup.size(), equalTo(2));\n assertRoundingAtOffset(lookup.lookup(time - 1), time - 1, TimeUnit.MINUTES.toMillis(330));\n assertRoundingAtOffset(lookup.lookup(time), time, TimeUnit.MINUTES.toMillis(345));\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "public boolean sucheMitspieler();", "public boolean hasTeen(int a, int b, int c) {\n return (a>=13 && a<=19) ||\n (b>=13 && b<=19) ||\n (c>=13 && c<=19);\n}", "public final boolean mo86957ao() {\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n int height = video.getHeight() * 3;\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n Video video2 = aweme2.getVideo();\n C7573i.m23582a((Object) video2, \"mAweme.video\");\n if (height >= video2.getWidth() * 4) {\n return true;\n }\n return false;\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "private boolean m29992a(double d) {\n if (this.southwest.longitude <= this.northeast.longitude) {\n return this.southwest.longitude <= d && d <= this.northeast.longitude;\n } else {\n if (this.southwest.longitude > d) {\n if (d > this.northeast.longitude) {\n return false;\n }\n }\n return true;\n }\n }", "public boolean mo1517e() {\n return false;\n }", "private static boolean m55560tZ(int i) {\n return i == 7;\n }", "private boolean checkMoveOthers(Pieces piece, Coordinates from, Coordinates to) {\n\t\t\t\t\n\t\t/* \n\t\t *il pedone: \n\t\t * -può andare dritto sse davanti a se non ha pedine\n\t\t * -può andare obliquo sse in quelle posizioni ha una pedina avversaria da mangiare\n\t\t * \n\t\t */\n\t\tif (piece instanceof Pawn) {\n\t\t\tif (from.getY() == to.getY()) {\n\t\t\t\tif(chessboard.at(to) == null)\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(chessboard.at(to) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//il cavallo salta le pedine nel mezzo\n\t\tif (piece instanceof Knight)\n\t\t\treturn true;\n\t\t\n\t\t//Oltre non andranno il: cavallo, il re ed il pedone.\n\t\t/*\n\t\t *Calcolo le posizioni che intercorrono tra il from ed il to escluse \n\t\t *ed per ogni posizione verifico se è vuota\n\t\t *-se in almeno una posizione c'è una pedina(non importa il colore), la mossa non è valida\n\t\t *-altrimenti, la strada è spianata quindi posso effettuare lo spostamento \n\t\t */\n\t\tArrayList<Coordinates> path = piece.getPath(from, to);\n\t\tfor (Coordinates coordinate : path) {\n\t\t\tif ( chessboard.at(coordinate) != null ){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean validaFechasPrimerDiaLaboral(int indice,boolean isSol, int CodEmp, int CodLoc){\n boolean blnRes=false;\n try{\n if(objTblMod.getValueAt(indice, INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).toString().equals(\"S\")){\n if(isSol){\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n }\n else{\n blnRes=true;\n }\n \n } \n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "private boolean temMunicao() {\n\t\t\n\t\tif (round<1) {\n\t\t\tsetSemMunicao(true);\n\t\t\treturn false;\n\t\t\t\n\t\t}else \n\t\t\tsetSemMunicao(false);\n\t\t\n\t\t\n\t\treturn true;\n\t}" ]
[ "0.62161887", "0.61402", "0.60985464", "0.60373855", "0.60143554", "0.5867515", "0.5836862", "0.5796992", "0.57207763", "0.5663031", "0.5617527", "0.55447024", "0.55354524", "0.5491712", "0.5448527", "0.5406631", "0.53865737", "0.5356272", "0.5351229", "0.5337883", "0.53328", "0.5328525", "0.5311118", "0.52956086", "0.5268441", "0.5254324", "0.52517307", "0.52512956", "0.5248865", "0.5243048", "0.5240953", "0.5235092", "0.52280307", "0.52123827", "0.5203521", "0.51992685", "0.51961255", "0.5182468", "0.5181726", "0.5179974", "0.516788", "0.5155946", "0.51556635", "0.5153887", "0.5152537", "0.5149163", "0.5144458", "0.5138179", "0.5123057", "0.51158905", "0.51141536", "0.51132375", "0.51088214", "0.5107175", "0.51033384", "0.5103011", "0.5094485", "0.50778", "0.50504154", "0.5050013", "0.5048052", "0.5047319", "0.50381345", "0.5034307", "0.50313026", "0.50242126", "0.5023655", "0.5019254", "0.5018141", "0.501078", "0.5006555", "0.50048465", "0.5003826", "0.49968958", "0.4987423", "0.4987308", "0.49834007", "0.49809578", "0.49732524", "0.49730396", "0.4967288", "0.4966201", "0.4963759", "0.4958849", "0.49566653", "0.49548933", "0.49519718", "0.49491885", "0.4949099", "0.49462977", "0.49430716", "0.4942798", "0.49390206", "0.4938733", "0.49331573", "0.49311224", "0.4928394", "0.49279612", "0.49270007", "0.49253145", "0.49226344" ]
0.0
-1
Creates new form k
public InformationPoint(java.awt.Frame parent, boolean modal, String elementstring) { super(parent, modal); this.elementstring = elementstring; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public BtxDetailsKcFormDefinition() {\n super();\n }", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }", "public sub_Form(HashMap<String, ReturnedValue> entry, int index){\n this.form_ID = entry.get(\"formID\").to_string();\n this.repID = entry.get(\"repID\").to_string();\n this.plantRegistry = entry.get(\"plantRegistry\").to_string();\n this.domesticOrImported = entry.get(\"domesticOrImported\").to_string();\n this.serialNumber = entry.get(\"serialNumber\").to_string();\n this.beverageType = entry.get(\"beverageType\").to_string();\n this.brandName = entry.get(\"brandName\").to_string();\n this.fancifulName = entry.get(\"fancifulName\").to_string();\n this.vintage = entry.get(\"vintage\").to_string();\n this.grapeVarietals = entry.get(\"grapeVarietals\").to_string();\n this.pHValue = entry.get(\"pHValue\").to_string();\n this.wineAppellation = entry.get(\"wineAppellation\").to_string();\n this.alcoholContent = entry.get(\"alcoholContent\").to_string();\n this.phoneNumber = entry.get(\"phoneNumber\").to_string();\n this.email = entry.get(\"email\").to_string();\n this.index = index;\n }", "@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}", "public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }", "@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}", "private void fillCreateOrEditForm(String name, int branchId) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByValue(xpathSelectBranch, \"number:\" + branchId);\n logger.info(\"# Select branch id: \" + branchId);\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public FormInserir() {\n initComponents();\n }", "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "public FrmKashidashi() {\n initComponents();\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "@Override\n public ExtensionResult dogetFormcuti(ExtensionRequest extensionRequest) {\n\n Map<String, String> output = new HashMap<>();\n String formId = appProperties.getFormIdCuti();\n FormBuilder formBuilder = new FormBuilder(formId);\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"Form Cuti\");\n button.setSubTitle(\"Form Cuti\");\n button.setPictureLink(Image_cuti);\n button.setPicturePath(Image_cuti);\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Isi Form\");\n bookAction.setValue(formBuilder.build());\n// bookAction.setValue(appProperties.getShortenFormCuti());\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n\n output.put(OUTPUT, buttonBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\n\t}", "public Form readForm(String formKey);", "private String getDuzMetinSozlukForm(Kok kok) {\n String icerik = kok.icerik();\r\n if (kok.asil() != null)\r\n icerik = kok.asil();\r\n\r\n StringBuilder res = new StringBuilder(icerik).append(\" \");\r\n\r\n // Tipi ekleyelim.\r\n if (kok.tip() == null) {\r\n System.out.println(\"tipsiz kok:\" + kok);\r\n return res.toString();\r\n }\r\n\r\n if (!tipAdlari.containsKey(kok.tip())) {\r\n System.out.println(\"tip icin dile ozel kisa ad bulunamadi.:\" + kok.tip().name());\r\n return \"#\" + kok.icerik();\r\n }\r\n\r\n res.append(tipAdlari.get(kok.tip()))\r\n .append(\" \")\r\n .append(getOzellikString(kok.ozelDurumDizisi()));\r\n return res.toString();\r\n }", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "private void fillCreateOrEditForm(String name, String branch) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByVisibleText(xpathSelectBranch, branch);\n logger.info(\"# Select branch name: \" + branch);\n }", "@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\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}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@RequestMapping(\"showForm\")\n\tpublic String showForm( Model theModel) {\n\t\t\n\t\t//create a student\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t//add student to the model\n\t\ttheModel.addAttribute(\"student\", theStudent);\n\t\t\n\t\treturn \"student-form\";\n\t}", "private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}", "@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\n\t{\n\t\t\n\t\tStudent student=new Student(); //To hold form Data.\n\t\t\n\t\tmodel.addAttribute(\"student\",student);\n\t\t\n\t\t// go to create_student.html page\n\t\treturn \"create_student\";\n\t}", "private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public com.ext.portlet.model.ModelInputGroup create(long modelInputGroupPK);", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public void create(ActionEvent actionEvent) {\n String grName = groupName.getText();\n ObservableList memList = addList.getCheckModel().getCheckedItems();\n\n if (memList == null) return;\n\n String memName = \"\";\n for (Object obj : memList ) {\n memName += obj.toString() + \"\\n\";\n }\n if (memName != \"\") {\n sender.requestNewGroup(grName, memName);\n chatUIController.newGr(grName);\n }\n return;\n }", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "public Builder setK(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n k_ = value;\n onChanged();\n return this;\n }", "@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}", "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t// add student object to the model\n\t\ttheModel.addAttribute(theStudent);\n\t\t\n\t\t// add the department options to the model \n\t theModel.addAttribute(\"departmentOptions\", departmentOptions); \n\t \n\t LinkedHashMap<String, String> favoriteLanguageOptions = new LinkedHashMap<String, String>();\n\t favoriteLanguageOptions.put(\"Java\", \"Java\");\n favoriteLanguageOptions.put(\"C#\", \"C#\");\n favoriteLanguageOptions.put(\"PHP\", \"PHP\");\n favoriteLanguageOptions.put(\"Ruby\", \"Ruby\"); \n\t theModel.addAttribute(\"favoriteLanguageOptions\", favoriteLanguageOptions); \n\n\t\treturn \"student-form\";\n\t}", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@Override\r\n\tpublic void createPartControl(final Composite parent) {\r\n\t\t// Create the parent component\r\n\t\ttoolkit = new FormToolkit(Display.getDefault());\r\n\t\tform = toolkit.createForm(parent);\r\n\t\tform.setText(\"Vormerkungen\");\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\r\n\t\tfinal Composite composite = form.getBody();\r\n\t\tcomposite.setLayout(new FillLayout());\r\n\r\n\t\tSashForm sash_prebooking = new SashForm(composite, SWT.HORIZONTAL);\r\n\r\n\t\t// groups-----------------------------------\r\n\t\tfinal SashForm sashForm_8 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungBruckGroup = new Group(sashForm_8, SWT.NONE);\r\n\t\trichtungBruckGroup.setLayout(new FillLayout());\r\n\t\trichtungBruckGroup.setForeground(CustomColors.COLOR_RED);\r\n\t\trichtungBruckGroup.setText(\"Richtung Bruck\");\r\n\r\n\t\tfinal SashForm sashForm_7 = new SashForm(sashForm_8, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungKapfenbergGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungKapfenbergGroup.setLayout(new FillLayout());\r\n\t\trichtungKapfenbergGroup.setText(\"Richtung Kapfenberg\");\r\n\r\n\t\tfinal Group richtungMariazellGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungMariazellGroup.setLayout(new FillLayout());\r\n\t\trichtungMariazellGroup.setText(\"Richtung Mariazell\");\r\n\r\n\t\t// ----------------------------------------------\r\n\t\tfinal SashForm sashForm_9 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungGrazGroup = new Group(sashForm_9, SWT.NONE);\r\n\t\trichtungGrazGroup.setLayout(new FillLayout());\r\n\t\trichtungGrazGroup.setText(\"Richtung Graz\");\r\n\r\n\t\tfinal SashForm sashForm_1 = new SashForm(sashForm_9, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungLeobenGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungLeobenGroup.setLayout(new FillLayout());\r\n\t\trichtungLeobenGroup.setText(\"Richtung Leoben\");\r\n\r\n\t\tfinal Group richtungWienGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungWienGroup.setLayout(new FillLayout());\r\n\t\trichtungWienGroup.setText(\"Richtung Wien\");\r\n\r\n\t\t// viewers\r\n\t\tviewerLeoben = createTableViewer(richtungLeobenGroup);\r\n\t\tviewerGraz = createTableViewer(richtungGrazGroup);\r\n\t\tviewerKapfenberg = createTableViewer(richtungKapfenbergGroup);\r\n\t\tviewerBruck = createTableViewer(richtungBruckGroup);\r\n\t\tviewerWien = createTableViewer(richtungWienGroup);\r\n\t\tviewerMariazell = createTableViewer(richtungMariazellGroup);\r\n\r\n\t\t// create the tooltip\r\n\t\ttooltipLeoben = new JournalViewTooltip(viewerLeoben.getControl());\r\n\t\ttooltipGraz = new JournalViewTooltip(viewerGraz.getControl());\r\n\t\ttooltipKapfenberg = new JournalViewTooltip(viewerKapfenberg.getControl());\r\n\t\ttooltipBruck = new JournalViewTooltip(viewerBruck.getControl());\r\n\t\ttooltipWien = new JournalViewTooltip(viewerWien.getControl());\r\n\t\ttooltipMariazell = new JournalViewTooltip(viewerMariazell.getControl());\r\n\r\n\t\t// show the tool tip when the selection has changed\r\n\t\tviewerLeoben.addSelectionChangedListener(createTooltipListener(viewerLeoben, tooltipLeoben));\r\n\t\tviewerGraz.addSelectionChangedListener(createTooltipListener(viewerGraz, tooltipGraz));\r\n\t\tviewerKapfenberg.addSelectionChangedListener(createTooltipListener(viewerKapfenberg, tooltipKapfenberg));\r\n\t\tviewerBruck.addSelectionChangedListener(createTooltipListener(viewerBruck, tooltipBruck));\r\n\t\tviewerWien.addSelectionChangedListener(createTooltipListener(viewerWien, tooltipWien));\r\n\t\tviewerMariazell.addSelectionChangedListener(createTooltipListener(viewerMariazell, tooltipMariazell));\r\n\r\n\t\t// sort the table by default\r\n\t\tviewerLeoben.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerGraz.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerKapfenberg.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerBruck.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerWien.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerMariazell.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\r\n\t\tmakeActionsBruck(viewerBruck);\r\n\t\tmakeActionsKapfenberg(viewerKapfenberg);\r\n\t\tmakeActionsLeoben(viewerLeoben);\r\n\t\tmakeActionsMariazell(viewerMariazell);\r\n\t\tmakeActionsGraz(viewerGraz);\r\n\t\tmakeActionsWien(viewerWien);\r\n\r\n\t\thookContextMenuLeoben(viewerLeoben);\r\n\t\thookContextMenuGraz(viewerGraz);\r\n\t\thookContextMenuWien(viewerWien);\r\n\t\thookContextMenuMariazell(viewerMariazell);\r\n\t\thookContextMenuBruck(viewerBruck);\r\n\t\thookContextMenuKapfenberg(viewerKapfenberg);\r\n\r\n\t\t// add the form actions\r\n\t\tcreateToolBarActions();\r\n\r\n\t\t// apply the filters\r\n\t\tapplyFilters();\r\n\r\n\t\t// register listeners to keep in track\r\n\t\tNetWrapper.registerListener(this, Transport.class);\r\n\t\tUiWrapper.getDefault().registerListener(this);\r\n\r\n\t\t// initialize the view with current data\r\n\t\tinitView();\r\n\t}", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }", "@Override\r\n\tpublic ActionForward to_objectNew(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows KANException {\n\t\treturn null;\r\n\t}", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;", "public Object create(String key_letters) throws XtumlException;", "@LoginRequired\n\t@RequestMapping(value={\"/user/key/new\",\"/admin/user/key/new\"}, method=RequestMethod.GET)\n\tpublic String newKey(Model model, HttpSession session) throws Exception {\n\t\tApiKey apiKey = new ApiKey();\n\t\tmodel.addAttribute(\"apiKey\", apiKey);\n\t\tmodel.addAttribute(\"keyStatuses\", KeyStatus.values());\n\t\tmodel.addAttribute(\"targetPage\", \"keynew\");\n\t return \"user/key\"; \n\t}", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tCustomer customer = new Customer();\n\n\t\t// add Customer object to the model\n\t\ttheModel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}", "@GetMapping(\"/new\")\n public ModelAndView addAttributesForm() {\n return new ModelAndView(\"/sessions/session-create.html\");\n }", "public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public frm_tutor_subida_prueba() {\n }", "public static void createButtonSelection(ActionContext actionContext){\n Thing store = actionContext.getObject(\"store\");\n store.doAction(\"openCreateForm\", actionContext);\n }", "public ActionForward init(\n\t\t\tActionMapping mapping,\n\t\t\tActionForm form,\n\t\t\tHttpServletRequest request,\n\t\t\tHttpServletResponse response)\n\t\t\tthrows Exception {\n\t\t\t\tResourceBundle bundle = ResourceBundle.getBundle(\"ApplicationResources\");\n\t\t\t\tUserMstr userBean = (UserMstr)request.getSession().getAttribute(\"USER_INFO\");\n\t\t\t\tKmElementMstrFormBean formBean = (KmElementMstrFormBean)form;\n\t\t\t\tlogger.info(userBean.getUserLoginId() + \" entered initElement method\");\n\t\t\t\tformBean.reset(mapping,request);\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tKmElementMstrService kmElementService = new KmElementMstrServiceImpl();\n\t\t\t\t\tList firstDropDown;\n\t\t\t\t\tif (userBean.getKmActorId().equals(bundle.getString(\"LOBAdmin\"))||userBean.getKmActorId().equals(bundle.getString(\"Superadmin\"))) {\n\t\t\t\t\t\tfirstDropDown = kmElementService.getAllChildren(userBean.getElementId());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfirstDropDown = kmElementService.getChildren(userBean.getElementId());\n\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tif (firstDropDown!=null && firstDropDown.size()!=0){\n\t\t\t\t\t\tformBean.setInitialLevel(((KmElementMstr)firstDropDown.get(0)).getElementLevel());\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tint initialLevel=Integer.parseInt(kmElementService.getElementLevelId(userBean.getElementId()));\n\t\t\t\t\t\tinitialLevel++;\n\t\t\t\t\t\tformBean.setInitialLevel(initialLevel+\"\");\n\t\t\t\t\t}\n\t\t\t\t\tformBean.setParentId(userBean.getElementId());\n\t\t\t\t\tformBean.setCreateMultiple(null);\n\t\t\t\t\tformBean.setElementPath(\"\");\n\t\t\t\t\trequest.setAttribute(\"elementLevelNames\",kmElementService.getAllElementLevelNames());\n\t\t\t\t\trequest.setAttribute(\"allParentIdString\",kmElementService.getAllParentIdString(\"1\",userBean.getElementId()));\n\t\t\t\t\trequest.setAttribute(\"firstList\",firstDropDown);\n\t\t\t\t\t\n\t\t\t\t} catch (LMSException e) {\n\t\t\t\t\tlogger.error(\"KmException in Loading page for Init Create ELement: \"+e.getMessage());\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Exception in Loading page for Init Create ELement: \"+e.getMessage());\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tlogger.info(userBean.getUserLoginId() + \" exited init Create Element method\");\n\t\t\t\treturn mapping.findForward(\"initialize\");\n\t\t\t\t\n\t\t}", "public Builder clearK() {\n \n k_ = getDefaultInstance().getK();\n onChanged();\n return this;\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@RequestMapping(value = \"/add\")\n public String addForm(Model model) {\n model.addAttribute(\"service\",fservice.findAllServices());\n model.addAttribute(\"customer\", mservice.findAllCustomer());\n model.addAttribute(\"customer\", new Customer());\n return \"customer-form\";\n }", "public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }", "@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }", "public void onPostCreate(Bundle bundle) {\n super.onPostCreate(bundle);\n this.j.b(k());\n }", "public FAQ(int k) {\n initComponents();\n this.setLocationRelativeTo(null);\n id=k;\n }", "@RequestMapping(value = { \"/new\"}, method = RequestMethod.GET)\n\tpublic String newEntity(ModelMap model) {\n\t\tENTITY entity = createEntity();\n\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}", "@Override\n public ExtensionResult getForms(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n FormBuilder formBuilder = new FormBuilder(appProperties.getFormIdTest());\n\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"Test Form\");\n button.setSubTitle(\"Subtitle is here\");\n button.setPictureLink(appProperties.getAtmUrl());\n button.setPicturePath(appProperties.getAtmUrl());\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Label here\");\n bookAction.setValue(formBuilder.build());\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n\n output.put(OUTPUT, buttonBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public abstract void addSelectorForm();", "public static void insertForm(Form form) {\n\t\t\n\t\ttry {\n\t\t\tConnection connection = getConnection();\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(\"INSERT INTO form (form_version, form_name, field_id, field_value) \"\n\t\t\t\t\t\t+ \"VALUES ('\"+form.getTheVersion()+\"','\"+form.getTheName()+\"', '\"+form.getTheFieldId()+\"', '\"+form.getTheFieldValue()+\"')\");\n\t\t\t\t\n\t\t\t\tstatement.executeUpdate();\n\n statement.close();\n connection.close();\n\t\t\t\t\n\t\t\t}catch(SQLException ex) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch (Exception e) {\n e.printStackTrace();\n }\n\t\t\n\t}", "public HashTreeNode genCandidateHashTree(int k) {\n\t\t\n\t\tHashTreeNode htn = new HashTreeNode();\n\t\t\n\t\tif( 1 == k ) {\n\t\t\thtn.nodeAttr = 2;\n\t\t}\n\t\telse {\n\t\t\thtn.nodeAttr = 1;\n\t\t}\n\t\t\n\t\tint length = ((CandidateElement)candi.get(k-1)).candidateList.size();\n\t\tfor(int i = 1; i<=length; i++) {\n\t\t\tString candidate1 = new String();\n\t\t\tcandidate1 = (String) ((CandidateElement)candi.get(k-1)).candidateList.get(i-1);\n\t\t\tgenHash(1, htn, candidate1);\n\t\t}\n\t\treturn htn;\n\t}", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Categories theCategories = new Categories();\n theModel.addAttribute(\"categories\", theCategories);\n //theModel.addAttribute(\"update\", false);\n return \"loaisanpham-form\"; }", "public TmKabupaten() {\n\t}", "public StorageForm() {\n}", "@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }", "public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }", "public MechanicForm() {\n initComponents();\n }", "@GetMapping(\"/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tSkill theSkill = new Skill();\n\t\t\n\t\ttheModel.addAttribute(\"skill\", theSkill);\n\t\t\n\t\treturn \"skill-form\";\n\t}", "public ProposalSpecialReviewForm() {\r\n }", "protected TransactionFactory(TransactionTypeKeys key) {\n\t\tsetForm(new Form(key, new ActionHandler()));\n\t\tsetLastUsedDate(new Date());\n\n\t\t// Build panel.\n\t\tsetFill(GridBagConstraints.BOTH);\n\t\tadd(getForm(), 0, 0, 1, 1, 100, 100);\n\n\t\tclear();\n\t\tenableForm(false);\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }", "public SignUpForm(Context ctx) {\n super(ctx);\n init();\n }", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "public TransferOfFundsForm() {\n super();\n }", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }", "public abstract void addEditorForm();", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "private void ErstelleKontakt(Kontakt k) throws Exception {\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tk = service.createKontakt(k);\r\n\t\t\r\n\t\tSystem.out.println(\"Kontakt erstellt: \");\r\n\t\tSystem.out.println(\"ID: \" + k.getcId());\r\n\t\tSystem.out.println(\"Nachname: \" + k.getcNName());\r\n\t\tSystem.out.println(\"Vorname: \" + k.getcVName());\r\n\r\n\t}", "@POST\n //@Path(\"/\")\n @Produces(MediaType.APPLICATION_XML)\n @Consumes(MediaType.APPLICATION_XML)\n public void createKunde(Kunde kunde){\n //Kunde kunde = new Kunde(kunde);\n System.out.println(\"Füge Kunden \"+kunde.getName()+\" hinzu\");\n alleKunden.addKunde(kunde);\n System.out.println(\"Aktuelle Kunden\");\n for(int i = 0 ; i < alleKunden.getAlleKunden().size();i ++){\n System.out.println((i+1)+\". \"+alleKunden.getAlleKunden().get(i).getName());\n }\n }" ]
[ "0.66508913", "0.6343078", "0.6063972", "0.5627665", "0.54984844", "0.54481095", "0.5437843", "0.54184675", "0.5409196", "0.54004836", "0.5346397", "0.52802944", "0.5278925", "0.5267079", "0.52454656", "0.5244786", "0.5239997", "0.5239482", "0.52343684", "0.5228744", "0.5228666", "0.51871014", "0.5181501", "0.51721656", "0.51681095", "0.5165707", "0.51639676", "0.5162946", "0.5155803", "0.51443774", "0.51339895", "0.5126872", "0.5124999", "0.5119696", "0.5114791", "0.51088387", "0.5108823", "0.51064795", "0.5101877", "0.5098036", "0.50803417", "0.5062253", "0.5059481", "0.50593585", "0.5058546", "0.5057216", "0.5035905", "0.5028071", "0.5026853", "0.5024753", "0.5024531", "0.5013702", "0.50129175", "0.5011134", "0.50109315", "0.49913234", "0.49876466", "0.4987235", "0.49856073", "0.49706817", "0.49673957", "0.49647254", "0.4954477", "0.49542978", "0.49420506", "0.49368346", "0.4936716", "0.4931807", "0.4929074", "0.4924304", "0.49208623", "0.49175608", "0.49156117", "0.49105686", "0.49094006", "0.49044082", "0.49003163", "0.48995268", "0.48929787", "0.48928675", "0.4887903", "0.48863092", "0.4877451", "0.48680994", "0.4864625", "0.48614505", "0.4861164", "0.48509383", "0.4850113", "0.48488542", "0.48485205", "0.48411545", "0.48385513", "0.48371726", "0.48347908", "0.48304257", "0.4828887", "0.48249522", "0.4822057", "0.4811309", "0.47742292" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. GENBEGIN:initComponents
private void initComponents() { this.setLocation(420, 300); okButton = new javax.swing.JButton(); cancelButton = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); jEditorPane1 = new javax.swing.JEditorPane(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); setTitle("等待您的选择"); setIconImage(null); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); okButton.setText("是"); okButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okButtonActionPerformed(evt); } }); cancelButton.setText("取消"); cancelButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelButtonActionPerformed(evt); } }); jButton1.setText("否"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jScrollPane1 .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPane1 .setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jPanel1.setBackground(new java.awt.Color(251, 251, 251)); jLabel1.setFont(new java.awt.Font("楷体_GB2312", 0, 18)); jLabel1 .setText("选择是否重新建表"); jScrollPane2.setBorder(null); jEditorPane1.setBackground(new java.awt.Color(251, 251, 251)); jEditorPane1.setEditable(false); jEditorPane1 .setText(" 您选择的" + elementstring + "要素表已经存在,是否选择删除要素表!"); jScrollPane2.setViewportView(jEditorPane1); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout( jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout .setHorizontalGroup(jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addGroup( jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addGap( 23, 23, 23) .addComponent( jLabel1)) .addGroup( jPanel1Layout .createSequentialGroup() .addGap( 43, 43, 43) .addComponent( jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 470, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(406, Short.MAX_VALUE))); jPanel1Layout .setVerticalGroup(jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent( jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(32, Short.MAX_VALUE))); jScrollPane1.setViewportView(jPanel1); jLabel2 .setText("点击‘是’将重复的表删除并重建"); jLabel3 .setText("点击‘否’将把数据导入到已存在的表中"); jLabel4.setFont(new java.awt.Font("宋体", 0, 14)); jLabel4.setText("说明:"); jLabel5 .setText("点击‘取消’将取消此次导入"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout( getContentPane()); getContentPane().setLayout(layout); layout .setHorizontalGroup(layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE) .addGroup( layout .createSequentialGroup() .addContainerGap() .addComponent(jLabel4) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( jLabel5) .addComponent( jLabel3)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE) .addComponent( okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap( 12, 12, 12)) .addGroup( layout .createSequentialGroup() .addComponent( jLabel2) .addContainerGap())))); layout .setVerticalGroup(layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addComponent( jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jLabel2)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGap( 16, 16, 16) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( jButton1) .addComponent( okButton) .addComponent( cancelButton))) .addGroup( layout .createSequentialGroup() .addGap( 8, 8, 8) .addComponent( jLabel3) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jLabel5))) .addContainerGap(12, Short.MAX_VALUE))); this.setIconImage(Toolkit.getDefaultToolkit().createImage(this.getClass().getResource("/load1/apple.JPG"))); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public form() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public FormListRemarking() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public frmRectangulo() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 630, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 431, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Magasin() {\n initComponents();\n }", "public soal2GUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public EindopdrachtGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 760, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 446, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }", "public SettingsForm() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "public sinavlar2() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public MusteriEkle() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public PatientUI() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 278, Short.MAX_VALUE)\n );\n\n pack();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public uitax() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initComponents() {//GEN-BEGIN:initComponents\n\n FormListener formListener = new FormListener();\n\n addMouseListener(formListener);\n\n }", "public busdet() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public bt526() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public form2() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n contactBrowsePanel1 = new cis406.contact.BrowsePanel();\n contactEditPanel1 = new cis406.contact.EditPanel();\n\n setName(\"Form\"); // NOI18N\n setLayout(new java.awt.CardLayout());\n\n contactBrowsePanel1.setName(\"contactBrowsePanel1\"); // NOI18N\n add(contactBrowsePanel1, \"Browse\");\n\n contactEditPanel1.setName(\"contactEditPanel1\"); // NOI18N\n add(contactEditPanel1, \"Edit\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Pregunta23() {\n initComponents();\n }", "public PatientRegForm() {\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public Ventaform() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}", "public frmVenda() {\n initComponents();\n }", "public MyGarage() {\n initComponents();\n }" ]
[ "0.77052563", "0.7668779", "0.7668779", "0.7668779", "0.765817", "0.7638566", "0.7622594", "0.75436556", "0.7534082", "0.75074464", "0.75061643", "0.7473597", "0.7458769", "0.7399287", "0.7395123", "0.7390105", "0.7390082", "0.73825073", "0.73822784", "0.73718286", "0.73651165", "0.736425", "0.73632413", "0.73563415", "0.7353898", "0.7347891", "0.73451734", "0.73395705", "0.7339037", "0.7339037", "0.73337185", "0.7325323", "0.7323994", "0.7314791", "0.73099715", "0.73099715", "0.73099715", "0.73066205", "0.7304143", "0.7302", "0.7297639", "0.7268986", "0.72677743", "0.72671586", "0.72634983", "0.72629017", "0.7260642", "0.7245074", "0.72381085", "0.72211003", "0.7217872", "0.7217061", "0.7209647", "0.7209019", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7204718", "0.7198862", "0.7198862", "0.7198862", "0.7198862", "0.7198862", "0.7198862", "0.7198862", "0.7198862", "0.7198862", "0.7198108", "0.71978337", "0.71973073", "0.71945673", "0.71869254", "0.7185459", "0.7184308", "0.7180476", "0.71770823", "0.7175721", "0.7175273", "0.7172929", "0.7172411", "0.7171312", "0.7165791", "0.7155744", "0.7154752", "0.7154522", "0.71491414", "0.71441776", "0.7143378", "0.71392256", "0.71363497", "0.71344113", "0.71334815" ]
0.0
-1
GENLAST:event_cancelButtonActionPerformed Closes the dialog
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog doClose(RET_CANCEL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "public void cancelDialog() {dispose();}", "protected void closeDialogCancel() {\n dispose();\n }", "public void cancel() { Common.exitWindow(cancelBtn); }", "private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed\n this.dispose();\n }", "private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(DialogConst.CANCEL);\n }", "public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "public void onCancelButtonClick() {\n close();\n }", "private void jButtonCancelActionPerformed() {\r\n\t\texit();\r\n\t}", "private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeButtonActionPerformed\n cancelled = true;\n dispose();\n }", "private void btnCancelActionPerformed(ActionEvent e) {\n processWindowEvent(new WindowEvent(this,WindowEvent.WINDOW_CLOSING));\n }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}", "private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n \n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "private void jButton_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_CancelActionPerformed\n // TODO add your handling code here:\n }", "public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n scheduleSelected = false;\r\n setVisible(false);\r\n dispose();\r\n }", "private void btnCancelaActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\n }", "private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "private void dataReservationTypeCancelHandle() {\n reservationController.dialogStage.close();\r\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false); \n actionCommand = false;\n dispose();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {\r\n if (dataChanged) {\r\n /* Ask for confirmation by the user to save the information entered\r\n * in the database */\r\n int resultConfirm = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (resultConfirm == 0) {\r\n try {\r\n saveRolodexInfo();\r\n }catch(Exception e){\r\n releaseUpdateLock();\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else if (resultConfirm == 1) {\r\n dataSaved = false;\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }else {\r\n return;\r\n }\r\n }else{\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "private void btnCancelActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnCancelActionPerformed\n {//GEN-HEADEREND:event_btnCancelActionPerformed\n try\n {\n // TODO add your handling code here:\n DBCommands.closeConnection();\n } catch (SQLException ex)\n {\n Logger.getLogger(EntryForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n MainMethod.cancelOperation(\"entry\");\n }", "private void buttonOkJDialogActionPerformed(ActionEvent e) {\n IdFail.dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_OK);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible (false);\n dispose ();\n }", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "public void cancel ()\r\n\t{\r\n\t\tmyFrame.dispose();\r\n\t}", "protected void closeDialogOk() {\n dispose();\n }", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "public void onCancel(DialogInterface arg0) {\n mRemovePosition = -1;\n mRemoveConfirmDialog = null;\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "protected void closeDialog() { setVisible(false); dispose(); }", "@Override\n\tpublic void finish() {\n\t\tcancelDialog();\n\t\tsuper.finish();\n\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n setVisible(false);\r\n dispose();\r\n }", "private void jbExitActionPerformed(java.awt.event.ActionEvent evt) {\n frame=new JFrame(\"Exit\");\n if(JOptionPane.showConfirmDialog(frame,\"Confirm if you want to exit\",\"Point of Sale-Supplier\",\n JOptionPane.YES_NO_OPTION) == JOptionPane.YES_NO_OPTION){\n this.dispose();\n\n }//GEN-LAST:event_jbExitActionPerformed\n }", "@Override\r\n\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\tUpdateActivity.this.finish();\r\n\t\t\t}", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "private void onCancel()\n\t{\n\t\tdispose();\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogExit();\r\n\t\t\t}", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "void CloseOkDialog();", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@FXML private void handleCancel() {\r\n\t\tvastaus = null;\r\n\t\tModalController.closeStage(textVastaus);\r\n\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n setVisible(false);\r\n setVisible(false);\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt)//GEN-FIRST:event_closeDialog\r\n {\r\n setVisible(false);\r\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "void close() {\n boolean closeable = true;\n if (progressPanel.getStatus() != ReportStatus.CANCELED && progressPanel.getStatus() != ReportStatus.COMPLETE && progressPanel.getStatus() != ReportStatus.ERROR) {\n closeable = false;\n }\n if (closeable) {\n actionListener.actionPerformed(null);\n } else {\n int result = JOptionPane.showConfirmDialog(this,\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.sureToClose.msg\"),\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.title.closing\"),\n JOptionPane.YES_NO_OPTION);\n if (result == 0) {\n progressPanel.cancel();\n actionListener.actionPerformed(null);\n }\n }\n }", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "private void onCancel() {\n\t\tdispose();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "public void onCancelClicked() {\r\n // Get a reference to the stage\r\n Stage stage = (Stage) btnCancel.getScene().getWindow();\r\n // Close the window\r\n stage.close();\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "private void onCancel() {\n System.exit(0);\r\n dispose();\r\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }" ]
[ "0.8395496", "0.8262556", "0.82268465", "0.79235274", "0.7910158", "0.7790214", "0.7772643", "0.77420974", "0.77392846", "0.77392846", "0.77392846", "0.7714417", "0.769184", "0.7678106", "0.76768976", "0.7666514", "0.7657859", "0.7657145", "0.76421404", "0.75943667", "0.7593903", "0.7590105", "0.75312644", "0.7526748", "0.7520257", "0.7450928", "0.7441849", "0.74309486", "0.7403981", "0.740263", "0.7395581", "0.73791707", "0.7355059", "0.735232", "0.73432755", "0.7341042", "0.73376876", "0.7336039", "0.73271835", "0.73103017", "0.73082995", "0.72999513", "0.72975385", "0.72641623", "0.7262301", "0.7258908", "0.7258516", "0.7243586", "0.72318226", "0.7227657", "0.72102493", "0.7198448", "0.7189392", "0.7185163", "0.7179035", "0.7179035", "0.7179035", "0.7179035", "0.7179035", "0.71738297", "0.7165861", "0.71608657", "0.7159505", "0.71553564", "0.71507937", "0.7145265", "0.7132754", "0.7120821", "0.7105374", "0.7100776", "0.7099344", "0.70971125", "0.7092618", "0.70905966", "0.7080305", "0.706658", "0.70664907", "0.70657283", "0.70656466", "0.70636046", "0.70636046", "0.70636046", "0.7061831", "0.706005", "0.7059698", "0.7047521", "0.70431215", "0.7043111", "0.7040084", "0.70362467", "0.70362467", "0.70362467", "0.70362467", "0.7028623", "0.7025169", "0.7018393", "0.7009452", "0.6998796", "0.6997507", "0.69938284" ]
0.7495298
25
Retorna la coordenada x (en pixeles) de la entidad
public int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getX() { return xCoordinate;}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public double getXPixel()\n {\n return xPixel;\n }", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "double getXPosition();", "public int getX() {\n return xCoord;\n }", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int getX(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(0)/ AvesAblazeHardware.mmPerInch);\n\t}", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "public int getX() {\n return this.coordinate.x;\n }", "double getPositionX();", "double getPositionX();", "double getPositionX();", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "private int get_x() {\n return center_x;\n }", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getX() {\r\n return xpos;\r\n }", "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getX() {\n return pos_x;\n }", "public double getXCoordinates() { return xCoordinates; }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getX() { return position.x; }", "public double getPositionX() {\n\t\treturn this.tilePositionX;\n\t}", "public int getX() {\n return (int) xPos;\n }", "public int getX(){ return xPosition; }", "public int getX() {\r\n return (int) center.getX();\r\n }", "public int getXPoint() {\r\n return this.x;\r\n }", "public float getX() {\n return pos.x;\n }", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public int getX() {\n return (int) this.center.getX();\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getX() {\n return (int) center.getX();\n }", "double getMapPositionX();", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public int getX() {\n\treturn baseXCoord;\n}", "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public int getXPos();", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "public int getX() {\n return (int) Math.round(x);\n }", "public int getLocationX() {\r\n\t\treturn x;\r\n\t}", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public int get_X_Coordinate()\n {\n return currentBallX;\n }", "public int getX()\n\t{\n\t\treturn mX;\n\t}", "int getX() {\n return xPos;\n }", "public int getXPosition() {\n return xPosition;\n }", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public int getX() {\n\t\t\n\t\treturn xPosition;\t\t// Gets the x integer\n\t}", "public float getPositionX() {return this.position.getX();}", "public int getXPosition() {\n return this.xPosition;\n }", "int getX_coordinate(){\n return x_coordinate;\n }", "public double getX() {\n return position.getX();\n }", "public int getxCoordinate() {\n\t\treturn xCoordinate;\n\t}", "public final int getPositionX() {\r\n return (int) position.x();\r\n }", "public int getPositionX(){\n\t\treturn positionx;\n\t}", "float getX();", "float getX();", "float getX();", "float getX();", "float getX();", "float getX();", "public double getxCoord() {\n\t\treturn xCoord;\n\t}", "@Override\n\tpublic int getX() {\n\t\treturn this.posicionX;\n\t}", "public float getxPosition() {\n return xPosition;\n }", "public int getX() {\n return positionX;\n }", "public double getXPos(){\n return xPos;\n }", "public float getX() {\r\n return x;\r\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }", "public double getXCoordinate() {\n return xCoordinate;\n }", "public double getX() {\n\t\treturn sens.getXPos();\n\t}", "public int getX()\r\n\t{\r\n\t\treturn (int)x;\r\n\t}", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int getX() {\n return posX;\n }", "public int getPointX() {\n return pointX;\n }", "public int getXPosition() {\n\t\treturn this.position.x;\n\t}", "protected Number getX() {\n return this.xCoordinate;\n }", "public int getxPosition() {\n\t\treturn xPosition;\n\t}", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "public int getPosicaoX() {\r\n\t\treturn posicaoX;\r\n\t}", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public float getX();", "public float getX();", "public int getX() { \n\t\treturn x;\n\t}", "public float getX() {\n return this.x;\n }", "public int x (int index) { return coords[index][0]; }", "public double getxCoordinate() {\n return xCoordinate;\n }", "public int getX()\n\t{\n\t\treturn m_nPosX;\n\t}" ]
[ "0.7994392", "0.7951121", "0.7929476", "0.78637433", "0.78631216", "0.7856426", "0.7775544", "0.7756837", "0.7739333", "0.7739294", "0.77384025", "0.7727196", "0.7727196", "0.7727196", "0.7698672", "0.7685738", "0.7679628", "0.7679628", "0.7677808", "0.7624522", "0.7601748", "0.75938356", "0.7566021", "0.7562927", "0.75606984", "0.75606984", "0.75355434", "0.7535201", "0.7531864", "0.75283396", "0.75254136", "0.75211596", "0.75192225", "0.7511443", "0.7505338", "0.7503025", "0.74979365", "0.74979365", "0.74920917", "0.7490147", "0.7481111", "0.7475326", "0.7473418", "0.74694866", "0.74659204", "0.7462694", "0.7454835", "0.745465", "0.74360335", "0.7432107", "0.7424644", "0.7422056", "0.7418206", "0.74111915", "0.74099046", "0.7399407", "0.7399349", "0.7364473", "0.73607624", "0.7356946", "0.7354817", "0.7329865", "0.7328202", "0.7308933", "0.73064464", "0.73064464", "0.73064464", "0.73064464", "0.73064464", "0.73064464", "0.72898173", "0.7284232", "0.72837365", "0.7271754", "0.7269847", "0.72648203", "0.7259959", "0.7259959", "0.7259959", "0.72596216", "0.7259268", "0.7251061", "0.72488326", "0.72472525", "0.72472525", "0.72468287", "0.72372127", "0.7224329", "0.7224234", "0.72171944", "0.7217032", "0.7207709", "0.7205802", "0.72033787", "0.7196765", "0.7196765", "0.7192317", "0.7191034", "0.71818703", "0.71715796", "0.71663576" ]
0.0
-1
Retorna la coordenada y (en pixeles) de la entidad
public int getY() { return y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getCoordinates();", "long getCoordinates();", "public Position getPositionFromPixelCoords(int y, int x){\n if (disp.rotated){\n return new Position(y / 64 + 1, (x - 640) / -64);\n } else {\n return new Position((y - 576) / -64, x / 64);\n }\n }", "public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}", "public int getY() { return loc.y; }", "String getPosY();", "public Point2D getLocation();", "long getY();", "private Point getPixel(Point source) {\n float stepWidth = /*canvasWidth*/ canvasHeight / mapWidth;\n float stepHeight = canvasHeight / mapHeight;\n\n float centerX = canvasWidth / 2;\n float centerY = canvasHeight / 2;\n\n return new Point((int) (centerX + source.X * stepWidth), (int) (centerY + source.Y * stepHeight));\n }", "public double[] getWorldCoordinateWGS84(int screenX, int screenY);", "public Point2D.Double getImageCenter();", "double getY() { return pos[1]; }", "public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }", "public Vector2f getCoordinates() {\r\n return new Vector2f(tileColumn, tileRow);\r\n }", "public Coordinate getCoordenadasActuales() ;", "public double getXPixel()\n {\n return xPixel;\n }", "public E3DVector2F getTextureCoordC(){\r\n return vertices[2].getTextureCoord();\r\n }", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public int getXY(int x, int y);", "public int getY() { return y;}", "public int getY() { return y;}", "public Pixel getPixelLocation() {\n\t\treturn _PixelLocation;\n\t}", "public long[] getWorldCoordinate(int screenX, int screenY);", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public int getY(){\n return this.position[1];\n }", "@Override\n public double getPosY() {\n return this.pos[1];\n }", "public int getY() {return y;}", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public abstract int[] getCoords();", "public int getY() { return y; }", "public int getY() { return y; }", "public int getLocY ()\n {\n return locY;\n }", "double getMapPositionY();", "public int[] getCoords() {\n return coords;\n }", "public int get_Y_Coordinate()\n {\n return currentBallY;\n }", "double getYPosition();", "public float getPosY(){return py;}", "public int y (int index) { return coords[index][1]; }", "public double getYPixel()\n {\n return yPixel;\n }", "public double[] getHitGeoCoord();", "public int getY()\r\n {\r\n return yCoord;\r\n }", "public int getProgresionY(){\n return this.ubicacion.y;\n }", "public int getLocY() {\n return locY;\n }", "public int getY() {\r\n return ix / numCols;\r\n }", "public int getYCoordinate ()\n {\n return yCoordinate;\n }", "Point2D getDrawCoordinates(int counter) {\n int x = counter % drawWidth;\n int y = (counter / drawWidth) % drawHeight;\n\n x += drawOffsetX;\n y += drawOffsetY;\n\n return new Point2D.Double(x, y);\n }", "public Coordinates getCoordinates()\r\n {\r\n return new Coordinates(r.getX(), r.getY());\r\n }", "public E3DVector2F getTextureCoordA(){\r\n return vertices[0].getTextureCoord();\r\n }", "public Coords getCoord() {\r\n\t\treturn coord;\r\n\t}", "public GridCoord getCoord() {\n return coord;\n }", "public float getX() { return xCoordinate;}", "public int getY(){ return yPosition; }", "public int[] getScreenCoordinateWGS84(double worldLat, double worldLon);", "public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }", "private Point getMainPoint()\n {\n // Center of screen\n int x = (findViewById(R.id.the_canvas).getWidth() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteWidth())/2;\n // Very bottom of screen\n int y = findViewById(R.id.the_canvas).getHeight() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteHeight();\n\n return new Point (x,y);\n }", "public double getYCoordinates() { return yCoordinates; }", "public Coordinate getPosition();", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "public Coordonnees getCoordonnees(int x, int y) {\r\n\t\tif(y >= 0 && y < hauteur && x >= 0 && x < largeur)\r\n\t\t\treturn this.plateau[y][x].getCoordonnees();\r\n\t\treturn null;\r\n\t}", "byte[] getCurrentPixel() {\n byte[] pixel = new byte[2];\n\n pixel[0] = ((byte) cursor.getX());\n pixel[1] = ((byte) cursor.getY());\n\n for (byte b : pixel) {\n\n if (b >= axisLength || b < 0) {\n return null;\n }\n }\n return pixel;\n }", "public int getY ()\n {\n return coY;\n }", "int getY();", "int getY();", "int getY();", "int getY();", "int getY();", "public int getY() { return (int)y; }", "public int getY() {\n\treturn baseYCoord;\n}", "public E3DVector2F getTextureCoordDetail0C(){\r\n return vertices[2].getTextureCoordDetail0();\r\n }", "public double[][] getPixelCoordinates(){\n return m_pdX;\n }", "public int getY() {\n return this.coordinate.y;\n }", "public PixelPos getPixelPos() {\n\t\treturn pixelPos;\n\t}", "public int getLocationY() {\r\n\t\treturn y;\r\n\t}", "public int getY()\r\n {\r\n return yLoc;\r\n }", "public Point getLocation ( )\r\n\t{\r\n\t\treturn new Point ( currentCol, currentRow );\r\n\t}", "Square getCurrentPosition();", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "@Override \n public Vector getLocation() {\n return this.getR();\n }", "public Coordinate getLocation();", "@Override\n public ImageData getSnapshot(double x, double y, double width, double height) {\n return graphicsEnvironmentImpl.getPixelMap(canvas, x, y, width, height);\n }", "int getY_coordinate(){\n return y_coordinate;\n }", "@Override\n\tpublic Point getLocation() {\n\t\treturn new Point(x,y);\n\t}", "public Vector2F getScreenLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "public float[] getTextureCoords() {\r\n\t\treturn textureCoords;\r\n\t}", "public E3DVector2F getTextureCoordB(){\r\n return vertices[1].getTextureCoord();\r\n }", "public int[] getScreenCoordinate(long worldLat, long worldLon);", "public int getLat();", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "private int getRowPixelCoords(int row) {\r\n\t\treturn row * (HEX_HEIGHT - HEX_ANGLE_HEIGHT);\r\n\t}", "public int getY() {\n return yCoord;\n }", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "public void getCoordbyId(int id, Double X, Double Y) {\n CasellaGraphic casella = getCasellabyId(id);\n X = casella.getLayoutX();\n Y = casella.getLayoutY();\n }", "public Coordinate pixelToWorld(int x, int y, Envelope map) {\n if (graphics == null) {\n LOGGER.info(\"no graphics yet deffined\");\n \n return null;\n }\n \n //set up the affine transform and calculate scale values\n AffineTransform at = setUpTransform(map, screenSize);\n \n /* If we are rendering to a component which has already set up some form\n * of transformation then we can concatenate our transformation to it.\n * An example of this is the ZoomPane component of the swinggui module.*/\n if (concatTransforms) {\n graphics.getTransform().concatenate(at);\n } else {\n graphics.setTransform(at);\n }\n \n try {\n Point2D result = at.inverseTransform(new java.awt.geom.Point2D.Double(x, y),\n new java.awt.geom.Point2D.Double());\n Coordinate c = new Coordinate(result.getX(), result.getY());\n \n return c;\n } catch (Exception e) {\n LOGGER.warning(e.toString());\n }\n \n return null;\n }", "public int getX()\r\n {\r\n return xCoord;\r\n }", "Point getCenter();" ]
[ "0.6746503", "0.6746503", "0.66212064", "0.6563819", "0.65078425", "0.6446032", "0.6436131", "0.6421774", "0.64210343", "0.64158404", "0.6390337", "0.6382044", "0.63720196", "0.6364869", "0.6357768", "0.6346544", "0.63440984", "0.6327523", "0.63206697", "0.6304007", "0.6304007", "0.6294025", "0.6290381", "0.6272442", "0.6266097", "0.62627715", "0.62619835", "0.6259618", "0.62496024", "0.6241682", "0.6241682", "0.62333626", "0.6227572", "0.62271875", "0.6224183", "0.62241083", "0.62161803", "0.61917275", "0.61907953", "0.6168789", "0.6167827", "0.6166966", "0.61663425", "0.6157853", "0.6157557", "0.61567754", "0.6155298", "0.6152207", "0.61456656", "0.6144596", "0.6144528", "0.61427355", "0.6142386", "0.6129228", "0.61254275", "0.6121773", "0.611015", "0.61099917", "0.61084825", "0.61082214", "0.6105979", "0.6105285", "0.6105285", "0.6105285", "0.6105285", "0.6105285", "0.6091537", "0.6087206", "0.608574", "0.60851115", "0.608409", "0.60687315", "0.6048667", "0.60482067", "0.60465914", "0.6046116", "0.6045681", "0.6042522", "0.60417044", "0.60296535", "0.6025644", "0.60231483", "0.6020417", "0.601668", "0.60136193", "0.60105413", "0.6004887", "0.60022086", "0.59981877", "0.5987525", "0.5986929", "0.5970848", "0.5970848", "0.5970848", "0.5970848", "0.5970848", "0.5970848", "0.59687924", "0.59667116", "0.59658563", "0.59650344" ]
0.0
-1
Aceptar un Visitor de otra entidad y lo visita.
public abstract void accept(Visitor v);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void visit(User user);", "public void visit(Request r);", "@Override\r\n public void visit(final Context context, final Object object)\r\n {\r\n final CRMSpid serviceProvider = (CRMSpid) object;\r\n final Date dormantToDectivateDate;\r\n {\r\n final Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.DAY_OF_MONTH, -serviceProvider.getFinteBalanceDeactivationDays());\r\n calendar.set(Calendar.HOUR, 59);\r\n calendar.set(Calendar.MINUTE, 59);\r\n calendar.set(Calendar.SECOND, 59);\r\n calendar.set(Calendar.MILLISECOND, 59);\r\n dormantToDectivateDate = calendar.getTime();\r\n }\r\n final Context subcontext = context.createSubContext();\r\n final And condition = new And();\r\n condition.add(new EQ(SubscriberXInfo.STATE, SubscriberStateEnum.DORMANT));\r\n condition.add(new EQ(SubscriberXInfo.SPID, Integer.valueOf(serviceProvider.getSpid())));\r\n condition.add(new LT(SubscriberXInfo.LAST_MODIFIED, dormantToDectivateDate));\r\n try\r\n {\r\n final Home filteredHome = getHome().where(subcontext, condition);\r\n filteredHome\r\n .forEach(subcontext, new CloneingVisitor(new CloseZeroBlalanceSubscriberVisitor(getHome())));\r\n }\r\n catch (IllegalArgumentException exception)\r\n {\r\n // should not happen!!\r\n new MinorLogMsg(this, \"Home is not set in visitor for deactivating Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", exception).log(subcontext);\r\n }\r\n catch (AbortVisitException exception)\r\n {\r\n new MinorLogMsg(this, \"Error visiting home for deactivating Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", exception).log(subcontext);\r\n }\r\n catch (HomeException exception)\r\n {\r\n new MinorLogMsg(this, \"Error selecting who are Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", exception).log(subcontext);\r\n }\r\n catch (Throwable t)\r\n {\r\n new MinorLogMsg(this, \"Uknown Error while processing deactivation of Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", t).log(subcontext);\r\n }\r\n }", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "void visit(Visitor visitor);", "@Override\r\n\tpublic void visit(DisparoEnemigo d) {\n\t\tobj.mover();\r\n//\t\tSystem.out.println(\"VisitorEnemigo.visit(DisparoEnemigo)\");\r\n\t}", "void visit(Entitlement entitlement);", "@Override\r\n\tpublic void visit(User user) {\n\t\t\r\n\t}", "@Override\r\n \tpublic final void accept(IASTNeoVisitor visitor) {\r\n \t\tassertNotNull(visitor);\r\n \t\t\r\n \t\t// begin with the generic pre-visit\r\n \t\tif(visitor.preVisit(this)) {\r\n \t\t\t// dynamic dispatch to internal method for type-specific visit/endVisit\r\n \t\t\taccept0(visitor);\r\n \t\t}\r\n \t\t// end with the generic post-visit\r\n \t\tvisitor.postVisit(this);\r\n \t}", "@Override\r\n\tpublic void visit(DisparoAliado d) {\n\t\tobj.mover();\r\n//\t\tSystem.out.println(\"VisitorEnemigo.visit(DisparoAliado)\");\r\n\t}", "public void visit() {\n\t\tvisited = true;\n\t}", "@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "void visit(Entity node);", "public void visit() {\n visited = true;\n }", "public abstract void accept0(IASTNeoVisitor visitor);", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "@Override\r\n\tpublic void visit(Fighter fighter)\r\n\t{\n\t\t\r\n\t}", "public abstract void visit();", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "@Override\n\tpublic void visit(final Aunt person) {\n\t\t\n\t}", "@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }", "public Object accept(uk.ac.soton.ecs.grimoires.server.impl.uddiv2.handlers.UDDIv2DataModelVisitor v) throws Exception { return v.process(this); }", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "public void visit(Attraction attraction, Visitor visitor){\n if( ((ISecurity)attraction).isAllowedToRide(visitor) ){\n attraction.addVisitor(visitor);\n }\n\n }", "@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t}", "public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "public interface Acceptor {\n\n /**\n * Accepts a visitor for further processing.\n *\n * @param visitor the visitor class to accept.\n */\n void accept(Visitor visitor);\n}", "public abstract void accept(Visitor visitor);", "public abstract void accept(GameObjectVisitor v);", "@Override\n public void visit(final OpGraph opGraph) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpGraph\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, opGraph.getNode());\n opGraph.getSubOp().visit(rewriter);\n addOp(new OpGraph(opGraph.getNode(), rewriter.getResult()));\n }", "void accept(Visitor visitor);", "public void accept(IVisitor visitor);", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "public void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }", "@Override\n\tpublic void visit(EquipmentAttack e) {\n\t}", "@Override\r\n\tpublic void Visit(BlackShot shot) {\n\r\n\t}", "@Override\n\tpublic void visit(final GrandMa person) {\n\t\t\n\t}", "public void accept(Visitor visitor);", "public Object accept(Visitor v, Object params);", "void accept(Visitor<V> visitor);", "public abstract void visit(V v) throws VisitorException;", "public void accept(Visitor v, Context c) {\n\t\tv.visit(this, c);\n\t}", "@Override\r\n\tpublic void visit(Personality personality)\r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}", "@Override\n\tpublic void visit(final Uncle person) {\n\t\t\n\t}", "void visit(AuthToken authToken);", "public interface Acceptor<V>\n{\n /**\n * Accepts a visitor and applies it to this.\n *\n * @param visitor The visitor to apply to this.\n */\n void accept(Visitor<V> visitor);\n}", "@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "void visit(Liquor liquor);", "public void visit(Personnes p) {\n pers = p;\n tpsAttentePerso = p.getTpsAttente();\n tpsAttentePerso2 = p.getTpsArrive();\n totalTime += tpsAttentePerso;\n\tnbVisited += 1;\n moyenne = totalTime/nbVisited; \n }", "public void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public Visitor() {}", "public Visitante() {\r\n }", "public interface Visitor {\n\t/* METHODS */\n\t/**\n\t * Visits a Liquor.\n\t * @param liquor The Liquor to visit.\n\t */\n\tvoid visit(Liquor liquor);\n\t\n\t/**\n\t * Visits a Tobacco.\n\t * @param tobacco The Tobacco to visit.\n\t */\n\tvoid visit(Tobacco tobacco);\n\t\n\t/**\n\t * Visits a Necessity.\n\t * @param necessity The Necessity to visit.\n\t */\n\tvoid visit(Necessity necessity);\n}", "public void visit(Choke c);", "public Object accept (Visitor v) {\n return v.visit(this);\n }", "public void activarAceptar() {\n aceptar = false;\n }", "private void Visitar(Vertice v, int p) {\n\t\t\n\t\tv.setVisited(true);\n\t\tv.setPredecessor(p);\n\t\t\n\t\tLinkedList<ListaAdjacencia> L = v.getAdjList();\n\t\t\n\t\tfor (ListaAdjacencia node : L) {\n\t\t\tint n = node.getverticeNumero();\n\t\t\tif (!vertices[n].getVisited()) {\n\t\t\t\tVisitar(vertices[n], v.getIndex());\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "@Override\r\n\tpublic Visit save(Visit object) {\n\t\treturn super.save(object);\r\n\t}", "@Override\n public void visit(final Rogue rogue) {\n rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n // anunt magicianul de ajutorul ingerului\n rogue.getEvent().anEventHappened(rogue, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n rogue.gainXp(getNewXp(rogue));\n }", "public abstract <E, F, D, I> E accept(ReturnVisitor<E, F, D, I> visitor);", "protected void postVisit(Graph<VLabel, ELabel>.Vertex v) {\n }", "@Override\r\n\tpublic void unvisit() {\n\r\n\t}", "public Object accept(FilterVisitor visitor, Object extraData) {\n \treturn visitor.visit(this,extraData);\n }", "@Override\r\n\tpublic void Visit(RedShot shot) {\n\r\n\t}", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "public void onePointVisitor(View view) {\r\n visitorScore += 1;\r\n displayVisitorScore(visitorScore);\r\n }", "@Override\n public void acceptEffect(EffectVisitor visitor){\n visitor.visitedPokemonPark(this);\n }", "void visit(Element node);", "public void visitGOTO(GOTO o){\n\t\t// nothing to do here.\n\t}", "void accept(TmxElementVisitor visitor);", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "public void aceptarPresupuesto(Long idPresupuesto) {\n\n Presupuesto presupuesto = buscarPresupuesto(idPresupuesto);\n\n EstadoPresupuesto estadoAceptado = estadoPresupuestoRepository\n .findByNombreEstado(globales.NOMBRE_ESTADO_PRESUPUESTO_ACEPTADO);\n if (presupuesto.getEstadoPresupuesto().equals(estadoAceptado)) {\n\n // este presupuesto ya fue aceptado\n // avisar por pantalla la fecha de aceptacion\n LocalDate fechaAceptado = presupuesto.getFechaAceptado();\n\n } else {\n // cambio el estado del presupuesto a aceptado y tambien del pedido de repuesto\n EstadoPresupuesto estadoCreado = estadoPresupuestoRepository\n .findByNombreEstado(globales.NOMBRE_ESTADO_PRESUPUESTO_CREADO);\n if (presupuesto.getEstadoPresupuesto().equals(estadoCreado)) {\n\n presupuesto.setEstadoPresupuesto(estadoAceptado);\n presupuesto.setFechaAceptado(LocalDate.now());\n\n EstadoPedidoRepuesto estadoPendienteDePedido = estadoPedidoRepuestoRepository\n .findByNombreEstado(globales.NOMBRE_ESTADO_PEDIDO_REPUESTO_PENDIENTE_DE_PEDIDO);\n\n PedidoRepuesto pedido = pedidoRepuestoRepository.findByPresupuesto(presupuesto);\n\n pedido.setEstadoPedidoRepuesto(estadoPendienteDePedido);\n\n // GUARDAR\n pedidoRepuestoRepository.save(pedido);\n }\n }\n }", "Object visitorResponse();", "public Visit() {\n\t\t//dateTime = LocalDateTime.now();\n\t}", "@Override\n public void visit(final OpDiff opDiff) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpDiff\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n addOp(OpDiff.create(rewriteOp2(opDiff, rewriter), rewriter.getResult()));\n }", "@Override\n\tpublic <T> T accept(ASTVisitor<T> v) {\n\t\treturn v.visit(this);\n\t}", "@Override\r\n\tpublic void Visit(BlueShot shot) {\n\r\n\t}", "public DispatchVisitor(BaseVisitor nextVisitor) {\n\t\tsuper(nextVisitor);\n\t}", "public void visit()\n\t{\n\t\t// Visit data element.\n\t\tcargo.visit();\n\t}", "@Override\n\tpublic void visit(final GrandPa person) {\n\t\t\n\t}", "private Object magicVisit(ParseTree ctx, Node<TokenAttributes> CST_node) {\n current_node = CST_node;\n Object result = visit(ctx);\n current_node = CST_node;\n return result;\n }", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "protected void preVisit(Graph<VLabel, ELabel>.Edge e,\n Graph<VLabel, ELabel>.Vertex v0) {\n }", "@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}", "@Override\n public void visit(final Knight knight) {\n knight.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_KNIGHT);\n knight.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_KNIGHT);\n // anunt magicianul de ajutorul ingerului\n knight.getEvent().anEventHappened(knight, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n knight.gainXp(getNewXp(knight));\n }", "public void setVisitorName(String visitorName) {\n this.visitorName = visitorName;\n }", "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "public void acceptVisit(BCVisitor visit) {\n visit.enterBCMethod(this);\n visitAttributes(visit);\n visit.exitBCMethod(this);\n }", "@Override\n public void visit(final OpFilter opFilter) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpFilter\");\n }\n addOp(OpFilter.filterBy(opFilter.getExprs(), rewriteOp1(opFilter)));\n }", "@Override\r\n\tpublic List<Visit> getVisits(Visit visita) {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"select v from Visit v where 1=1 \";\r\n\r\n\t\t\tMap<String,Object> mParams = new HashMap<String, Object>();\r\n\t\t\tif ( visita.getFechaDesde()!=null ) {\r\n\t\t\t\tsql += \" and v.fecha >= :fechaDesde \";\r\n\t\t\t\tmParams.put(\"fechaDesde\", visita.getFechaDesde());\r\n\t\t\t}\r\n\t\t\tif ( visita.getFechaHasta()!=null ) {\r\n\t\t\t\tsql += \" and v.fecha <= :fechaHasta \";\r\n\t\t\t\tmParams.put(\"fechaHasta\", visita.getFechaHasta());\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tQuery query = em.createQuery(sql);\r\n\t\t\tfor (String param : mParams.keySet() ) {\r\n\t\t\t\tquery.setParameter(param, mParams.get(param));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tList<Visit> visitas = (List<Visit>) query.getResultList();\r\n\t\t\t\r\n\r\n\t\t\treturn visitas;\r\n\t\t} catch (NoResultException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public boolean isVisitado() {\n return this.isVisited;\n }", "public interface EntityVisitor<T> {\n T visit(DefinedVariable definedVariable);\n\n T visit(UndefinedVariable undefinedVariable);\n\n T visit(DefinedFunction definedFunction);\n\n T visit(UndefinedFunction undefinedFunction);\n\n T visit(Constant constant);\n}", "interface CarElement {\n // the element being visited accepts the visitor\n void accept(final CarElementVisitor visitor);\n}" ]
[ "0.6306256", "0.6019138", "0.5988699", "0.5964923", "0.5947523", "0.5911801", "0.589122", "0.58837116", "0.5878998", "0.58603406", "0.5830788", "0.5807484", "0.57918143", "0.5769912", "0.57560366", "0.5746119", "0.5729455", "0.57085097", "0.5631958", "0.56286705", "0.5620881", "0.560863", "0.55898345", "0.5575913", "0.55739033", "0.55612504", "0.55414325", "0.55393445", "0.55393445", "0.5523157", "0.55067396", "0.54860574", "0.5484728", "0.5470823", "0.5457372", "0.54516435", "0.5426825", "0.5422978", "0.54184186", "0.54057443", "0.5404004", "0.5396797", "0.5366597", "0.5360395", "0.53555334", "0.5348916", "0.5347325", "0.5337932", "0.5333232", "0.5332827", "0.5332715", "0.53195393", "0.5301767", "0.52952987", "0.52907145", "0.52880347", "0.5285426", "0.528185", "0.52786994", "0.5273163", "0.5232125", "0.5216857", "0.5213369", "0.52048314", "0.5196445", "0.5188465", "0.5177268", "0.5169876", "0.5161239", "0.51472163", "0.5143667", "0.5143667", "0.5138614", "0.5136817", "0.51170033", "0.50985396", "0.5081755", "0.5066505", "0.5062731", "0.50572324", "0.5044203", "0.50346845", "0.5032109", "0.5013186", "0.50100553", "0.5003654", "0.50017565", "0.49976373", "0.4997617", "0.49941263", "0.49761796", "0.49702537", "0.49677733", "0.49513102", "0.49503165", "0.49502468", "0.4938498", "0.49383298", "0.49323738", "0.4919125" ]
0.56193084
21
Constructs a new plugin setting.
public Condition(@NonNull final Context context, @NonNull final Plugin plugin) { assertNotNull(context, "context"); //$NON-NLS-1$ assertNotNull(plugin, "plugin"); //$NON-NLS-1$ if (PluginType.CONDITION != plugin.getType()) { throw new IllegalArgumentException("plugin.getType() must be CONDITION"); //$NON-NLS-1$ } mContext = ContextUtil.cleanContext(context); mPlugin = plugin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Setting() {\n\t}", "public Setting() {\n }", "public Settings(){}", "private Settings() { }", "private Settings() {}", "SettingType createSettingType();", "public JpSetting() {\n initComponents();\n fillThongtin();\n }", "private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }", "private Settings()\n {}", "public PushPluginConfigurationImpl() {\n }", "private PluginConfig(String configType) {\n\t\tthis.configType = configType;\n\t}", "private PluginConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_TYPE, type);\r\n param.setPropertyValue(PROPERTY_VALUE, value);\r\n\r\n return param;\r\n }", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "public Config() {\n this(System.getProperties());\n\n }", "Settings ()\n {\n }", "public DemoPluginFactory() {}", "private PropertySingleton(){}", "public KaranteeniPlugin(boolean usesTranslator) {\r\n\t\tsuper();\r\n\t\tthis.usesTranslation = usesTranslator;\r\n\t\r\n\t\tYamlConfig configPreloaded = new YamlConfig(this, \"config.yml\");\r\n\t\tif(usesTranslation) {\r\n\t\t\tif(!configPreloaded.getConfig().isSet(\"custom-translation-path\")) {\r\n\t\t\t\tconfigPreloaded.getConfig().set(\"custom-translation-path\", \"Translations\");\r\n\t\t\t\tconfigPreloaded.save();\r\n\t\t\t}\r\n\t\t\tthis.translationPath = configPreloaded.getConfig().getString(\"custom-translation-path\");\r\n\t\t} else {\r\n\t\t\tthis.translationPath = null;\r\n\t\t}\r\n\t\t\r\n\t\tif(!configPreloaded.getConfig().isSet(\"custom-settings-path\")) {\r\n\t\t\tconfigPreloaded.getConfig().set(\"custom-settings-path\", \".\");\r\n\t\t\tconfigPreloaded.save();\r\n\t\t}\r\n\t\tthis.settingsPath = configPreloaded.getConfig().getString(\"custom-settings-path\");\r\n\t\t\r\n\t\tsettings = new YamlConfig(this, this.settingsPath, \"Settings.yml\");\r\n\t\t\r\n\t\t//Keep up the plugins\r\n\t\tkPluginInstances.put(this.getName(), this);\r\n\t\tBukkit.getLogger().log(Level.INFO, \"Plugin registered to KaranteeniCore: \" + this.getName());\r\n\t}", "public PowerContactSettings () {\n }", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "public BehaviorPlugin(ParameterWrapper param) \n\t{\t\n\t\tthis.param = param;\n\t\trand = new Random();\n\t\tparam.color = new Color(rand.nextInt(255), rand.nextInt(255), rand.nextInt(255));\n\t\tif(param.speed <= 0.0)\n\t\t\tparam.speed = param.minSpeed;\n\t\n\t}", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public SettingsPreferenceStore(Settings base, String pluginId){\n\t\tthis.base = base;\n\t\tdefaultContext = new DefaultScope();\n\t\tdefaultContext.getNode(pluginId);\n\t}", "Property createProperty();", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public MakePlugin() {\n super(\n new ExerciseBuilder(),\n new StudentFileAwareSubmissionProcessor(),\n new StudentFileAwareZipper(),\n new StudentFileAwareUnzipper());\n this.makeUtils = new MakeUtils();\n }", "public WorkspaceSettings() {\n super();\n }", "private ReportPluginConstant() {\n\t\t// NO_PMD DUMMY CONSTRUCTOR\n\t}", "public AbstractPlugin() { }", "public MicrosoftGraphGroupSetting() {\n }", "public CatalogSettings() {\n init();\n }", "interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }", "int wkhtmltoimage_set_global_setting(PointerByReference settings, String name, String value);", "@PublicApi\npublic interface Setting<T>\n{\n /**\n * The full (unique) name, identifying a specific setting.\n *\n * @return the name.\n */\n String name();\n\n /**\n * The default value of this setting\n *\n * @return the typed default value.\n */\n T defaultValue();\n\n /**\n * A dynamic setting have its value changed in a config at any time\n *\n * @return true if the setting is dynamic, false otherwise\n */\n boolean dynamic();\n\n /**\n * An internal setting should not be accessed nor altered by any user\n * Internal settings may be changed or removed between versions without notice\n *\n * @return true if the setting is internal, false otherwise\n */\n boolean internal();\n\n /**\n * A textual representation describing the usage if this setting\n *\n * @return the description of this setting\n */\n String description();\n}", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private PropertySetFactory() {}", "protected PropertyPreference(ExternalKey stakeholderKey, ExternalKey propertyKey,\n String namespace) {\n super(stakeholderKey, namespace);\n setPropertyKey(propertyKey);\n }", "int wkhtmltoimage_set_global_setting(PointerByReference settings, Pointer name, Pointer value);", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "public Config(HG plugin)\r\n/* 38: */ {\r\n/* 39:46 */ if (!new File(plugin.getDataFolder(), \"config.yml\").exists())\r\n/* 40: */ {\r\n/* 41:47 */ Util.log(\"Config not found. Generating default config!\");\r\n/* 42:48 */ plugin.saveDefaultConfig();\r\n/* 43: */ }\r\n/* 44:51 */ config = plugin.getConfig().getRoot();\r\n/* 45:52 */ config.options().copyDefaults(true);\r\n/* 46:53 */ plugin.reloadConfig();\r\n/* 47:54 */ config = plugin.getConfig();\r\n/* 48: */ \r\n/* 49:56 */ spawnmobs = config.getBoolean(\"settings.spawn-mobs\");\r\n/* 50:57 */ spawnmobsinterval = config.getInt(\"settings.spawn-mobs-interval\") * 20;\r\n/* 51:58 */ freeroam = config.getInt(\"settings.free-roam\");\r\n/* 52:59 */ trackingstickuses = config.getInt(\"settings.trackingstick-uses\");\r\n/* 53:60 */ playersfortrackingstick = config.getInt(\"settings.players-for-trackingstick\");\r\n/* 54:61 */ maxchestcontent = config.getInt(\"settings.max-chestcontent\");\r\n/* 55:62 */ teleAtEnd = config.getBoolean(\"settings.teleport-at-end\");\r\n/* 56:63 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 57:64 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 58:65 */ cash = config.getInt(\"reward.cash\");\r\n/* 59:66 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 60:67 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 61:68 */ cash = config.getInt(\"reward.cash\");\r\n/* 62:69 */ breakblocks = config.getBoolean(\"rollback.allow-block-break\");\r\n/* 63:70 */ blocks = config.getIntegerList(\"rollback.editable-blocks\");\r\n/* 64:71 */ randomChest = config.getBoolean(\"random-chest.enabled\");\r\n/* 65:72 */ randomChestInterval = config.getInt(\"random-chest.interval\") * 20;\r\n/* 66:73 */ randomChestMaxContent = config.getInt(\"random-chest.max-chestcontent\");\r\n/* 67:75 */ if (giveReward) {\r\n/* 68: */ try\r\n/* 69: */ {\r\n/* 70:77 */ Vault.setupEconomy();\r\n/* 71: */ }\r\n/* 72: */ catch (NoClassDefFoundError e)\r\n/* 73: */ {\r\n/* 74:79 */ Util.log(\"Unable to setup vault! Rewards will not be given out..\");\r\n/* 75:80 */ giveReward = false;\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:84 */ ItemStack i = new ItemStack(Material.FIREWORK, 64);\r\n/* 79:85 */ FireworkMeta fm = (FireworkMeta)i.getItemMeta();\r\n/* 80:86 */ List<Color> c = new ArrayList();\r\n/* 81:87 */ c.add(Color.ORANGE);\r\n/* 82:88 */ c.add(Color.RED);\r\n/* 83:89 */ FireworkEffect e = FireworkEffect.builder().flicker(true).withColor(c).withFade(c).with(FireworkEffect.Type.BALL_LARGE).trail(true).build();\r\n/* 84:90 */ fm.addEffect(e);\r\n/* 85:91 */ fm.setPower(3);\r\n/* 86:92 */ i.setItemMeta(fm);\r\n/* 87: */ \r\n/* 88:94 */ firework = i;\r\n/* 89: */ }", "public SARLEclipsePlugin() {\n\t\tsetDefault(this);\n\t}", "public BillingSettingRecord() {\n super(BillingSetting.BILLING_SETTING);\n }", "private BluetoothSettings() {\n }", "private LanguagesettingsPackage() {}", "public SettingsPreferenceStore(Settings base){\n\t\tthis.base = base;\n\t}", "public PanoramaConfig() {\n }", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public ConfigurationHandler(JavaPlugin plugin){\n this.PLUGIN = plugin;\n if(!this.PLUGIN.getDataFolder().exists()){\n this.PLUGIN.getDataFolder().mkdir();\n }\n }", "@Override\n\tpublic UserPreferences newInstance() {\n\t\treturn new UserPreferences();\n\t}", "public MicroConfiguration() {\n this(\n System.getProperty(\"piranha.version\", MicroConfiguration.class.getPackage().getImplementationVersion()),\n System.getProperty(\"piranha.extensions\", \"micro-core,micro\"),\n System.getProperty(\"piranha.dependencies\", \"\"),\n System.getProperty(\"piranha.repositories\", \"https://repo1.maven.org/maven2\"),\n Boolean.valueOf(System.getProperty(\"piranha.offline\", \"false\")),\n Integer.valueOf(System.getProperty(\"piranha.port\", \"8080\")),\n System.getProperty(\"piranha.root\"),\n System.getProperty(\"piranha.http.server\", \"impl\"),\n\n\n null,\n null,\n null);\n }", "private PreferencesModule() {\n }", "public MyPreference(Context context, AttributeSet attrs) {\r\n super(context, attrs);\r\n this.context = context;\r\n// setWidgetLayoutResource(R.layout.preference_widget_mypreference);\r\n }", "public GetSettings() {\r\n }", "private SystemPropertiesRemoteSettings() {}", "public abstract CONFIG build();", "public SharedPref() {\n super();\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "public GroupChatPreferencePanel() {\n // Build the UI\n createUI();\n }", "protected Config(AFK plugin) {\n this.cfg = plugin.getConfig();\n cfg.options().copyDefaults(true);\n plugin.saveConfig();\n }", "public PM(BattleKits instance) {\n\t\tplugin = instance;\n\t}", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public AS2EnvelopeSettings() {\n }", "public SelectorConfig(Plugin plugin, String name) {\n if (!SelectorManager.getINSTANCE().getSelectorDirectory().exists()) {\n if (!SelectorManager.getINSTANCE().getSelectorDirectory().mkdir()) {\n plugin.getLogger().log(Level.SEVERE, \"Could not create \" + SelectorManager.getINSTANCE().getSelectorDirectory().getPath());\n return;\n }\n }\n\n config = new File(SelectorManager.getINSTANCE().getSelectorDirectory(), name + \".yml\");\n if (!config.exists()) {\n firstTime = true;\n plugin.getLogger().log(Level.INFO, \"Creating \" + config.getPath());\n try {\n if (!config.createNewFile()) {\n plugin.getLogger().log(Level.SEVERE, \"Could not create \" + config.getPath());\n return;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n yml = YamlConfiguration.loadConfiguration(config);\n yml.options().copyDefaults(true);\n\n yml.options().header(\"Plugin by andrei1058.\\n\" +\n \"Replacements example:\\n\" +\n \"'x':\\n\" +\n \" type: ARENA (arena type keeps item-stack configuration in the arena file.\\n\" +\n \" filter-template: none or templateName,skeld,etc\\n\" +\n \" filter-status: loading,separated,by,comma (available: loading,waiting,starting,in_game,ending,none)\\n\" +\n \"'*':\\n\" +\n \" type: NONE or AIR for air.\\n\" +\n \"'=':\\n\" +\n \" type: COMMAND or CMD for items that execute commands when clicked.\\n\" +\n \" commands: \\n\" +\n \" as-player: myStoreLink'\\n' bw open someOtherGUI, etc\\n\" +\n \" as-console: openDonations {player}\\n\" +\n \" item:\\n\" +\n \" material: DIAMOND\\n\" +\n \" data:0 (yes, data. I'm supporting 1.12.)\\n\" +\n \" enchanted: false\\n\" +\n \" amount: 1\");\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_PATTERN_PATH, Arrays.asList(\"#########\", \"#***#####\", \"#####===#\", \"##-z#####\", \"#########\"));\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"type\", \"ARENA\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-template\", \"skeld\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-status\", \"starting,waiting\");\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".=.\" + \"type\", \"ARENA\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".=.\" + \"filter-template\", \"polus\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".=.\" + \"filter-status\", \"none\");\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"type\", \"CMD\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"commands.as-player\", \"ss join\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"commands.as-console\", \"\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.material\", \"EMERALD\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.data\", 0);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.enchanted\", true);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.amount\", 1);\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"type\", \"CMD\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"commands.as-player\", \"ss selector spectate\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"commands.as-console\", \"\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.material\", \"ELYTRA\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.data\", 0);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.enchanted\", true);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.amount\", 1);\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"type\", \"ITEM\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.material\", CommonManager.SERVER_VERSION < 13 ? \"STAINED_GLASS_PANE\" : \"GRAY_STAINED_GLASS_PANE\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.data\", 7);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.enchanted\", false);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.amount\", 1);\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_PATTERN_PATH, Arrays.asList(\"#########\", \"#*******#\", \"#*******#\", \"#*******#\", \"4########\"));\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"type\", \"ARENA\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-template\", \"none\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-status\", \"started\");\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"type\", \"ITEM\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.material\", CommonManager.SERVER_VERSION < 13 ? \"STAINED_GLASS_PANE\" : \"GRAY_STAINED_GLASS_PANE\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.data\", 7);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.enchanted\", false);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.amount\", 1);\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"type\", \"CMD\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"commands.as-player\", \"ss selector\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"commands.as-console\", \"\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.material\", \"CHEST\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.data\", 0);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.enchanted\", true);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.amount\", 1);\n save();\n }", "void configure (Settings settings);", "static Plugin newInstance(String simpleClassName) throws Exception {\n final String className = Plugin.class.getPackageName() + \".\" + simpleClassName;\n return (Plugin) Class.forName(className).getDeclaredConstructor().newInstance();\n }", "private OptimoveConfig() {\n }", "public AutoEvaluationSettingsImpl() {}", "public GallerySwitchPreference(Context context) {\n this(context, null);\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public SwitchYardSettingsPropertyPage() {\n super();\n noDefaultAndApplyButton();\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "private ConfigProperties() {\n\n }", "public Preferences(BlueJ bluej) {\r\n this.bluej = bluej;\r\n myPanel = new JPanel();\r\n myPanel.add(new JLabel(\"Favorite Colour\"));\r\n color = new JTextField(40);\r\n myPanel.add(color);\r\n // Load the default value\r\n loadValues();\r\n }", "protected ViewActionPluginJPFImpl createInstance(IExtension extension) {\n return new ViewActionPluginJPFImpl(editorKit, view, extension);\n }", "private PrefUtils() {\n }", "public static SPSConfig createSPSConfig() {\n return new SPSConfig();\n }", "public Options() {\n init();\n }", "PickNumber (Short setting, String name, String type){\r\n \t\t\tthis.setting = setting;\r\n \t\t\t//size = setting.SIZE;\r\n \t\t\tthis.name = name;\r\n \t\t\tthis.type = type;}", "private GameConfig() {}", "public BwaOptions() {\n\t}", "private ConfigurationObject createObject(String name, String type) throws Exception {\r\n ConfigurationObject object = new DefaultConfigurationObject(name);\r\n object.setPropertyValue(PROPERTY_TYPE, type);\r\n\r\n return object;\r\n }", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "public PrivacySettingsWeb() {\n\t}", "public JCProjectProperties() {\n this(null);\n }", "public ShopSign(Tribu plugin) {\r\n\t\tsuper(plugin);\r\n\t}", "private Config() {\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }", "private SettingsGroupManager() {}", "public NodeSetting[] createSettings() { return new NodeSetting[] { new NodeSetting(\"radius\", \"focus.common.radius\", new NodeSetting.NodeSettingIntRange(1, 3)), new NodeSetting(\"duration\", \"focus.common.duration\", new NodeSetting.NodeSettingIntRange(5, 30)) }; }", "private void initUserSetting() {\n\n List<String> instantly = new ArrayList<String>();\n instantly.add(PostActivityPlugin.ID);\n instantly.add(ActivityCommentPlugin.ID);\n instantly.add(ActivityMentionPlugin.ID);\n instantly.add(LikePlugin.ID);\n instantly.add(RequestJoinSpacePlugin.ID);\n instantly.add(SpaceInvitationPlugin.ID);\n instantly.add(RelationshipReceivedRequestPlugin.ID);\n instantly.add(PostActivitySpaceStreamPlugin.ID);\n \n List<String> daily = new ArrayList<String>();\n daily.add(PostActivityPlugin.ID);\n daily.add(ActivityCommentPlugin.ID);\n daily.add(ActivityMentionPlugin.ID);\n daily.add(LikePlugin.ID);\n daily.add(RequestJoinSpacePlugin.ID);\n daily.add(SpaceInvitationPlugin.ID);\n daily.add(RelationshipReceivedRequestPlugin.ID);\n daily.add(PostActivitySpaceStreamPlugin.ID);\n daily.add(NewUserPlugin.ID);\n \n List<String> weekly = new ArrayList<String>();\n weekly.add(PostActivityPlugin.ID);\n weekly.add(ActivityCommentPlugin.ID);\n weekly.add(ActivityMentionPlugin.ID);\n weekly.add(LikePlugin.ID);\n weekly.add(RequestJoinSpacePlugin.ID);\n weekly.add(SpaceInvitationPlugin.ID);\n weekly.add(RelationshipReceivedRequestPlugin.ID);\n weekly.add(PostActivitySpaceStreamPlugin.ID);\n \n List<String> webNotifs = new ArrayList<String>();\n webNotifs.add(NewUserPlugin.ID);\n webNotifs.add(PostActivityPlugin.ID);\n webNotifs.add(ActivityCommentPlugin.ID);\n webNotifs.add(ActivityMentionPlugin.ID);\n webNotifs.add(LikePlugin.ID);\n webNotifs.add(RequestJoinSpacePlugin.ID);\n webNotifs.add(SpaceInvitationPlugin.ID);\n webNotifs.add(RelationshipReceivedRequestPlugin.ID);\n webNotifs.add(PostActivitySpaceStreamPlugin.ID);\n \n // root\n saveSetting(instantly, daily, weekly, webNotifs, rootIdentity.getRemoteId());\n\n // mary\n saveSetting(instantly, daily, weekly, webNotifs, maryIdentity.getRemoteId());\n\n // john\n saveSetting(instantly, daily, weekly, webNotifs, johnIdentity.getRemoteId());\n\n // demo\n saveSetting(instantly, daily, weekly, webNotifs, demoIdentity.getRemoteId());\n }", "static JarCollectorConfigImpl createJarCollectorConfig(Map<String, Object> settings) {\n if (settings == null) {\n settings = Collections.emptyMap();\n }\n return new JarCollectorConfigImpl(settings);\n }", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "protected IotdmSimpleConfigBuilder(PluginSimpleConfig config) {\n this.builder = new PluginSimpleConfigBuilder();\n List<KeyValList> copy = new LinkedList<>();\n for (KeyValList kv : config.getKeyValList()) {\n KeyValListBuilder builder = new KeyValListBuilder();\n builder.setCfgKey(kv.getCfgKey());\n builder.setCfgVal(kv.getCfgVal());\n copy.add(builder.build());\n }\n\n this.builder.setKeyValList(copy);\n }", "<S> void putSetting(Setting<S> setting, S value, String... comments);", "interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }", "public StringSetField build() {\n Objects.requireNonNull(value, StringSetField.class + \": value is missing\");\n return new StringSetFieldImpl(value);\n }", "protected void pluginInitialize() {}", "public static vue_Options instance() {\n\t\tif (!estInstancie){// Pour n'avoir qu'une seule fenÍtre ouverte ŗ la fois\n\t\t\testInstancie = true;\n\t\t\treturn new vue_Options() ; \n\t\t}\n\t\telse{\n\t\t\treturn null ;\n\t\t}\n\t\t\t\n\t}" ]
[ "0.64476514", "0.6293886", "0.61312085", "0.6097146", "0.60884744", "0.60555714", "0.5991532", "0.5918954", "0.57738215", "0.5720866", "0.57045674", "0.56296474", "0.55971295", "0.5574615", "0.55732673", "0.5513087", "0.551258", "0.5504983", "0.5421389", "0.5401405", "0.5382881", "0.5379169", "0.5372859", "0.5371507", "0.536408", "0.5363476", "0.53545374", "0.5351534", "0.5309612", "0.5309587", "0.52898455", "0.5274957", "0.5263594", "0.5260283", "0.5259212", "0.5231841", "0.5218623", "0.5207329", "0.5207286", "0.5203271", "0.5203271", "0.51949537", "0.5191438", "0.51872295", "0.5175936", "0.5175382", "0.51750827", "0.5171566", "0.5158421", "0.5158102", "0.51494116", "0.5144154", "0.51388365", "0.5132776", "0.5121864", "0.5097194", "0.508977", "0.50856006", "0.5079825", "0.5077315", "0.50729495", "0.5068166", "0.5065782", "0.50483656", "0.5046799", "0.50416285", "0.5038756", "0.50270283", "0.5018743", "0.50057834", "0.50035095", "0.4983327", "0.49674934", "0.49589616", "0.4956198", "0.4945727", "0.49334973", "0.4905171", "0.48969573", "0.4896132", "0.48958603", "0.48953712", "0.48943844", "0.48872575", "0.48866004", "0.488539", "0.48827183", "0.48805517", "0.4876944", "0.48713577", "0.48668036", "0.48654363", "0.4859733", "0.48562747", "0.4856081", "0.4853212", "0.48426864", "0.4841927", "0.48346093", "0.4832462", "0.48322183" ]
0.0
-1
Creates new form QWBPChart
public QWBPChart(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}", "public ChartPanel createChartPanel(QueryResult myResult) throws Exception {\n\n myChart = makeChart(myResult);\n\n // create the chart frame and display it \n ChartPanel myChartPanel = new ChartPanel(myChart);\n\n return myChartPanel;\n }", "private void constructChartPanel() {\n chartPanel = new JPanel();\n chartPanel.setBorder(BorderFactory.createTitledBorder(\"Price Chart\"));\n chartPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n displayChartButton = new JButton(\"Click to Display Price Chart\");\n displayChartButton.setEnabled(false);\n displayChartButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JPanel cPanel = chart.getChartPanel();\n chartPanel.removeAll();\n chartPanel.add(cPanel);\n cPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n pack();\n repaint();\n }\n });\n \n chartPanel.add(displayChartButton);\n }", "@Override\n\tprotected final JFreeChart createChart() {\n\t\tJFreeChart jFreeChart=null;\n\t\tIntervalXYDataset dataset=createDataset();\n\t\t\n\t\tjFreeChart=ChartFactory.createXYBarChart(title,xalabel, dateAxis, yalabel,dataset, por, legend, tooltips, urls);\n\t\t\n\t\tXYPlot plot=(XYPlot)jFreeChart.getPlot();\n\t\tpreRender(plot);\n\t\treturn jFreeChart; \n\t}", "private void createChart() {\n // Preparing...\n String selectedDate = periodComboBox.getSelectedItem().toString();\n String selectedPeriod = periodComboBox.getSelectedItem().toString();\n String periodType = periodTypeComboBox.getSelectedItem().toString();\n periodList = new ArrayList<>();\n PieChart chart;\n\n switch (periodType) {\n case \"Monthly\":\n // Configuring panel\n chartPanel.removeAll();\n chartPanel.revalidate();\n\n // Gathering data\n periodList = new ArrayList<>();\n monthlyTotals.stream().filter((w) -> (w.getDate().equals(selectedDate))).forEach((w) -> {\n periodList.add(w);\n });\n\n // Creating chart\n if (pieChartRadioButton.isSelected()) {\n chart = new PieChart(selectedPeriod + \" Totals\", periodList);\n chartPanel.add(chart.getContentPane());\n chart.pack();\n } else if (barGraphRadioButton.isSelected()) {\n BarGraph bg = new BarGraph(\"\", selectedPeriod + \" Totals\", periodList);\n chartPanel.add(bg.getContentPane());\n bg.pack();\n }\n\n // Displaying\n chartPanel.repaint();\n break;\n case \"Yearly\":\n // Configuring panel\n chartPanel.removeAll();\n chartPanel.revalidate();\n\n // Gathering data\n periodList = new ArrayList<>();\n yearlyTotals.stream().filter((w) -> (w.getDate().equals(selectedDate))).forEach((w) -> {\n periodList.add(w);\n });\n\n // Creating chart\n if (pieChartRadioButton.isSelected()) {\n chart = new PieChart(selectedPeriod + \" Totals\", periodList);\n chartPanel.add(chart.getContentPane());\n chart.pack();\n } else if (barGraphRadioButton.isSelected()) {\n BarGraph bg = new BarGraph(\"\", selectedPeriod + \" Totals\", periodList);\n chartPanel.add(bg.getContentPane());\n bg.pack();\n }\n\n // Displaying\n chartPanel.repaint();\n break;\n case \"Historical\":\n // Configuring panel\n chartPanel.removeAll();\n chartPanel.revalidate();\n\n // Creating chart\n if (pieChartRadioButton.isSelected()) {\n chart = new PieChart(\"Historical Totals\", historicalTotals);\n chartPanel.add(chart.getContentPane());\n chart.pack();\n } else if (barGraphRadioButton.isSelected()) {\n BarGraph bg = new BarGraph(\"\", \"Historical Totals\", historicalTotals);\n chartPanel.add(bg.getContentPane());\n bg.pack();\n }\n\n // Displaying\n chartPanel.repaint();\n }\n }", "public ChartCustom(int type,Chathurangam mapp,WorkSheet ws)\n\t{\n\t\tsuper(\"Chart Options\");\n\t\tmap=mapp;\n\t\tsetIconImage(img);\n\t\tthis.type=type;\n\t\tthis.ws=ws;\n\t\ttitles=new String[3];\n\t\tString XAxisHelp=new String(map.getWordBundle().getString(\"XaxRange\"));\n\t\tString XAxisEg=new String(map.getWordBundle().getString(\"Example\")+\":- 1,1:2,2\");\n\t\tGridLayout gl,glMain;\n\t\tglMain=new GridLayout(2,1);\n\t\tif(type!=0)\n\t\t{\n\t\t\tgl=new GridLayout(4,2);\n\t\t\tgl.setVgap(5);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgl=new GridLayout(2,2);\n\t\t\tgl.setVgap(20);\n\t\t}\n\t\tjp.setLayout(gl);\n\t\tContainer contents=getContentPane();\n\t\tchartLabel=new JLabel(\" õ¬óðì î¬ôð¢¹\");\n\t\tchartLabel.setFont(curFont);\n\t\tchartLabel.setForeground(Color.black);\n\t\txLabel=new JLabel(\" 褬ì Üꢲ î¬ôð¢¹\");\n\t\txLabel.setFont(curFont);\n\t\txLabel.setForeground(Color.black);\n\t\tyLabel=new JLabel(\" àòó¢ Üꢲ î¬ôð¢¹\");\n\t\tyLabel.setFont(curFont);\n\t\tyLabel.setForeground(Color.black);\n\t\txValLabel=new JLabel(\" 褬ì Üꢲ âô¢¬ô\");\n\t\txValLabel.setFont(curFont);\n\t\txValLabel.setForeground(Color.black);\n\t\tchartTitle=new JTextField();\n\t\tchartTitle.setFont(curFont);\n\t\txTitle=new JTextField();\n\t\txTitle.setFont(curFont);\n\t\tyTitle=new JTextField();\n\t\tyTitle.setFont(curFont);\n\t\txValue=new JTextField();\n\t\txValue.setFont(curFont);\n\t\tjp.add(chartLabel);\n\t\tjp.add(chartTitle);\n\t\tif(type!=0)\n\t\t{\n\t\t\tjp.add(xLabel);\n\t\t\tjp.add(xTitle);\n\t\t\tjp.add(yLabel);\n\t\t\tjp.add(yTitle);\n\t\t}\n\t\t//jp.add(xValLabel);\n\t\t//jp.add(xValue);\n\t\tok=new JButton(map.getWordBundle().getString(\"ok\"));\n\t\tok.setFont(curFont);\n\t\tok.addActionListener(this);\n\t\tcancel=new JButton(map.getWordBundle().getString(\"cancel\"));\n\t\tcancel.setFont(curFont);\n\t\tcancel.addActionListener(this);\n\t\tjp1.add(ok);\n\t\tjp1.add(cancel);\n\t\tJLabel X1=new JLabel(XAxisHelp);\n\t\tX1.setForeground(Color.black);\n\t\tjp1.add(X1);\n\t\tJLabel X2=new JLabel(XAxisEg);\n\t\tX2.setForeground(Color.black);\n\t\tjp1.add(X2);\n\t\tcontents.setLayout(glMain);\n\t\tcontents.add(jp);\n\t\tcontents.add(jp1);\n\t\tif(type!=0)\n\t\t\tsetSize(650,250);\n\t\telse\n\t\t\tsetSize(650,200);\n\t\tsetVisible(true);\n\n\t\taddKeyListener(new KeyAdapter()\n\t\t\t\t{\n\t\t\t\t\tpublic void keyPressed(KeyEvent ke)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ke.getKeyCode() == 27)//Esc\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\n\t}", "public BarChart() {\n\n\t\t//set the initial size of the store for curve data\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tcvV.add(new CurveData());\n\t\t}\n\n\t\tbarChartPanel.add(GP, BorderLayout.CENTER);\n\n\t\tBorder etchedBorder = BorderFactory.createEtchedBorder();\n\t\tborder = BorderFactory.createTitledBorder(etchedBorder, \"Title\");\n\t\tborder.setTitleColor(Color.blue);\n\t\tbarChartPanel.setBorder(border);\n\n\t\tMarkerFormat = new MarkerFormat(barColumns);\n\n\t\tGP.setSmartGL(false);\n\t\tGP.setNumberFormatX(MarkerFormat);\n\n\t\tGP.addHorLimitsListener(\n\t\t\t\t\t\t\t\tnew ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tint nClmns = barColumns.size();\n\t\t\t\tint nMaxLines = 0;\n\t\t\t\tjava.util.Iterator<BarColumn> itr = barColumns.iterator();\n\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\tBarColumn bc = itr.next();\n\t\t\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\t\t\tnMaxLines = bc.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (nClmns > 0 && nMaxLines > 0) {\n\t\t\t\t\t//int iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\t\t\t\t//int iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t\t\t\tint iMin = GP.getScreenX(GP.getInnerMinX());\n\t\t\t\t\tint iMax = GP.getScreenX(GP.getInnerMaxX());\n\n\t\t\t\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t\t\t\tif (width < 1) {\n\t\t\t\t\t\twidth = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int i = 1, n = Math.min(nClmns * nMaxLines + 1, cvV.size()); i < n; i++) {\n\t\t\t\t\t\tCurveData cd = cvV.get(i);\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tRunnable runRefresh =\n\t\t\t\tnew Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tGP.refreshGraphJPanel();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread mThread = new Thread(runRefresh);\n\t\t\t\tmThread.start();\n\t\t\t}\n\t\t});\n\n\t\t//operations with clicked point object\n\t\tJLabel infoLabel = new JLabel(\" Clicked Point Info: \", JLabel.CENTER);\n\n\t\tFunctionGraphsJPanel.ClickedPoint cpObj = GP.getClickedPointObject();\n\t\tcpObj.xValueLabel = new JLabel(\"X-Marker=\", JLabel.RIGHT);\n\t\tcpObj.xValueFormat = MarkerFormat;\n\t\tcpObj.xValueText = new JTextField(10);\n\t\tcpObj.xValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.xValueText.setForeground(Color.blue);\n\n\t\tcpObj.yValueLabel = new JLabel(\" Value=\", JLabel.RIGHT);\n\t\tcpObj.yValueFormat = fortranFrmt;\n\t\tcpObj.yValueText = new JTextField(12);\n\t\tcpObj.yValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.yValueText.setForeground(Color.blue);\n\n\t\tJPanel infoPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 0));\n\t\tinfoPanel.add(infoLabel);\n\t\tinfoPanel.add(cpObj.xValueLabel);\n\t\tinfoPanel.add(cpObj.xValueText);\n\t\tinfoPanel.add(cpObj.yValueLabel);\n\t\tinfoPanel.add(cpObj.yValueText);\n\n\t\tbarChartPanel.add(infoPanel, BorderLayout.SOUTH);\n\t}", "private Chart(){}", "protected XSSFChart() {\n\t\tsuper();\n\t\tcreateChart();\n\t}", "public GUIVerbrauchsdiagramm(String title, EnergyData energyData) {\n super(title);\n this.energyData = energyData;\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n ChartPanel chartPanel = (ChartPanel) createPanel(energyData);\n\n buttonGroup.add(verbrauchDiagramm);\n buttonGroup.add(zaehlerDiagramm);\n pRadiobuttons.add(verbrauchDiagramm);\n pRadiobuttons.add(zaehlerDiagramm);\n pRadiobuttons.setBorder(new EmptyBorder(0, 20, 0, 0));\n verbrauchDiagramm.setSelected(true);\n tDate.setForeground(Color.gray);\n\n pSkipDay.setLayout(new GridLayout(1, 7, 5, 0));\n pSkipDay.add(bBackwardsM);\n pSkipDay.add(bBackwardsW);\n pSkipDay.add(bBackwards);\n pSkipDay.add(tDate);\n pSkipDay.add(bForwards);\n pSkipDay.add(bForwardsW);\n pSkipDay.add(bForwardsM);\n\n pDate.add(lCurrentDate);\n pDate.add(lEmpty2);\n pDate.add(pSkipDay);\n\n\n pCsv.add(bExportCSV);\n pCsv.add(lEmpty);\n pCsv.add(bExportJSON);\n\n\n pHeader.add(pRadiobuttons);\n pHeader.add(pDate);\n pHeader.add(pCsv);\n\n this.add(chartPanel, BorderLayout.CENTER);\n this.add(pHeader, BorderLayout.NORTH);\n\n //Actionlistener\n ActionListener actionListenerDiagramm = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (verbrauchDiagramm.isSelected()) {\n System.out.println(\"Verbrauchsdiagramm selected\");\n dataset.removeAllSeries();\n createDatasetVerbrauchsdiagramm(energyData);\n chart.setTitle(\"Stromzählerübersicht\");\n }\n if (zaehlerDiagramm.isSelected()) {\n System.out.println(\"Zählerdiagramm selected\");\n dataset.removeAllSeries();\n createDatasetZaehlerdiagramm(energyData);\n chart.setTitle(\"Zählerstand\");\n }\n }\n };\n\n bExportCSV.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n TreeMap<Long, csvData> map = FileHandler.getFileHandler().getCSVData();\n try {\n JFileChooser fileChooser = new JFileChooser(\"./CSV\");\n fileChooser.setDialogTitle(\"CSV-Datei speichern\");\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"*.csv\",\"csv\"));\n\n int userSelection = fileChooser.showSaveDialog(getFrame());\n\n if (userSelection == JFileChooser.APPROVE_OPTION) {\n File fileToSave = fileChooser.getSelectedFile();\n String path = fileToSave.getPath();\n if (!path.contains(\".csv\")){\n path = path +\".csv\";\n }\n FileHandler.writeCSV(map,path);\n System.out.println(\"Save as file: \" + fileToSave.getAbsolutePath());\n }\n\n\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n lEmpty.setText(\"Daten wurden in ein CSV-File exportiert\");\n }\n });\n\n bExportJSON.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n TreeMap<Long, csvData> map = FileHandler.getFileHandler().getCSVData();\n FileHandler.saveJSON(map);\n\n try {\n JFileChooser fileChooser = new JFileChooser(\"./JSON\");\n fileChooser.setDialogTitle(\"JSON-Datei speichern\");\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"*.json\",\"json\"));\n\n int userSelection = fileChooser.showSaveDialog(getFrame());\n\n if (userSelection == JFileChooser.APPROVE_OPTION) {\n File fileToSave = fileChooser.getSelectedFile();\n String path = fileToSave.getPath();\n if (!path.contains(\".json\")){\n path = path +\".json\";\n }\n FileWriter fileWriter = new FileWriter(path);\n fileWriter.write(FileHandler.saveJSON(map));\n fileWriter.flush();\n fileWriter.close();\n System.out.println(\"Save as file: \" + fileToSave.getAbsolutePath());\n }\n\n\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n lEmpty.setText(\"Daten wurden zum JSON exportiert \\n\" + \"https://api.npoint.io/0dc854da1619aca3be45\");\n }\n });\n\n bForwards.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n changeDate(86400000, true);\n }\n });\n\n bBackwards.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n changeDate(86400000, false);\n }\n });\n bBackwardsW.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n changeDate(604800000, false);\n }\n });\n bForwardsW.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n changeDate(604800000, true);\n }\n });\n bBackwardsM.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n changeDate(2629800000L, false);\n }\n });\n bForwardsM.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n changeDate(2629800000L, true);\n }\n });\n\n /*chart.getXYPlot().addChangeListener(new PlotChangeListener() {\n @Override\n public void plotChanged(PlotChangeEvent plotChangeEvent) {\n XYPlot plot = plotChangeEvent.getPlot().getChart().getXYPlot();\n PlotChangeListener plotChangeListener = this;\n\n plot.removeChangeListener(plotChangeListener);\n long upperBound = (long) plot.getDomainAxis().getUpperBound();\n long lowerBound = (long) plot.getDomainAxis().getLowerBound();\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(upperBound / 900000 * 900000);\n upperBound = calendar.getTimeInMillis();\n\n calendar.setTimeInMillis(lowerBound / 900000 * 900000);\n lowerBound = calendar.getTimeInMillis();\n System.out.println(new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\").format(new Date(lowerBound)));\n\n System.out.println(getEnergyData().getSdatData().containsKey(lowerBound));\n\n double highestValue = 0;\n if (getEnergyData().getSdatData().containsKey(lowerBound)) {\n for (long i = lowerBound; i < upperBound; i = i + 86400000) {\n if (getEnergyData().getSdatData().get(i).getRelativBezug() > highestValue) {\n highestValue = getEnergyData().getSdatData().get(i).getRelativBezug();\n\n }\n if (getEnergyData().getSdatData().get(i).getRelativeEinspeisung() > highestValue) {\n highestValue = getEnergyData().getSdatData().get(i).getZaehlerstandEinspeisung();\n }\n }\n\n System.out.println(highestValue);\n System.out.println(highestValue + 1);\n\n plot.getRangeAxis().setLowerBound(0);\n plot.getRangeAxis().setUpperBound(highestValue + 1);\n }else {\n plot.getRangeAxis().setLowerBound(0);\n plot.getRangeAxis().setUpperBound(plot.getRangeAxis().getUpperBound());\n }\n plot.addChangeListener(plotChangeListener);\n\n }\n\n });\n */\n\n tDate.addKeyListener(new KeyListener() {\n @Override\n public void keyTyped(KeyEvent e) {\n checkDate(e);\n }\n\n @Override\n public void keyPressed(KeyEvent e) {\n\n }\n\n @Override\n public void keyReleased(KeyEvent e) {\n\n }\n });\n\n tDate.addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent e) {\n if (tDate.getText().equals(\"Datum:\")) {\n tDate.setText(\"\");\n tDate.setForeground(Color.BLACK);\n }\n }\n\n @Override\n public void focusLost(FocusEvent e) {\n if (tDate.getText().isEmpty()) {\n tDate.setForeground(Color.GRAY);\n tDate.setText(\"Datum:\");\n }\n }\n });\n\n\n verbrauchDiagramm.addActionListener(actionListenerDiagramm);\n zaehlerDiagramm.addActionListener(actionListenerDiagramm);\n }", "public MoeHistoryChart(SimulationTab tab) {\n\t\tthis.tab = tab;\n\t\t\n\t\tchartPanel = new SNChartPanel();\n\t\tchartPanel.setPreferredSize(new Dimension(600,400));\n\t\tsetLeftComponent(chartPanel);\n\t\t\n\t\tJPanel controlPanel = new JPanel();\n\t\tcontrolPanel.setLayout(new GridBagLayout());\n\t\tcontrolPanel.setBorder(BorderFactory.createTitledBorder(\"Chart Options\"));\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.insets = new Insets(2,2,2,2);\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.weightx = 1;\n\t\tc.weighty = 0;\n\t\tc.gridwidth = 2;\n\t\tc.gridy = 0;\n\t\tc.anchor = GridBagConstraints.LINE_START;\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\tmoeCombo = new JComboBox();\n\t\tfor(MoeType t : MoeType.values()) {\n\t\t\tmoeCombo.addItem(t);\n\t\t}\n\t\tmoeCombo.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED) {\n\t\t\t\t\tupdateView();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(moeCombo, c);\n\t\tc.gridx--;\n\t\tc.gridy++;\n\t\tc.gridwidth = 1;\n\t\tc.weighty = 0;\n\t\tc.weightx = 0;\n\t\tc.gridx = 0;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tJLabel totalMetricLabel = new JLabel(\"Total: \");\n\t\tcontrolPanel.add(totalMetricLabel, c);\n\t\tc.gridy++;\n\t\tJLabel metricLabel = new JLabel(\"Filtered: \");\n\t\tcontrolPanel.add(metricLabel, c);\n\t\tc.gridx++;\n\t\tc.gridy--;\n\t\tc.weightx = 1;\n\t\tc.anchor = GridBagConstraints.LINE_START;\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\ttotalValueLabel = new JLabel(\"\");\n\t\tcontrolPanel.add(totalValueLabel, c);\n\t\tc.gridy++;\n\t\tvalueLabel = new JLabel(\"\");\n\t\tcontrolPanel.add(valueLabel, c);\n\t\tc.gridx--;\n\t\tc.gridy++;\n\t\tc.gridwidth = 2;\n\t\tc.weightx = 1;\n\t\tc.weighty = 1;\n\t\tlocationsModel = new CheckBoxTableModel<Location>();\n\t\tlocationsModel.addTableModelListener(new TableModelListener() {\n\t\t\tpublic void tableChanged(TableModelEvent e) {\n\t\t\t\tupdateChart();\n\t\t\t}\n\t\t});\n\t\tJTable locationsTable = new JTable(locationsModel);\n\t\tlocationsTable.getTableHeader().setReorderingAllowed(false);\n\t\tlocationsTable.getColumnModel().getColumn(0).setHeaderValue(\"\");\n\t\tlocationsTable.getColumnModel().getColumn(0).setMaxWidth(25);\n\t\tlocationsTable.getColumnModel().getColumn(1).setHeaderValue(\"Filter Locations\");\n\t\tlocationsTable.getColumnModel().getColumn(0).setHeaderRenderer(new VisibilityTableCellHeaderRenderer());\n\t\tlocationsTable.setShowGrid(false);\n\t\tJScrollPane locationsScroll = new JScrollPane(locationsTable);\n\t\tlocationsScroll.setPreferredSize(new Dimension(150,200));\n\t\tcontrolPanel.add(locationsScroll, c);\n\t\tc.gridy++;\n\t\tc.weighty = 0;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tJPanel buttonPanel = new JPanel();\n\t\tbuttonPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));\n\t\tJButton selectAllButton = new JButton(\"Select All\");\n\t\tselectAllButton.setToolTipText(\"Select All Locations\");\n\t\tselectAllButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlocationsModel.selectAll();\n\t\t\t}\n\t\t});\n\t\tbuttonPanel.add(selectAllButton);\n\t\tJButton deselectAllButton = new JButton(\"Deselect All\");\n\t\tdeselectAllButton.setToolTipText(\"Deselect All Locations\");\n\t\tdeselectAllButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlocationsModel.deselectAll();\n\t\t\t}\n\t\t});\n\t\tbuttonPanel.add(deselectAllButton);\n\t\tcontrolPanel.add(buttonPanel, c);\n\t\tc.gridy++;\n\t\tJPanel prop = new JPanel();\n\t\tprop.setPreferredSize(new Dimension(1,15));\n\t\tcontrolPanel.add(prop, c);\n\n\t\tc.gridy++;\n\t\tc.anchor = GridBagConstraints.LINE_START;\n\t\tlinearizeDataCheck = new JCheckBox(\"Linearize Data\", true);\n\t\tlinearizeDataCheck.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tupdateChart();\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(linearizeDataCheck, c);\n\t\t\n\t\tcontrolPanel.setMinimumSize(new Dimension(150,50));\n\t\tsetRightComponent(controlPanel);\n\n\t\tsetName(\"Measures History\");\n\t\tsetOneTouchExpandable(true);\n\t\tsetDividerSize(10);\n\t\tsetBorder(BorderFactory.createEmptyBorder());\n\t\tsetResizeWeight(1);\n\t\tsetDividerLocation(700);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n panelChart = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"Balansas\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n panelChart.setBackground(new java.awt.Color(255, 255, 255));\n panelChart.setLayout(new java.awt.BorderLayout());\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelChart, javax.swing.GroupLayout.DEFAULT_SIZE, 686, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(306, 306, 306)\n .addComponent(jButton1)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelChart, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addContainerGap())\n );\n\n pack();\n }", "public ChartTest() {\n initComponents();\n }", "public testChart() {\n initComponents();\n }", "public Parent createBarGraph(ObservableList<HappinessReport> data) {\n xAxis = new CategoryAxis();\n xAxis.setLabel(\"Country\");\n //Yaxis Creation\n yAxis = new NumberAxis();\n yAxis.setLabel(\"Score\");\n //Chart Creation\n barchart = new BarChart<>(xAxis, yAxis);\n barchart.setTitle(\"Horizontal Bar Chart Example\");\n //Country and Score Data load into chart\n for (int intx = 0; intx < data.size(); intx++) {\n XYChart.Series barChartSeries = new XYChart.Series<>();\n barChartSeries.getData().add(new XYChart.Data(String.valueOf(data.get(intx).getCountry()), data.get(intx).getScore()));\n barchart.getData().add(barChartSeries);\n }\n barchart.setTitle(\"Horizontal Bar Chart Example\");\n barchart.setLegendVisible(false);\n return barchart;\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "public JFrame displayChart() {\n final JFrame frame = new JFrame(\"dds\");\n\n // Schedule a job for the event-dispatching thread:\n // creating and showing this application's GUI.\n try {\n javax.swing.SwingUtilities.invokeAndWait(new Runnable() {\n\n @Override\n public void run() {\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n // XChartPanel<XYChart> chartPanel = new XChartPanel<XYChart>(charts.get(0));\n //() chartPanels.add(chartPanel);\n // frame.add(chartPanel);\n\n // Display the window.\n frame.setName(\"Динаміка системи\");\n frame.pack();\n frame.setVisible(true);\n }\n });\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n\n return frame;\n }", "public SketchBarChart() {\n super(\"bar_sketch\");\n }", "private static JFreeChart createChart(CategoryDataset dataset) {\n\t\t//the title of the chart depending of the attributes chosen by the user\n\t\tif (queryNumber==0) {domainLabel=\"Per day\";}\n\t\telse if (queryNumber==1) {domainLabel=\"Per hour\";}\n\t\telse if (queryNumber==2) {domainLabel=\"Per minute\";}\n\t\t\n\t\t// setting the title \n\t\tString rangeLabel=\"Average (ms)\";\n\t\t// create the chart...\n\t\tJFreeChart chart = ChartFactory.createBarChart(\n\t\t\t\t\"Static\", // chart title\n\t\t\t\tdomainLabel, // domain axis label\n\t\t\t\trangeLabel, // range axis label\n\t\t\t\tdataset, // data\n\t\t\t\tPlotOrientation.VERTICAL, // orientation\n\t\t\t\tfalse, // include legend\n\t\t\t\ttrue, // tooltips\n\t\t\t\tfalse // URLs\n\t\t\t\t);\n\t\t\n\t\t//setting the title preferences and format\n\t\tchart.getTitle().setFont(fontStatic);\n\t\tchart.getTitle().setPaint(Color.red);\n\t\tchart.setBackgroundPaint(Color.white);\n\t\tCategoryPlot plot = chart.getCategoryPlot();\n\t\tplot.setBackgroundPaint(Color.lightGray);\n\t\tplot.setDomainGridlinePaint(Color.white);\n\t\tplot.setDomainGridlinesVisible(true);\n\t\tplot.setRangeGridlinePaint(Color.white);\n\t\tfinal NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n\t\tchart.getCategoryPlot().getRangeAxis().setLabelPaint(Color.RED);\n\t\tchart.getCategoryPlot().getDomainAxis().setLabelPaint(Color.RED);\n\t\trangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n\t\tBarRenderer renderer = (BarRenderer) plot.getRenderer();\n\t\trenderer.setDrawBarOutline(false);\n\t\tfor (int i =0;i<25;i++) renderer.setSeriesPaint(i, Color.BLUE);\n\t\treturn chart;\n\t}", "public void createChart(StatisticPreviewChartViewModel statistic, Chart chart){\n\t chart.getTitle().setText(mainUser.getUsername());\r\n\t chart.getAxisSet().getXAxis(0).getTitle().setText(\"Dzień\");\r\n\t chart.getAxisSet().getYAxis(0).getTitle().setText(\"Kwoty\");\r\n\t // create scatter series\r\n\t ILineSeries series = (ILineSeries) chart.getSeriesSet().createSeries(SeriesType.LINE, \"Wartość\");\r\n\t series.setLineStyle(LineStyle.SOLID);\r\n\r\n\t Date[] days = statistic.getDays().stream().toArray(Date[]::new);\r\n\t series.setYSeries(statistic.getPrices());\r\n\t series.setXDateSeries(days); // xSeries is an array of java.util.Date\r\n\t IAxisTick xTick = chart.getAxisSet().getXAxis(0).getTick();\r\n\t \r\n\t IAxis yAxis = chart.getAxisSet().getYAxis(0);\r\n\t yAxis.adjustRange();\r\n\t \r\n\t yAxis.scrollUp();\r\n\t yAxis.scrollDown();\r\n\t Color color = new Color(Display.getDefault(), 255, 0, 0);\r\n\t series.setSymbolColor(color);\r\n\t \r\n\r\n\t DateFormat format = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t xTick.setFormat(format);\r\n\t \r\n\t \r\n\t // adjust the axis range\r\n\t chart.getAxisSet().adjustRange();\r\n\t \r\n\t chart.getParent().layout();\r\n\t comp.getParent().layout();\r\n\t \r\n\r\n\t comp.getParent().layout();\r\n\t chart.setVisible(true);\r\n\t}", "public LecturerBarChart() {\n initComponents();\n }", "@Override\r\n\tprotected void generateChart() throws Exception {\n\t\t\r\n\t}", "JFreeChart generateBox();", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pnlChart = new javax.swing.JPanel();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n pnlChart.setBackground(new java.awt.Color(0, 0, 0));\n pnlChart.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n pnlChart.setForeground(new java.awt.Color(255, 255, 255));\n pnlChart.setAlignmentX(1.5F);\n pnlChart.setAlignmentY(0.35F);\n pnlChart.setMaximumSize(new java.awt.Dimension(1000, 1000));\n pnlChart.setMinimumSize(new java.awt.Dimension(1, 1));\n pnlChart.setPreferredSize(new java.awt.Dimension(1, 1));\n pnlChart.setLayout(new java.awt.BorderLayout());\n\n jButton2.setText(\"jButton2\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n pnlChart.add(jButton2, java.awt.BorderLayout.PAGE_START);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(pnlChart, javax.swing.GroupLayout.PREFERRED_SIZE, 631, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 993, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(pnlChart, javax.swing.GroupLayout.PREFERRED_SIZE, 595, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 801, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n public void onClick(View view) {\n\n ft2 = getFragmentManager().beginTransaction();\n chartFragment = ChartFragment.newInstance(\"chart-fragment\");\n chartFragment.setArguments(bundleHourlyArr);\n ft2.add(R.id.main_holder, chartFragment, \"chart-fragment-tag\");\n ft2.show(chartFragment);\n ft2.commit();\n }", "private CreateScanRetentionTimeQCPlotData(){}", "public void MakeBar() {\n\t\tBarButton = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(GetBarChartImage())));\t\n\t\tBarButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"Bar chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(BarButton);\t\n\t}", "public BPCustomCharts() {\n FacesContext BPCustomcontext = FacesContext.getCurrentInstance();\n ValueBinding bpCustomValueBinding = \n BPCustomcontext.getApplication().createValueBinding(BPCustomChartBean.BEAN_NAME);\n bpCustomBean = \n (BPCustomChartBean) bpCustomValueBinding.getValue(BPCustomcontext); \n }", "public UIXChart()\n {\n super(\"org.apache.myfaces.trinidad.Chart\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n jComboBox1 = new javax.swing.JComboBox();\n leftPanel = new javax.swing.JPanel();\n plotGraphButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n bottomCheckBox = new javax.swing.JCheckBox();\n topCheckBox = new javax.swing.JCheckBox();\n bottomTextField = new javax.swing.JTextField();\n topTextField = new javax.swing.JTextField();\n doseResponseChartParentPanel = new javax.swing.JPanel();\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n setBackground(new java.awt.Color(255, 255, 255));\n setLayout(new java.awt.GridBagLayout());\n\n leftPanel.setBackground(new java.awt.Color(255, 255, 255));\n leftPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n leftPanel.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n leftPanel.setMinimumSize(new java.awt.Dimension(20, 20));\n leftPanel.setPreferredSize(new java.awt.Dimension(20, 20));\n\n plotGraphButton.setText(\"Plot New Graph\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Constrain Fit\");\n\n bottomCheckBox.setBackground(new java.awt.Color(255, 255, 255));\n bottomCheckBox.setText(\"Bottom\");\n\n topCheckBox.setBackground(new java.awt.Color(255, 255, 255));\n topCheckBox.setText(\"Top\");\n\n javax.swing.GroupLayout leftPanelLayout = new javax.swing.GroupLayout(leftPanel);\n leftPanel.setLayout(leftPanelLayout);\n leftPanelLayout.setHorizontalGroup(\n leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(leftPanelLayout.createSequentialGroup()\n .addGroup(leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(leftPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(plotGraphButton)\n .addGroup(leftPanelLayout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addGroup(leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bottomCheckBox)\n .addComponent(topCheckBox)))\n .addComponent(jLabel1)))\n .addGroup(leftPanelLayout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addGroup(leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(topTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bottomTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(50, Short.MAX_VALUE))\n );\n leftPanelLayout.setVerticalGroup(\n leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(leftPanelLayout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(bottomCheckBox)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bottomTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24)\n .addComponent(topCheckBox)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(topTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(plotGraphButton)\n .addContainerGap(160, Short.MAX_VALUE))\n );\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 0.15;\n gridBagConstraints.weighty = 1.0;\n add(leftPanel, gridBagConstraints);\n\n doseResponseChartParentPanel.setBackground(new java.awt.Color(255, 255, 255));\n doseResponseChartParentPanel.setMinimumSize(new java.awt.Dimension(20, 20));\n doseResponseChartParentPanel.setPreferredSize(new java.awt.Dimension(20, 20));\n doseResponseChartParentPanel.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;\n gridBagConstraints.weightx = 0.85;\n gridBagConstraints.weighty = 1.0;\n add(doseResponseChartParentPanel, gridBagConstraints);\n }", "private void addCharts() {\n piechartPanel.removeAll();\n piechartPanel.validate();\n piechartPanel.repaint();\n\n barschartPanel.removeAll();\n barschartPanel.validate();\n barschartPanel.repaint();\n if (cpanel != null) {\n cpanel = null;\n }\n pieChart = new PieChart(collection, 0, type, cb_sort.isSelected()).chart;\n barsChart = new BarsChart(collection, 0, type, cb_sort.isSelected()).chart;\n cpanel = new ChartPanel(pieChart);\n cpanel.setSize(piechartPanel.getSize());\n piechartPanel.add(cpanel);\n piechartPanel.getParent().validate();\n cpanel = new ChartPanel(barsChart);\n cpanel.setSize(barschartPanel.getSize());\n barschartPanel.add(cpanel);\n barschartPanel.getParent().validate();\n }", "private void initGUI(){\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tDefaultPieDataset dataset = new DefaultPieDataset();// use to set value of pie chart\n\t\tdataset.setValue(\"Bandwidth\",0);//set initial result of the Bandwidth\n\t\tdataset.setValue(\"Signal To Noise\",0);//set initial result of the Signal To Noise\n\t\tdataset.setValue(\"Max Data Rate\",0);//set initial result of the max data rate\n\t\tsetMaxDataRateLBL(dataset); //Set the content of initial result of max data rate \n\t\tJFreeChart pieChart = ChartFactory.createPieChart(\"Shannons Theorem\", dataset, true,true,false);\n\t\t//pie plot use to multiply the pattern and display of pie chart\n\t\tPiePlot plot = (PiePlot)pieChart.getPlot();\n\t\tplot.setLabelFont(new Font(\"SansSerif\", Font.PLAIN, 12));\n //show the message if there is no data available\n\t\tplot.setNoDataMessage(\"No data available\");\n \n // make the result show the numbers on the pie chart\n plot.setLabelGenerator(new StandardPieSectionLabelGenerator(\"{0}: {1} ({2})\", new DecimalFormat(\"0\"), new DecimalFormat(\"0%\")));\n plot.setCircular(false);\n plot.setLabelGap(0.02);\n\t\tChartPanel cp = new ChartPanel(pieChart); //use to put pie chart into JPanel \n\t\tadd(cp);\n\t\tadd(createResult());\n\t}", "private void initialize() {\n\t\tfrmcCharts = new JFrame();\n\t\tfrmcCharts.setTitle(\"8C Charts\");\n\t\tfrmcCharts.setBounds(100, 100, 775, 487);\n\t\tfrmcCharts.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(SystemColor.activeCaption);\n\t\tfrmcCharts.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJLabel lblWelcomeToc = new JLabel(\"Welcome to 8C Charts\");\n\t\tlblWelcomeToc.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\tlblWelcomeToc.setBounds(239, 42, 242, 35);\n\t\tpanel.add(lblWelcomeToc);\n\t\t\n\t\tJButton btnWorkBreakdownTree = new JButton(\"Work Breakdown Tree\");\n\t\tbtnWorkBreakdownTree.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n//\t\t\t\tWBT.main(null);\n\t\t\t\tchartType = \"WBT\";\n//\t\t\t\tframe.dispose();\n\t\t fileLoader.main(null);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnWorkBreakdownTree.setBounds(26, 119, 187, 45);\n\t\tpanel.add(btnWorkBreakdownTree);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"PERT Chart\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tchartType = \"PERT\";\n//\t\t\t\tframe.dispose();\n\t\t fileLoader.main(null);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(26, 188, 187, 45);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJButton btnGanttChart = new JButton(\"GANTT Chart\");\n\t\tbtnGanttChart.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tchartType = \"GANTT\";\n\t\t fileLoader.main(null);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnGanttChart.setBounds(26, 259, 187, 45);\n\t\tpanel.add(btnGanttChart);\n\t\t\n\t\tTextArea textArea = new TextArea();\n\t\ttextArea.setEditable(false);\n\t\ttextArea.setBounds(239, 88, 510, 309);\n\t\tpanel.add(textArea);\n\t\ttextArea.setText(\"Welcome to 8C Charts\\r\\n\\r\\n8C Charts can create the perfect charts for all you project planning or schedueling \\r\\nneeds.\\r\\n\\r\\nThis application will allow you to create the following charts:\\r\\n\\r\\nWork Breakdown Tree (WBT):\\r\\n\\t\\r\\nThis diagram is to shows the main tasks that needs to be done and the sub task of \\r\\neach of the main tasks. It will order the tasks in priority of what needs to be done \\r\\nbefore another.\\r\\n\\r\\nPERT Chart:\\r\\n\\r\\nThis chart will have a diagram with all the different task that needs to be done. \\r\\nNext to the task it will also have the start and end dates for which the task \\r\\nneeds to be completed. It will also show you what tasks can be done at the same\\r\\ntime as other tasks and what has to be done before certain task can be started.\\r\\n\\r\\nGANTT Chart:\\r\\n\\r\\nThis chart shows a time line length for different tasks and how long each task will\\r\\ntake. It will also have all the information that the PERT Chart has but includes lines\\r\\nshowing the lastest start and finish time of each task.\\r\\n\\r\\n\");\n\t\t\n\t\tJButton btnDonate = new JButton(\"Donate\");\n\t\tbtnDonate.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t donate.main(null);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnDonate.setBounds(660, 414, 89, 23);\n\t\tpanel.add(btnDonate);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setToolTipText(\"\");\n\t\tmenuBar.setBounds(0, 0, 759, 21);\n\t\tpanel.add(menuBar);\n\t\t\n\t\tJMenu mnFile = new JMenu(\"File\");\n\t\tmenuBar.add(mnFile);\n\t\t\n\t\tJMenu mnWbt = new JMenu(\"WBT\");\n\t\tmenuBar.add(mnWbt);\n\t\t\n\t\tJMenu mnCreateNewFile = new JMenu(\"Create New File\");\n\t\tmnWbt.add(mnCreateNewFile);\n\t\t\n\t\tJMenu mnLoadExistingFile = new JMenu(\"Load Existing File\");\n\t\tmnWbt.add(mnLoadExistingFile);\n\t\t\n\t\tJMenu mnPert = new JMenu(\"PERT\");\n\t\tmenuBar.add(mnPert);\n\t\t\n\t\tJMenu mnCreateNewFile_1 = new JMenu(\"Create New File\");\n\t\tmnPert.add(mnCreateNewFile_1);\n\t\t\n\t\tJMenu mnLoadExistingFile_1 = new JMenu(\"Load Existing File\");\n\t\tmnPert.add(mnLoadExistingFile_1);\n\t\t\n\t\tJMenu mnGantt = new JMenu(\"GANTT\");\n\t\tmenuBar.add(mnGantt);\n\t\t\n\t\tJMenu mnCreateNewFile_2 = new JMenu(\"Create New File\");\n\t\tmnGantt.add(mnCreateNewFile_2);\n\t\t\n\t\tJMenu mnLoadExistingFile_2 = new JMenu(\"Load Existing File\");\n\t\tmnGantt.add(mnLoadExistingFile_2);\n\t\t\n\t\tJMenu mnHelp = new JMenu(\"Help\");\n\t\tmenuBar.add(mnHelp);\n\t\t\n\t\tJMenu mnDonate = new JMenu(\"Donate\");\n\t\tmnHelp.add(mnDonate);\n\t\t\n\t\tJMenu mnUserGuide = new JMenu(\"User Guide\");\n\t\tmnHelp.add(mnUserGuide);\n\t}", "public ThongKeHD() {\n initComponents();\n initialization();\n performEvent();\n //drawChart(2021);\n }", "private JInternalFrame createInternalFrame() {\n\n initializeChartPanel();\n\n chartPanel.setPreferredSize(new Dimension(200, 100));\n final JInternalFrame frame = new JInternalFrame(\"Frame 1\", true);\n frame.getContentPane().add(chartPanel);\n frame.setClosable(true);\n frame.setIconifiable(true);\n frame.setMaximizable(true);\n frame.setResizable(true);\n return frame;\n\n }", "private void createchart() {\n int successcount = 0;\n int failedcount = 0;\n \n DefaultPieDataset barchartdata = new DefaultPieDataset();\n \n if(system == null && enterprise == null){\n for(Enterprise ent: network.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n else if(network == null && enterprise == null){\n for(Network net: system.getNetworkList()){\n for(Enterprise ent: net.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n }\n else{\n for(WorkRequest request: enterprise.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n \n barchartdata.setValue( \"Successful Trials\",new Double(successcount));\n barchartdata.setValue(\"Failed trials\",new Double(failedcount));\n\n JFreeChart pieChart = ChartFactory.createPieChart(\"Successful versus failed trials\",barchartdata, false, true, false);\n final PiePlot plot=(PiePlot) pieChart.getPlot();\n ChartPanel barPanel = new ChartPanel(pieChart);\n\n dashboardpanel.removeAll();\n dashboardpanel.setLayout(new java.awt.BorderLayout());\n dashboardpanel.add(barPanel, BorderLayout.CENTER);\n dashboardpanel.validate();\n \n }", "private static JFreeChart createChart(XYDataset dataset) {\n\n chart = ChartFactory.createTimeSeriesChart(\n \"Stromzählerübersicht\", // Titel\n \"Datum\", // x-Achse label\n \"kWh\", // y-Achse label\n dataset);\n\n chart.setBackgroundPaint(Color.WHITE);\n\n XYPlot plot = (XYPlot) chart.getPlot();\n plot.setBackgroundPaint(Color.LIGHT_GRAY);\n plot.setDomainGridlinePaint(Color.WHITE);\n plot.setRangeGridlinePaint(Color.WHITE);\n plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));\n plot.setDomainCrosshairVisible(true);\n plot.setRangeCrosshairVisible(true);\n\n XYItemRenderer r = plot.getRenderer();\n if (r instanceof XYLineAndShapeRenderer) {\n XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;\n renderer.setDefaultShapesVisible(false);\n renderer.setDefaultShapesFilled(false);\n renderer.setDrawSeriesLineAsPath(true);\n }\n\n DateAxis axis = (DateAxis) plot.getDomainAxis();\n axis.setDateFormatOverride(new SimpleDateFormat(\"dd-MM-yyyy\"));\n\n return chart;\n\n }", "public ChartController()\n {\n \tthis.pieModel = new PieChartModel();\n \tthis.pieModel.set(\"\", 0);\n \tthis.categoryModel = new CartesianChartModel() ;\n \tChartSeries fakultas = new ChartSeries() ;\n \tfakultas.set(\"\", 0);\n \tthis.categoryModel.addSeries(fakultas);\n }", "public void View()\n\t{\n\t\tDefaultPieDataset pieDataset = new DefaultPieDataset();\n\t\t\n\t\tfor(String key : result.keySet())\n\t\t{\n\t\t\tpieDataset.setValue(key, Double.parseDouble(result.get(key).toString()));\n\t\t}\n\t\t\n\t\tJFreeChart chart = ChartFactory.createPieChart(title, pieDataset, true, true, true);\n\t\t\n\t\tChartFrame frame = new ChartFrame(\"Pie Chart\", chart);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(450,500);\n\t}", "public void MakeBar3D() {\n\t\tBarButton3D = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(\n\t\t\t\t\tGet3DBarChartImage())));\n\t\tBarButton3D.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\t\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart3D(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"3D Bar Chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart3D(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t\t\n\t\tChartTypeInterface.add(BarButton3D);\n\t}", "private void createChart() {\n LineChart lineChart = (LineChart) findViewById(R.id.line_chart);\n\n // LineChart DataSet\n ArrayList<LineDataSet> dataSets = new ArrayList<>();\n\n // x-coordinate format value\n XAxis xAxis = lineChart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setGranularity(1f); // only intervals of 1 day\n// xAxis.setValueFormatter(new DayAxisValueFormatter(lineChart));\n\n\n // x-coordinate value\n ArrayList<String> xValues = new ArrayList<>();\n xValues.add(\"No.1\");\n xValues.add(\"No.2\");\n xValues.add(\"No.3\");\n xValues.add(\"No.4\");\n xValues.add(\"No.5\");\n\n // value\n ArrayList<Entry> value = new ArrayList<>();\n String measureItemName = \"\";\n value.add(new Entry(100, 0));\n value.add(new Entry(120, 1));\n value.add(new Entry(150, 2));\n value.add(new Entry(250, 3));\n value.add(new Entry(500, 4));\n\n\n // add value to LineChart's DataSet\n LineDataSet valueDataSet = new LineDataSet(value, measureItemName);\n dataSets.add(valueDataSet);\n\n // set LineChart's DataSet to LineChart\n// lineChart.setData(new LineData(xValues, dataSets));\n lineChart.setData(new LineData(valueDataSet));\n }", "private static JFreeChart createChart(CategoryDataset dataset) {\n JFreeChart chart = ChartFactory.createLineChart(\n \"Line Chart\", null /* x-axis label*/, \n \"Range\" /* y-axis label */, dataset);\n chart.addSubtitle(new TextTitle(\" Its is generated to show patient History \" \n ));\n chart.setBackgroundPaint(Color.white);\n CategoryPlot plot = (CategoryPlot) chart.getPlot();\n\tNumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n // Line renderer = (BarRenderer) plot.getRenderer();\n // renderer.setDrawBarOutline(false);\n // LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot.getRenderer(); \n//renderer.setItemMargin(3); \n//renderer.setItemLabelsVisible(true);\n chart.getLegend().setFrame(BlockBorder.NONE);\n return chart;\n }", "private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}", "public void setGraph(ActionEvent event)\n {\n theLineGraph.getData().clear();\n double temporary=0;\n theLineGraph.getXAxis().setLabel(\"Days\");\n\n XYChart.Series<String, Number> theGraph = new XYChart.Series<String, Number>();\n\n for (int i=0; i<Driver.save.getLog().size();i++)\n {\n String myI=i+\"\";\n\n if (event.getSource()==caloriesButton)\n {\n temporary=Driver.save.getDayCalories(i);\n theLineGraph.getYAxis().setLabel(\"Calories\");\n\n } else if(event.getSource()==protienButton)\n {\n temporary=Driver.save.getDayProtein(i);\n theLineGraph.getYAxis().setLabel(\"protien\");\n }\n else if (event.getSource()==carbsButton)\n {\n temporary=Driver.save.getDayCarbo(i);\n theLineGraph.getYAxis().setLabel(\"Carbs\");\n }\n else if (event.getSource()==fatsButton)\n {\n temporary=Driver.save.getDayFats(i);\n theLineGraph.getYAxis().setLabel(\"Fats\");\n }\n else if (event.getSource()==bevButton)\n {\n temporary=Driver.save.getDayBevarage(i);\n theLineGraph.getYAxis().setLabel(\"Drinks in ml\");\n }\n\n theGraph.getData().add(new XYChart.Data<String, Number>(myI ,temporary));\n }\n theLineGraph.getData().addAll(theGraph);\n\n }", "private BarData generateDataBar() {\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n ArrayList<BarEntry> entries = new ArrayList<>();\n ArrayList<TransactionBeans> transactionBeans = transactionDB.getTransactionRecordsMonth(month1,year);\n for (int i = 0; i < transactionBeans.size(); i++) {\n TransactionBeans beans = transactionBeans.get(i);\n entries.add(new BarEntry(i, (int) (Double.parseDouble(beans.getIncome()))));\n }\n\n BarDataSet d = new BarDataSet(entries, \"\");\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n cd.setDrawValues(false);\n return cd;\n }", "private void initialize() {\r\n\t\t//frame = new JFrame();\r\n\t\tframe.setSize(725, 482);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frame.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\tDefaultCategoryDataset dataset= new DefaultCategoryDataset();\r\n\t\t//JOptionPane.showMessageDialog(null, \"BUTTON CLICKED!!!\");\r\n\t\t//LableMessage.setText(\"BUTTON CLICKED!!!\");\r\n\t\t\r\n\t\t//Pain, Drowsiness, Nausea, Anxiety, and Depression\r\n\t\tdataset.setValue(2, \"day1\",\"Pain\");\r\n\t\tdataset.setValue(5, \"day2\",\"Pain\");\r\n\t\tdataset.setValue(4, \"day3\",\"Pain\");\r\n\t\tdataset.setValue(6, \"day1\", \"Drowsiness\");\r\n\t\tdataset.setValue(10, \"day2\", \"Drowsiness\");\r\n\t\tdataset.setValue(8, \"day3\", \"Drowsiness\");\r\n\t\tdataset.setValue(1, \"day1\", \"Nausea\");\r\n\t\tdataset.setValue(7, \"day2\", \"Nausea\");\r\n\t\tdataset.setValue(5, \"day3\", \"Nausea\");\r\n\t\tdataset.setValue(3,\"day1\",\"Anxiety\");\t\r\n\t\tdataset.setValue(8,\"day2\",\"Anxiety\");\r\n\t\tdataset.setValue(9,\"day3\",\"Anxiety\");\r\n\t\tdataset.setValue(8, \"day1\", \"Depression\");\r\n\t\tdataset.setValue(7, \"day2\", \"Depression\");\r\n\t\tdataset.setValue(9, \"day3\", \"Depression\");\r\n\t\tint test[] = new int[7];\r\n\t\tfor (int i=0;i<7; i++)\r\n\t\t{\r\n\t\t\ttest[i]=5;\r\n\t\t}\r\n\t\tDefaultCategoryDataset dataset2= new DefaultCategoryDataset();\r\n\t\t//dataset2 = dataSetInit(P1.getEnterSymptomLevel(),P1.getPreviousSymptomLevel1(),P1.getPreviousSymptomLevel2());\r\n\t\tdataset2 = dataSetInit(test,test,test);\r\n\t\t//P1.getEnter\r\n\t\t//DefaultCategoryDataset dataset2= new DefaultCategoryDataset();\r\n\r\n\t\t//JFreeChart chart= ChartFactory.createBarChart(P1.firstName+\" \"+P1.lastName,\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\r\n\t\tJFreeChart chart= ChartFactory.createBarChart3D(\"Symptom Report\",\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,true,true,true);\r\n\t\t//JFreeChart chart2= ChartFactory.createBarChart(\"Symptom Report\",\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\t\tchart.setBackgroundPaint(Color.lightGray);\r\n\t\t//JFreeChart chart2= ChartFactory.createBarChart(\"Grade Report\",\"Student Name\", \"Marks\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\t\t\r\n\t\tChartPanel chartPanel = new ChartPanel(chart);\r\n\t\tchartPanel.setPreferredSize(new Dimension(700,350));\r\n\t\tPan.add(chartPanel);\r\n\t\t\r\n\t\tframe.getContentPane().add(Pan);\r\n\t\tCategoryPlot p=chart.getCategoryPlot();\r\n\t\tp.setRangeGridlinePaint(Color.red);\r\n\t\tp.setBackgroundPaint(Color.WHITE);\r\n\t\tframe.setVisible(true);\r\n//\t\tChartFrame frame= new ChartFrame(\"Bar Graph Test\",chart,false);\r\n//\t\t\r\n//\t\tframe.setVisible(true);\r\n//\t\tframe.setSize(700,350);\r\n//\t\tframe.setResizable(false);\r\n\t\t//frame2 =new JFrame()\r\n\t}", "public CalendarDemo() {\r\n super();\r\n JPanel tmpPanel = new JPanel();\r\n tmpPanel.setLayout( new GridBagLayout() );\r\n GridBagConstraints c = new GridBagConstraints();\r\n\r\n c.fill = GridBagConstraints.BOTH;\r\n c.gridx = 0;\r\n c.gridy = 0;\r\n c.weightx = 1;\r\n c.weighty = 1;\r\n c.gridheight = 2;\r\n tmpPanel.add(chart[0], c);\r\n\r\n c.gridx = 1;\r\n c.gridy = 0;\r\n c.weightx = 0.4;\r\n c.weighty = 0.4;\r\n c.gridheight = 1;\r\n tmpPanel.add(chart[1], c);\r\n\r\n c.gridx = 1;\r\n c.gridy = 1;\r\n c.weightx = 0.3;\r\n c.weighty = 0.6;\r\n c.gridheight = 1;\r\n tmpPanel.add(chart[2], c);\r\n\r\n setSamplePane(tmpPanel);\r\n\r\n weekDaysButton.addItemListener(this);\r\n monthNameButton.addItemListener(this);\r\n editButton.addActionListener(this);\r\n }", "private JPanel createChartPanel(XYSeriesCollection li) {\n\n String chartTitle = \" Movement Chart\";\n String xAxisLabel = \"Matrix Size\";\n String yAxisLabel = \"time in ms\";\n\n XYSeriesCollection dataset = li;\n // System.out.println(\"tesst count \" + dataset.getSeriesCount());\n\n //XYDataset dataset = createDataset(li);\n JFreeChart chart = ChartFactory.createXYLineChart(chartTitle, xAxisLabel, yAxisLabel, dataset);\n XYPlot plot = chart.getXYPlot();\n XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();\n plot.setRenderer(renderer);\n\n return new ChartPanel(chart);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\n private void initComponents() {\n\n chartTypeButtonGroup = new javax.swing.ButtonGroup();\n chartPanel = new javax.swing.JPanel();\n optionPanel = new javax.swing.JPanel();\n periodComboBox = new javax.swing.JComboBox();\n periodTypeComboBox = new javax.swing.JComboBox();\n periodLabel = new javax.swing.JLabel();\n unitLabel = new javax.swing.JLabel();\n pieChartRadioButton = new javax.swing.JRadioButton();\n barGraphRadioButton = new javax.swing.JRadioButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n chartPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n javax.swing.GroupLayout chartPanelLayout = new javax.swing.GroupLayout(chartPanel);\n chartPanel.setLayout(chartPanelLayout);\n chartPanelLayout.setHorizontalGroup(\n chartPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n chartPanelLayout.setVerticalGroup(\n chartPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 423, Short.MAX_VALUE)\n );\n\n optionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Graph Options\"));\n\n periodComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n periodComboBoxActionPerformed(evt);\n }\n });\n\n periodTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Monthly\", \"Yearly\", \"Historical\" }));\n periodTypeComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n periodTypeComboBoxActionPerformed(evt);\n }\n });\n\n periodLabel.setText(\"Period:\");\n\n unitLabel.setText(\"Week:\");\n\n chartTypeButtonGroup.add(pieChartRadioButton);\n pieChartRadioButton.setSelected(true);\n pieChartRadioButton.setText(\"Pie Chart\");\n pieChartRadioButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pieChartRadioButtonActionPerformed(evt);\n }\n });\n\n chartTypeButtonGroup.add(barGraphRadioButton);\n barGraphRadioButton.setText(\"Bar Graph\");\n barGraphRadioButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n barGraphRadioButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout optionPanelLayout = new javax.swing.GroupLayout(optionPanel);\n optionPanel.setLayout(optionPanelLayout);\n optionPanelLayout.setHorizontalGroup(\n optionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(optionPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(periodLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(periodTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)\n .addComponent(unitLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(periodComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(73, 73, 73)\n .addComponent(pieChartRadioButton)\n .addGap(49, 49, 49)\n .addComponent(barGraphRadioButton)\n .addContainerGap())\n );\n optionPanelLayout.setVerticalGroup(\n optionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(optionPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(optionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(periodTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(periodComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(periodLabel)\n .addComponent(unitLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pieChartRadioButton)\n .addComponent(barGraphRadioButton)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chartPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(optionPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(optionPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chartPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n DailyBarPlotOptionsLabel = new javax.swing.JLabel();\n RunNameLabel = new javax.swing.JLabel();\n RunNameTextField = new javax.swing.JTextField();\n QCLimitSettingsLabel = new javax.swing.JLabel();\n TemperatureLimitLowerLabel = new javax.swing.JLabel();\n TemperatureLimitLowerTextField = new javax.swing.JTextField();\n TemperaureLimitLowerUnitLabel = new javax.swing.JLabel();\n TemperatureLimitUpperLabel = new javax.swing.JLabel();\n TemperatureLimitUpperTextField = new javax.swing.JTextField();\n TemperaureLimitUpperUnitLabel = new javax.swing.JLabel();\n MoistureLimitLowerLabel = new javax.swing.JLabel();\n MoistureLimitLowerTextField = new javax.swing.JTextField();\n MoistureLimitLowerUnitLabel = new javax.swing.JLabel();\n MoistureLimitUpperLabel = new javax.swing.JLabel();\n MoistureLimitUpperTextField = new javax.swing.JTextField();\n MoistureLimitUpperUnitLabel = new javax.swing.JLabel();\n WindSpeedLimitLowerLabel = new javax.swing.JLabel();\n WindSpeedLimitLowerTextField = new javax.swing.JTextField();\n WindSpeedLimitLowerUnitLabel = new javax.swing.JLabel();\n WindSpeedLimitUpperLabel = new javax.swing.JLabel();\n WindSpeedLimitUpperTextField = new javax.swing.JTextField();\n WindSpeedLimitUpperUnitLabel = new javax.swing.JLabel();\n ErrorTempLabel = new javax.swing.JLabel();\n ErrorTempTextField = new javax.swing.JTextField();\n ErrorTempUnitLabel = new javax.swing.JLabel();\n ErrorWindSpeedLabel = new javax.swing.JLabel();\n ErrorWindSpeedTextField = new javax.swing.JTextField();\n ErrorWindSpeedUnitLabel = new javax.swing.JLabel();\n ErrorMoistureLabel = new javax.swing.JLabel();\n ErrorMoistureTextField = new javax.swing.JTextField();\n ErrorMoistureUnitLabel = new javax.swing.JLabel();\n ErrorRelativeHumidityLabel = new javax.swing.JLabel();\n ErrorRelativeHumidityTextField = new javax.swing.JTextField();\n ErrorRelativeHumidityUnitLabel = new javax.swing.JLabel();\n SaveButton = new javax.swing.JButton();\n CancelButton = new javax.swing.JButton();\n ExtraLabel5 = new javax.swing.JLabel();\n ExtraLabel6 = new javax.swing.JLabel();\n ExtraLabel7 = new javax.swing.JLabel();\n ResetButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Daily Bar Plot Options\");\n setAlwaysOnTop(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setPreferredSize(new java.awt.Dimension(483, 574));\n\n DailyBarPlotOptionsLabel.setBackground(new java.awt.Color(255, 255, 255));\n DailyBarPlotOptionsLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n DailyBarPlotOptionsLabel.setForeground(new java.awt.Color(0, 63, 105));\n DailyBarPlotOptionsLabel.setText(\"Daily Bar Plot Options\");\n\n RunNameLabel.setBackground(new java.awt.Color(255, 255, 255));\n RunNameLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n RunNameLabel.setForeground(new java.awt.Color(0, 112, 185));\n RunNameLabel.setText(\"Plot ID (used to distinguish analyses):\");\n\n RunNameTextField.setBackground(new java.awt.Color(191, 182, 172));\n RunNameTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n RunNameTextField.setForeground(new java.awt.Color(0, 63, 105));\n RunNameTextField.setText(\"AMET_GUI\");\n RunNameTextField.setMaximumSize(new java.awt.Dimension(178, 23));\n RunNameTextField.setMinimumSize(new java.awt.Dimension(139, 23));\n RunNameTextField.setPreferredSize(new java.awt.Dimension(139, 23));\n\n QCLimitSettingsLabel.setBackground(new java.awt.Color(255, 255, 255));\n QCLimitSettingsLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n QCLimitSettingsLabel.setForeground(new java.awt.Color(0, 63, 105));\n QCLimitSettingsLabel.setText(\"Quality Control Settings\");\n\n TemperatureLimitLowerLabel.setBackground(new java.awt.Color(255, 255, 255));\n TemperatureLimitLowerLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n TemperatureLimitLowerLabel.setForeground(new java.awt.Color(0, 112, 185));\n TemperatureLimitLowerLabel.setText(\"Temperature Lower Limit:\");\n\n TemperatureLimitLowerTextField.setBackground(new java.awt.Color(191, 182, 172));\n TemperatureLimitLowerTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n TemperatureLimitLowerTextField.setForeground(new java.awt.Color(0, 63, 105));\n TemperatureLimitLowerTextField.setText(\"240\");\n TemperatureLimitLowerTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n TemperatureLimitLowerTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n TemperatureLimitLowerTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n TemperaureLimitLowerUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n TemperaureLimitLowerUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n TemperaureLimitLowerUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n TemperaureLimitLowerUnitLabel.setText(\"K\");\n\n TemperatureLimitUpperLabel.setBackground(new java.awt.Color(255, 255, 255));\n TemperatureLimitUpperLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n TemperatureLimitUpperLabel.setForeground(new java.awt.Color(0, 112, 185));\n TemperatureLimitUpperLabel.setText(\"Temperature Upper Limit:\");\n\n TemperatureLimitUpperTextField.setBackground(new java.awt.Color(191, 182, 172));\n TemperatureLimitUpperTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n TemperatureLimitUpperTextField.setForeground(new java.awt.Color(0, 63, 105));\n TemperatureLimitUpperTextField.setText(\"315\");\n TemperatureLimitUpperTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n TemperatureLimitUpperTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n TemperatureLimitUpperTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n TemperaureLimitUpperUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n TemperaureLimitUpperUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n TemperaureLimitUpperUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n TemperaureLimitUpperUnitLabel.setText(\"K\");\n\n MoistureLimitLowerLabel.setBackground(new java.awt.Color(255, 255, 255));\n MoistureLimitLowerLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n MoistureLimitLowerLabel.setForeground(new java.awt.Color(0, 112, 185));\n MoistureLimitLowerLabel.setText(\"Moisture Lower Limit:\");\n\n MoistureLimitLowerTextField.setBackground(new java.awt.Color(191, 182, 172));\n MoistureLimitLowerTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n MoistureLimitLowerTextField.setForeground(new java.awt.Color(0, 63, 105));\n MoistureLimitLowerTextField.setText(\"0\");\n MoistureLimitLowerTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n MoistureLimitLowerTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n MoistureLimitLowerTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n MoistureLimitLowerUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n MoistureLimitLowerUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n MoistureLimitLowerUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n MoistureLimitLowerUnitLabel.setText(\"g/kg\");\n\n MoistureLimitUpperLabel.setBackground(new java.awt.Color(255, 255, 255));\n MoistureLimitUpperLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n MoistureLimitUpperLabel.setForeground(new java.awt.Color(0, 112, 185));\n MoistureLimitUpperLabel.setText(\"Moisture Upper Limit:\");\n\n MoistureLimitUpperTextField.setBackground(new java.awt.Color(191, 182, 172));\n MoistureLimitUpperTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n MoistureLimitUpperTextField.setForeground(new java.awt.Color(0, 63, 105));\n MoistureLimitUpperTextField.setText(\"30\");\n MoistureLimitUpperTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n MoistureLimitUpperTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n MoistureLimitUpperTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n MoistureLimitUpperUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n MoistureLimitUpperUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n MoistureLimitUpperUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n MoistureLimitUpperUnitLabel.setText(\"g/kg\");\n\n WindSpeedLimitLowerLabel.setBackground(new java.awt.Color(255, 255, 255));\n WindSpeedLimitLowerLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n WindSpeedLimitLowerLabel.setForeground(new java.awt.Color(0, 112, 185));\n WindSpeedLimitLowerLabel.setText(\"Wind Speed Lower Limit:\");\n\n WindSpeedLimitLowerTextField.setBackground(new java.awt.Color(191, 182, 172));\n WindSpeedLimitLowerTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n WindSpeedLimitLowerTextField.setForeground(new java.awt.Color(0, 63, 105));\n WindSpeedLimitLowerTextField.setText(\"1.5\");\n WindSpeedLimitLowerTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n WindSpeedLimitLowerTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n WindSpeedLimitLowerTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n WindSpeedLimitLowerUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n WindSpeedLimitLowerUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n WindSpeedLimitLowerUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n WindSpeedLimitLowerUnitLabel.setText(\"m/s\");\n\n WindSpeedLimitUpperLabel.setBackground(new java.awt.Color(255, 255, 255));\n WindSpeedLimitUpperLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n WindSpeedLimitUpperLabel.setForeground(new java.awt.Color(0, 112, 185));\n WindSpeedLimitUpperLabel.setText(\"Wind Speed Upper Limit:\");\n\n WindSpeedLimitUpperTextField.setBackground(new java.awt.Color(191, 182, 172));\n WindSpeedLimitUpperTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n WindSpeedLimitUpperTextField.setForeground(new java.awt.Color(0, 63, 105));\n WindSpeedLimitUpperTextField.setText(\"25\");\n WindSpeedLimitUpperTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n WindSpeedLimitUpperTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n WindSpeedLimitUpperTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n WindSpeedLimitUpperUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n WindSpeedLimitUpperUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n WindSpeedLimitUpperUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n WindSpeedLimitUpperUnitLabel.setText(\"m/s\");\n\n ErrorTempLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorTempLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorTempLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorTempLabel.setText(\"Error Limit for Temperature:\");\n\n ErrorTempTextField.setBackground(new java.awt.Color(191, 182, 172));\n ErrorTempTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorTempTextField.setForeground(new java.awt.Color(0, 63, 105));\n ErrorTempTextField.setText(\"15\");\n ErrorTempTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n ErrorTempTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n ErrorTempTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n ErrorTempUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorTempUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorTempUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorTempUnitLabel.setText(\"K\");\n\n ErrorWindSpeedLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorWindSpeedLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorWindSpeedLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorWindSpeedLabel.setText(\"Error Limit for Wind Speed:\");\n\n ErrorWindSpeedTextField.setBackground(new java.awt.Color(191, 182, 172));\n ErrorWindSpeedTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorWindSpeedTextField.setForeground(new java.awt.Color(0, 63, 105));\n ErrorWindSpeedTextField.setText(\"20\");\n ErrorWindSpeedTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n ErrorWindSpeedTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n ErrorWindSpeedTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n ErrorWindSpeedUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorWindSpeedUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorWindSpeedUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorWindSpeedUnitLabel.setText(\"m/s\");\n\n ErrorMoistureLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorMoistureLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorMoistureLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorMoistureLabel.setText(\"Error Limit for Moisture:\");\n\n ErrorMoistureTextField.setBackground(new java.awt.Color(191, 182, 172));\n ErrorMoistureTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorMoistureTextField.setForeground(new java.awt.Color(0, 63, 105));\n ErrorMoistureTextField.setText(\"10\");\n ErrorMoistureTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n ErrorMoistureTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n ErrorMoistureTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n ErrorMoistureUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorMoistureUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorMoistureUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorMoistureUnitLabel.setText(\"k/kg\");\n\n ErrorRelativeHumidityLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorRelativeHumidityLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorRelativeHumidityLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorRelativeHumidityLabel.setText(\"Error Limit for Relative Humidity:\");\n\n ErrorRelativeHumidityTextField.setBackground(new java.awt.Color(191, 182, 172));\n ErrorRelativeHumidityTextField.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorRelativeHumidityTextField.setForeground(new java.awt.Color(0, 63, 105));\n ErrorRelativeHumidityTextField.setText(\"50\");\n ErrorRelativeHumidityTextField.setMaximumSize(new java.awt.Dimension(65, 23));\n ErrorRelativeHumidityTextField.setMinimumSize(new java.awt.Dimension(65, 23));\n ErrorRelativeHumidityTextField.setPreferredSize(new java.awt.Dimension(65, 23));\n\n ErrorRelativeHumidityUnitLabel.setBackground(new java.awt.Color(255, 255, 255));\n ErrorRelativeHumidityUnitLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ErrorRelativeHumidityUnitLabel.setForeground(new java.awt.Color(0, 112, 185));\n ErrorRelativeHumidityUnitLabel.setText(\"%\");\n\n SaveButton.setBackground(new java.awt.Color(0, 63, 105));\n SaveButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n SaveButton.setForeground(new java.awt.Color(191, 182, 172));\n SaveButton.setText(\"Save\");\n SaveButton.setMaximumSize(new java.awt.Dimension(100, 26));\n SaveButton.setMinimumSize(new java.awt.Dimension(75, 26));\n SaveButton.setPreferredSize(new java.awt.Dimension(75, 26));\n SaveButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SaveButtonActionPerformed(evt);\n }\n });\n\n CancelButton.setBackground(new java.awt.Color(0, 63, 105));\n CancelButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n CancelButton.setForeground(new java.awt.Color(191, 182, 172));\n CancelButton.setText(\"Cancel\");\n CancelButton.setMaximumSize(new java.awt.Dimension(100, 26));\n CancelButton.setMinimumSize(new java.awt.Dimension(90, 26));\n CancelButton.setPreferredSize(new java.awt.Dimension(90, 26));\n CancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CancelButtonActionPerformed(evt);\n }\n });\n\n ExtraLabel5.setBackground(new java.awt.Color(255, 255, 255));\n ExtraLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ExtraLabel5.setForeground(new java.awt.Color(0, 112, 185));\n ExtraLabel5.setText(\"Used to remove extreme differences between the model \");\n\n ExtraLabel6.setBackground(new java.awt.Color(255, 255, 255));\n ExtraLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ExtraLabel6.setForeground(new java.awt.Color(0, 112, 185));\n ExtraLabel6.setText(\"and observations and/or apply an upper and lower limit \");\n\n ExtraLabel7.setBackground(new java.awt.Color(255, 255, 255));\n ExtraLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ExtraLabel7.setForeground(new java.awt.Color(0, 112, 185));\n ExtraLabel7.setText(\"criteria on data used in the statstical analyses.\");\n\n ResetButton.setBackground(new java.awt.Color(0, 63, 105));\n ResetButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n ResetButton.setForeground(new java.awt.Color(191, 182, 172));\n ResetButton.setText(\"Reset\");\n ResetButton.setMaximumSize(new java.awt.Dimension(100, 26));\n ResetButton.setMinimumSize(new java.awt.Dimension(100, 26));\n ResetButton.setPreferredSize(new java.awt.Dimension(80, 26));\n ResetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ResetButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(QCLimitSettingsLabel)\n .addComponent(DailyBarPlotOptionsLabel)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(RunNameLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(RunNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ExtraLabel6)\n .addComponent(ExtraLabel7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ErrorTempLabel)\n .addGap(44, 44, 44)\n .addComponent(ErrorTempTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ErrorMoistureLabel)\n .addGap(78, 78, 78)\n .addComponent(ErrorMoistureTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ErrorWindSpeedLabel)\n .addGap(53, 53, 53)\n .addComponent(ErrorWindSpeedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ErrorRelativeHumidityLabel)\n .addGap(12, 12, 12)\n .addComponent(ErrorRelativeHumidityTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ResetButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(SaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ErrorTempUnitLabel)\n .addComponent(ErrorWindSpeedUnitLabel)\n .addComponent(ErrorMoistureUnitLabel)\n .addComponent(ErrorRelativeHumidityUnitLabel)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(MoistureLimitLowerLabel)\n .addGap(46, 46, 46)\n .addComponent(MoistureLimitLowerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(WindSpeedLimitUpperLabel)\n .addGap(23, 23, 23)\n .addComponent(WindSpeedLimitUpperTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(WindSpeedLimitLowerLabel)\n .addGap(21, 21, 21)\n .addComponent(WindSpeedLimitLowerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(MoistureLimitUpperLabel)\n .addGap(48, 48, 48)\n .addComponent(MoistureLimitUpperTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(TemperatureLimitLowerLabel)\n .addGap(12, 12, 12)\n .addComponent(TemperatureLimitLowerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(TemperatureLimitUpperLabel)\n .addGap(14, 14, 14)\n .addComponent(TemperatureLimitUpperTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TemperaureLimitUpperUnitLabel)\n .addComponent(MoistureLimitLowerUnitLabel)\n .addComponent(MoistureLimitUpperUnitLabel)\n .addComponent(WindSpeedLimitLowerUnitLabel)\n .addComponent(WindSpeedLimitUpperUnitLabel)\n .addComponent(TemperaureLimitLowerUnitLabel))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ExtraLabel5, javax.swing.GroupLayout.Alignment.LEADING)))\n .addContainerGap(16, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(DailyBarPlotOptionsLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(RunNameLabel)\n .addComponent(RunNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(QCLimitSettingsLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ExtraLabel5)\n .addGap(0, 0, 0)\n .addComponent(ExtraLabel6)\n .addGap(0, 0, 0)\n .addComponent(ExtraLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TemperatureLimitLowerLabel)\n .addComponent(TemperaureLimitLowerUnitLabel)\n .addComponent(TemperatureLimitLowerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TemperatureLimitUpperLabel)\n .addComponent(TemperatureLimitUpperTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TemperaureLimitUpperUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(MoistureLimitLowerLabel)\n .addComponent(MoistureLimitLowerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(MoistureLimitLowerUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(MoistureLimitUpperLabel)\n .addComponent(MoistureLimitUpperTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(MoistureLimitUpperUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(WindSpeedLimitLowerLabel)\n .addComponent(WindSpeedLimitLowerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(WindSpeedLimitLowerUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(WindSpeedLimitUpperLabel)\n .addComponent(WindSpeedLimitUpperTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(WindSpeedLimitUpperUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ErrorTempLabel)\n .addComponent(ErrorTempTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ErrorTempUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ErrorWindSpeedLabel)\n .addComponent(ErrorWindSpeedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ErrorWindSpeedUnitLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ErrorMoistureTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ErrorMoistureUnitLabel)\n .addComponent(ErrorMoistureLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ErrorRelativeHumidityLabel)\n .addComponent(ErrorRelativeHumidityTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ErrorRelativeHumidityUnitLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(SaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(CancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ResetButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 504, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public GraphView() {\r\n graphModel = new GraphModel();\r\n graphModel.setNoOfChannels(0);\r\n graphModel.setXLength(1);\r\n initializeGraph();\r\n add(chartPanel);\r\n setVisible(true);\r\n }", "private void initBarChart() {\n\t\tBarChart<String, Number> chartLinguagens = new BarChart<String, Number>(new CategoryAxis(), new NumberAxis());\n\t\t// define o espaçamento entre as barras.\n\t\tchartLinguagens.setCategoryGap(30);\n\t\t// inserindo o title do grafico\n\t\tchartLinguagens.setTitle(\"Ranking de Linguagens de Programação Mar/2013\");\n\t\t// seta nome e valor de cada linguagem apresentada no grafico\n\t\tXYChart.Data<String, Number> dataJava = new XYChart.Data<String, Number>(\"Java\", 18.156);\n\t\tXYChart.Data<String, Number> dataC = new XYChart.Data<String, Number>(\"C\", 17.141);\n\t\tXYChart.Data<String, Number> dataObjectiveC = new XYChart.Data<String, Number>(\"Objective-C\", 10.230);\n\t\tXYChart.Data<String, Number> dataCPlus = new XYChart.Data<String, Number>(\"C++\", 9.115);\n\t\tXYChart.Data<String, Number> dataCSharp = new XYChart.Data<String, Number>(\"C#\", 6.597);\n\t\tXYChart.Series<String, Number> seriesData = new XYChart.Series<String, Number>();\n\t\t// rodapé ???\n\t\tseriesData.setName(\"Porcentagem (%)\");\n\n\t\tseriesData.getData().addAll(dataJava, dataC, dataObjectiveC, dataCPlus, dataCSharp);\n\n\t\tchartLinguagens.getData().add(seriesData);\n\t\t/* Indicar o BarChart em um painel principal... */\n\t\tpane.getChildren().add(chartLinguagens);\n\t}", "public void getPaedCommodSTKA(final String mUid,final String mYear, final String mWeekNo){\n mCombComdtySTKC = new CombComdtySTKC() {\n @Override\n protected void onPostExecute(String results) {\n // dialog.dismiss();\n if (!results.equalsIgnoreCase(\"error\")) {\n try {\n JSONObject objAdults = new JSONObject(results);\n if(objAdults.getString(\"status\").equalsIgnoreCase(\"ok\")) {\n Log.e(\"here CombData\", \"\"+results);\n JSONArray mRes = objAdults.getJSONArray(\"results\");\n\n String[] weeks = new String[mRes.length()];\n\n for(int i= 0; i< mRes.length();i++){\n JSONArray array = mRes.getJSONArray(i);\n ClientRisk.add(new BarEntry(i+1, array.getInt(2)));\n StockoutRates.add(new Entry(i+1,(float) array.getDouble(1)));\n ReportingRates.add(new Entry(i+1, (float) array.getDouble(3)));\n weeks[i] = array.getString(0);\n\n }\n Collections.sort(ClientRisk, new EntryXComparator());\n Collections.sort(StockoutRates, new EntryXComparator());\n Collections.sort(ReportingRates, new EntryXComparator());\n mChart.setDrawGridBackground(true);\n mChart.setDrawBarShadow(false);\n mChart.setClickable(false);\n mChart.setHighlightFullBarEnabled(false);\n // draw bars behind lines\n mChart.setDrawOrder(new CombinedChart.DrawOrder[]{\n CombinedChart.DrawOrder.BAR, CombinedChart.DrawOrder.LINE\n });\n\n mChart.setOnTouchListener(new View.OnTouchListener(){\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return false;\n }\n });\n //Set the Legends Orientation\n Legend l = mChart.getLegend();\n l.setWordWrapEnabled(true);\n l.setVerticalAlignment(Legend.LegendVerticalAlignment.BOTTOM);\n l.setHorizontalAlignment(Legend.LegendHorizontalAlignment.CENTER);\n l.setOrientation(Legend.LegendOrientation.HORIZONTAL);\n\n //Set Right And Left Axis\n YAxis rightAxis = mChart.getAxisRight();\n rightAxis.setDrawGridLines(false);\n rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)\n //rightAxis.setAxisMaximum(80000f);\n\n YAxis leftAxis = mChart.getAxisLeft();\n leftAxis.setDrawGridLines(false);\n leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)\n leftAxis.setAxisMaximum(80f);\n\n //Set X-Axis Lables\n XAxis xAxis = mChart.getXAxis();\n xAxis.setAxisMinimum(0f);\n xAxis.setGranularity(1f);\n xAxis.setValueFormatter(new IndexAxisValueFormatter(weeks));\n xAxis.setLabelRotationAngle(45);\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setGranularityEnabled(true);\n xAxis.setLabelCount(12);\n\n\n\n CombinedData combdata = new CombinedData();\n combdata.setData(generateLineData());\n combdata.setData(generateLineData2());\n combdata.setData(generateBarData());\n xAxis.setAxisMaximum(combdata.getXMax() + 0.25f);\n mChart.setData(combdata);\n mChart.invalidate();\n\n\n\n }else{\n Toast.makeText(getActivity(), \"message failed!\", Toast.LENGTH_SHORT).show();\n if(dialog.isShowing()){\n dialog.dismiss();\n }\n }\n } catch (JSONException localJSONException) {\n Log.e(\"gettingjson\", localJSONException.toString());\n localJSONException.printStackTrace();\n if(dialog.isShowing()){\n dialog.dismiss();\n }\n }\n }\n }\n @Override\n protected void onPreExecute()\n {\n //dialog = ProgressDialog.show(getActivity(), \"\", \"Loading Data...\", true);\n //dialog.setCancelable(true);\n }\n\n };\n mCombComdtySTKC.execute(mUid,mYear,mWeekNo);\n\n }", "public void createPieChart(HashMap<String,Integer> mapValues) {\n\t PieDataset dataset = createDataset(mapValues);\n\t JFreeChart chart = ChartFactory.createPieChart(\n\t \"Quality of Detection Pie Chart\",\n\t dataset,\n\t true, \n\t true,\n\t false);\n\t PieSectionLabelGenerator labelGenerator = new StandardPieSectionLabelGenerator(\n\t \"Quality {0} : ({2})\", new DecimalFormat(\"0\"), new DecimalFormat(\"0%\"));\n\t ((PiePlot) chart.getPlot()).setLabelGenerator(labelGenerator);\n\t ChartPanel panel = new ChartPanel(chart); \n\t JFrame jframe = new JFrame();\n\t jframe.add(panel);\n\t jframe.setVisible(true);\n\t jframe.pack();\n\t jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t }", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "private void createGraph() {\r\n graph = new Graph(SHELL, SWT.NONE);\r\n\r\n final GridData gridData = new GridData();\r\n gridData.horizontalAlignment = GridData.FILL;\r\n gridData.verticalAlignment = GridData.FILL;\r\n gridData.grabExcessHorizontalSpace = true;\r\n gridData.grabExcessVerticalSpace = true;\r\n gridData.heightHint = DEFAULT_GRAPH_SIZE;\r\n gridData.widthHint = DEFAULT_GRAPH_SIZE;\r\n graph.setLayoutData(gridData);\r\n }", "public KomisiBPUI() {\n initComponents();\n setLocationRelativeTo(null);\n tglPesanan.setDate(new GregorianCalendar().getTime());\n }", "public void createRevenueGraph()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tint woGraphPoints;\n\t\tString costTyptemp;\n\t\tString costGraph_Ext;\n\t\tdouble woRevenueTemp; \n\t\tdouble strRevenueTemp;\n\t\tString sGraphTitle;\n\t\tString sLeftTitle; \n\n\t\tint noOfRows = itemset0.countRows(); \n\t\trevGraphInNewWind = false;\n\t\tint wono = sWorkOrderNoTree;\n\n\t\tString[] woCostType = new String[noOfRows]; \n\t\tdouble[] woRevenue = new double[noOfRows];\n\t\tdouble[] structureRevenue = new double[noOfRows];\n\n\t\titemset0.first();\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\twoRevenue[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDREVENUESINGLE\");\n\t\t\twoCostType[i] = itemset0.getRow().getValue(\"SWOCOSTTYPE\");\n\t\t\tstructureRevenue[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDREVENUE\");\n\n\t\t\titemset0.forward(1);\n\t\t}\n\n\t\twoGraphPoints = 6;\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\tif (woRevenue[i]>0 || structureRevenue[i]>0)\n\t\t\t\tgraphflagWo = 1;\n\t\t}\n\n\t\tsGraphTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMWOREVTITLE: Work Order Revenue\");\n\t\tsLeftTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMAMOUNTTR: Amount\");\n\n\t\trevGraphInNewWind = true;\n\n\t\tdrawGraphPic(wono,sGraphTitle,sLeftTitle,noOfRows,woCostType,woRevenue,structureRevenue); \n\t}", "private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}", "private void nastavGraf() {\n barChart = (BarChart) findViewById(R.id.bargraph);\n\n ArrayList<BarEntry> barEntries = new ArrayList<>();\n ArrayList<String> theDates = new ArrayList<>();\n\n // ziskame zaznamy z tabuľky Steps a naplnime graf\n List<HashMap<String, String>> zoznam = mDatabaseHelper.getSteps();\n HashMap<String, String> mapa = new HashMap<>();\n for (int i = 0; i < zoznam.size(); i++) {\n if (i == 3) break;\n mapa = zoznam.get(i);\n theDates.add(mapa.get(\"datum\"));\n barEntries.add(new BarEntry(Float.parseFloat(mapa.get(\"kroky\")), i));\n }\n\n BarDataSet barDataSet = new BarDataSet(barEntries, \"Steps\");\n int redColorValue = Color.parseColor(\"#ff1744\");\n barDataSet.setColor(redColorValue);\n BarData theData = new BarData(theDates, barDataSet);\n\n barChart.setData(theData);\n barChart.getLegend().setEnabled(false);\n barChart.setDescription(null);\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tchart = new ComboChart();\r\n\t\t\t\tpanel.add(chart);\r\n\t\t\t\tisReady = true;\r\n\t\t\t}", "public CoreChart()\n {\n super(\"org.apache.myfaces.trinidad.Chart\");\n }", "public Form_Barang() {\n initComponents();\n model = new DefaultTableModel();\n \n barang.setModel(model);\n model.addColumn(\"KODE PRODUK\");\n model.addColumn(\"NAMA PRODUK\");\n model.addColumn(\"MERK BARANG\");\n model.addColumn(\"JUMLAH STOK\");\n model.addColumn(\"HARGA\");\n getDataProduk();\n \n }", "public Chart initializeChart();", "public GraphController(GUI view){\r\n\t\tview.setGvWindowListener(new GvWindowListener(){\r\n\t\t\tpublic void buttonClicked(GraphingEvent ge){\r\n\t\t\t\tmodel = ge.getDJAI_GV();\r\n\t\t\t\tmodel.setDate(ge.getDJAI_GV().getDate());\r\n\t\t\t\tmodel.setValue(ge.getDJAI_GV().getValue());\r\n\t\t\t\tSystem.out.println(ge.getSource());\r\n\t\t\t\t\r\n\t\t\t\tData = new ArrayList<String>();\r\n\t\t\t\tData = DataSaver.dowArray_C;\r\n\t\t\t\t\r\n\t\t\t\tvalue = new double[Data.size()];\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < Data.size(); i++){\r\n\t\t\t\t\tvalue[i] = Double.parseDouble(Data.get(i).substring(10));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tParent root;\r\n\t\t\t\tStage stage = new Stage();\r\n\t\t\t\tstage.setTitle(\"Graph Data\");\r\n\t\t\t\t\r\n\t\t\t\tfinal CategoryAxis xAxis = new CategoryAxis();\r\n\t\t\t final NumberAxis yAxis = new NumberAxis();\r\n\t\t\t xAxis.setLabel(\"Number of Month\");\r\n\t\t\t final LineChart<String, Number> lineChart = new LineChart<String, Number>(\r\n\t\t\t xAxis, yAxis);\t\t \r\n\t\t\t xAxis.setLabel(\"Date\");\r\n\t\t\t xAxis.setTickMarkVisible(false);\r\n\t\t\t \r\n\t\t\t yAxis.setLabel(\"DJAI Value\");\r\n\t\t\t yAxis.setAutoRanging(false);\r\n\t\t\t yAxis.setTickMarkVisible(false);\r\n\t\t\t yAxis.setUpperBound(20000);\r\n\t\t\t yAxis.setLowerBound(6000);\r\n\t\t\t yAxis.setTickUnit(2000);\r\n\t\t\t yAxis.setMinorTickCount(14);\r\n\t\t\t XYChart.Series<String, Number> series = new XYChart.Series<String, Number>();\r\n\t\t\t series.setName(\"DJAI Chart \");\r\n\t\t\t\r\n\t\t\t for(int i = 0; i < Data.size(); i++){\r\n\t\t\t \tseries.getData().add(new XYChart.Data<String, Number>(Data.get(i).substring(0, 10),\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t value[i]));\r\n\t\t\t }\r\n\t\t\t lineChart.setCreateSymbols(false);\r\n\t\t\t lineChart.getData().add(series);\r\n\t\t\t\tlineChart.isResizable();\r\n\t\t\t Scene scene = new Scene(lineChart,14000,600);\r\n\t\t\t stage.setScene(scene);\r\n\t\t\t\tstage.show();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "public static void createGraph(String[] xAxisLabels, Rx_DataSet[] values, String xAxisTitle, String yAxisTitle) {\n AxisChart ac = GraphFunctions.createChart(xAxisLabels, values, xAxisTitle, yAxisTitle, 1, 0);\n new GraphWindow(ac).setVisible(true);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tDefaultCategoryDataset data = new DefaultCategoryDataset();\n\t\t \n\t\t for(int g = 0;g<i;g++){\n\t\t String s = String.valueOf(datas[1][g]);\n\t\t data.addValue(this.datas[2][g], this.name[g], s);\n\t\t }\n\t\t \n\t\t if(e.getSource() == button1){\n\t\t JFreeChart chart = ChartFactory.createLineChart(\"Import Volume\",\n\t\t \"Year\",\n\t\t \"Ton\",\n\t\t data,\n\t\t PlotOrientation.VERTICAL,\n\t\t true,\n\t\t false,\n\t\t false);\n\t\t ChartPanel cpanel = new ChartPanel(chart);\n\t\t add(cpanel, BorderLayout.CENTER);\n\t\t setVisible(true);\n\t\t } else if(e.getSource() == button2){\n\t\t\t JFreeChart chart = ChartFactory.createBarChart(\"Import Volume\",\n \"Year\",\n \"Ton\",\n data,\n PlotOrientation.VERTICAL,\n true,\n false,\n false);\n\t\t\t ChartPanel cpanel = new ChartPanel(chart);\n\t\t\t add(cpanel, BorderLayout.CENTER);\n\t\t\t setVisible(true);\n} \n\n\t\t\n\t}", "private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }", "@Override\n\tpublic GraphicalView makeChart(Context context) {\n\t\tXYMultipleSeriesRenderer renderer = getRenderer(context);\n\t\tchartView = ChartFactory.getBarChartView(context, getDataset(),renderer, Type.DEFAULT);\n\t\t// Return the view so it can be showed.\n\t\treturn chartView;\n\t}", "private BarData generateDataBar() {\n\n ArrayList<BarEntry> entries = new ArrayList<>();\n\n for (int i = 0; i < 12; i++) {\n entries.add(new BarEntry(i, (int) (Math.random() * 70) + 30));\n }\n\n BarDataSet d = new BarDataSet(entries, \"New DataSet 1\");\n // 设置相邻的柱状图之间的距离\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n // 设置高亮的透明度\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n return cd;\n }", "public void goToBarChart(ActionEvent event) throws SQLException {\n\t\tconn = MySqlConnection.ConnectDb();\n\n\t\tCategoryAxis xAxis = new CategoryAxis();\n\t\txAxis.setLabel(\"Category\");\n\t\tNumberAxis yAxis = new NumberAxis();\n\t\tyAxis.setLabel(\"Amount\");\n\n\t\tBarChart<String, Number> barChart = new BarChart<String, Number>(xAxis, yAxis);\n\n\t\tXYChart.Series<String, Number> xyChart = new XYChart.Series<String, Number>();\n\t\t\n\t\tString sql = \"select category, amount from Account order by amount asc\";\n\t\tps = conn.prepareStatement(sql);\n\t\trs = ps.executeQuery();\n\n\t for(Account acc: lists) {\n\t xyChart.getData().add(new XYChart.Data<String, Number>(acc.getCategory(), acc.getAmount()));\n\t }\n\n\t\tbarChart.getData().add(xyChart);\n\t\tbarChart.setLegendVisible(false);\n\n\t\tScene scene = new Scene(barChart, 500, 500);\n\t\tStage stage = new Stage();\n\t\tstage.setScene(scene);\n\t\tstage.show();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(153, 255, 153));\n jPanel1.setForeground(new java.awt.Color(255, 255, 51));\n jPanel1.setName(\"chartPanel\"); // NOI18N\n jPanel1.setPreferredSize(new java.awt.Dimension(486, 381));\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jButton1.setText(\"jButton1\");\n jButton1.setName(\"button1\"); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1, java.awt.BorderLayout.PAGE_START);\n\n jLabel1.setText(\"J Frame Chart Test\");\n jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(131, 131, 131)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 486, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(835, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(124, Short.MAX_VALUE))\n );\n\n pack();\n }", "public fuzzyChart() {\n initComponents();\n }", "public QBP_Q21() {\n super();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tint month;\n\t\tdouble maxtempereture,monthlytempereture,mintempereture;\n\t\tResultSet rs;\n\t\tlib.MySQL mysql = new lib.MySQL();\n\t\trs = mysql.selectAll();\n\t\tDefaultCategoryDataset data = new DefaultCategoryDataset();\n\t\ttry{\n\t\t\twhile(rs.next()){\n\t\t\t\tmonth = rs.getInt(\"Month\");\n\t\t\t\tmaxtempereture = rs.getDouble(\"MaxTempereture\");\n\t\t\t\tmonthlytempereture = rs.getDouble(\"MonthkyTempereture\");\n\t\t\t\tmintempereture = rs.getDouble(\"MinTempereture\");\n System.out.println(\"月:\" + month);\n System.out.println(\"最高気温:\" + maxtempereture);\n System.out.println(\"月間平均気温:\" + monthlytempereture);\n System.out.println(\"最低気温:\" + mintempereture);\n data.addValue(maxtempereture,\"MaxTempereture\",month+\"\");\n data.addValue(monthlytempereture,\"MonthlyTempereture\",month+\"\");\n data.addValue(mintempereture,\"MinTempereture\",month+\"\");\n\t\t }\n\t\t}catch(SQLException et){}\n\t\t JFreeChart chart = \n\t\t\t ChartFactory.createLineChart(\"TOKYO TEMPERETURE\",\n\t\t\t \"month\",\n\t\t\t \"tempereture\",\n\t\t\t data,\n\t\t\t PlotOrientation.VERTICAL,\n\t\t\t true,\n\t\t\t false,\n\t\t\t false);\n \n\n ChartPanel cpanel = new ChartPanel(chart);\n panel1.add(cpanel);\n cardlayout.next(this);\n\t}", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public JasperDesign create()\n\t{\n\t\tJasperDesign design = new JasperDesign();\n\t\tdesign.setName(\"demoReport\");\n\t\tJRDesignQuery query = new JRDesignQuery();\n\t\tquery.setText(\"//*\");\n\t\tquery.setLanguage(\"XPath\");\n\t\tdesign.setQuery(query);\n\t\tdesign.setBottomMargin(72);\n\t\tdesign.setTopMargin(72);\n\t\tdesign.setLeftMargin(72);\n\t\tdesign.setRightMargin(72);\n\t\t\n\t\t//A JRDesignBand can represent different report parts like the DetailBand, the PageHeader/Footer, ...\n\t\tJRDesignBand header = new JRDesignBand();\n\t\theader.setHeight(50);\n\t\t\n\t\t//Example of a dynamic text field\n\t\tJRDesignTextField textField=new JRDesignTextField();\n\t\ttextField.setStretchWithOverflow(true);\n\t\ttextField.setBlankWhenNull(true);\n\t\ttextField.setX(0);\n\t\ttextField.setY(4);\n\t\ttextField.setWidth(100);\n\t\ttextField.setHeight(13);\n\t\ttextField.setKey(\"header\");\n\t\n\t\t//TextField expression\n\t\tJRDesignExpression designExpression=new JRDesignExpression();\n\t\tdesignExpression.setValueClass(String.class);\n\t\tdesignExpression.setText(\"\\\"Welcome to the report.\\\"\");\n\n\t\t//Setting the expression\n\t\ttextField.setExpression(designExpression);\n\t\t\n\t\t//Add element to header band\n\t\theader.getChildren().add(textField);\n\t\t\n\t\t//A band is then set as a part of the report design\n\t\tdesign.setPageHeader(header);\n\t\treturn design;\n\t}", "@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}", "public Visualizador() {\n initComponents();\n inicializar();\n }", "public interface ChartBuilder {\n\n /**\n * @return an AnalyticsTableModel containing the source data for the chart\n */\n AnalyticsTableModel buildTableModel( ChartViewConfiguration chartViewConfiguration, BeanCollection beanCollection) throws InvalidColumnException;\n\n /**\n * @return the JFreeChart instance to display\n */\n JFreeChart buildChart( ChartViewConfiguration chartViewConfiguration, KeyedColumnTableModel chartTableModel) throws InvalidColumnException;\n\n /**\n * @return a list of components which will be displayed above the chart, typically these will be filters or controls which change the way the chart is presented\n */\n public java.util.List<JComponent> getViewControls(ChartViewConfiguration chartViewConfiguration, AnalyticsTableModel chartTableModel, JFreeChart freeChart) throws InvalidColumnException;\n\n /**\n * @return a ChartPanel for the given chart\n */\n ChartPanel buildChartPanel(JFreeChart chart);\n}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n table = new javax.swing.JTable();\n chartPanel = new javax.swing.JPanel();\n returnMaintenanceButton = new javax.swing.JButton();\n categoryTextField = new javax.swing.JTextField();\n batchTextField = new javax.swing.JTextField();\n userTextField = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker();\n jXDatePicker2 = new org.jdesktop.swingx.JXDatePicker();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n searchButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Historial de productos\");\n\n jPanel1.setBackground(new java.awt.Color(153, 204, 153));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n table.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Producto\", \"Bodega\", \"Categoría\", \"Lote\", \"Operador\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, true, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(table);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 210, 521, 233));\n\n javax.swing.GroupLayout chartPanelLayout = new javax.swing.GroupLayout(chartPanel);\n chartPanel.setLayout(chartPanelLayout);\n chartPanelLayout.setHorizontalGroup(\n chartPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 460, Short.MAX_VALUE)\n );\n chartPanelLayout.setVerticalGroup(\n chartPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 374, Short.MAX_VALUE)\n );\n\n jPanel1.add(chartPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(633, 80, -1, -1));\n\n returnMaintenanceButton.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n returnMaintenanceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/salir-con-boton-en-esquema.png\"))); // NOI18N\n returnMaintenanceButton.setText(\"Salir\");\n returnMaintenanceButton.setBorderPainted(false);\n returnMaintenanceButton.setContentAreaFilled(false);\n returnMaintenanceButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n returnMaintenanceButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n returnMaintenanceButtonActionPerformed(evt);\n }\n });\n jPanel1.add(returnMaintenanceButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(1220, 500, -1, -1));\n\n categoryTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n categoryTextFieldKeyTyped(evt);\n }\n });\n jPanel1.add(categoryTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 180, 72, -1));\n\n batchTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n batchTextFieldKeyTyped(evt);\n }\n });\n jPanel1.add(batchTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 180, 65, -1));\n\n userTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n userTextFieldKeyTyped(evt);\n }\n });\n jPanel1.add(userTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 180, 78, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 13)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/crecimiento.png\"))); // NOI18N\n jLabel1.setText(\"Historial de productos\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(633, 37, 246, -1));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/lupa-para-buscar.png\"))); // NOI18N\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 180, -1, -1));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/lupa-para-buscar.png\"))); // NOI18N\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 180, -1, -1));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/lupa-para-buscar.png\"))); // NOI18N\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 180, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 13)); // NOI18N\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/tareas.png\"))); // NOI18N\n jLabel5.setText(\"Lista de productos entregados\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(194, 25, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 13)); // NOI18N\n jLabel6.setText(\"Rango de fechas\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 60, -1, -1));\n jPanel1.add(jXDatePicker1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, 140, -1));\n jPanel1.add(jXDatePicker2, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, 140, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel7.setText(\"De:\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 110, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel8.setText(\"a:\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 110, -1, -1));\n\n searchButton.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n searchButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/lupa-para-buscar.png\"))); // NOI18N\n searchButton.setText(\"Buscar\");\n searchButton.setBorderPainted(false);\n searchButton.setContentAreaFilled(false);\n searchButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n searchButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n searchButtonMouseClicked(evt);\n }\n });\n searchButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n searchButtonActionPerformed(evt);\n }\n });\n jPanel1.add(searchButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 110, -1, -1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1321, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 554, Short.MAX_VALUE)\n );\n\n pack();\n }", "public void MakeXYSpline() {\n\t\tXYSplineButton = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(\n\t\t\t\t GetXYSplineChartImage())));\n\t\tXYSplineButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new XYSplineChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"XYSpline Chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new XYSplineChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(XYSplineButton);\t\n\t}", "public ChartFrame(Chart chart) {\r\n\t\tthis.chart = chart;\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[r].length; c++) {\r\n\t\t\t\tJLabel label = new JLabel();\r\n\t\t\t\tlabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n\t\t\t\tseatGrid[r][c] = label;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tremoveBtn = new JButton(\"Remove\");\r\n\t\tremoveBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tonRemoveClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddBtn = new JButton(\"Add\");\r\n\t\taddBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tonAddClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tswapBtn = new JButton(\"Swap\");\r\n\t\tswapBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tonSwapClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tloadBtn = new JButton(\"Load\");\r\n\t\tloadBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tonLoadClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmoveBtn = new JButton(\"Move\");\r\n\t\tmoveBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tonMoveClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));\r\n\t\tpanel.setLayout(new GridLayout(7, 5));\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[r].length; c++) {\r\n\t\t\t\tpanel.add(seatGrid[r][c]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < seatGrid[0].length; i++) {\r\n\t\t\tpanel.add(Box.createHorizontalGlue());\r\n\t\t}\r\n\r\n\t\tpanel.add(removeBtn);\r\n\t\tpanel.add(addBtn);\r\n\t\tpanel.add(loadBtn);\r\n\t\tpanel.add(swapBtn);\r\n\t\tpanel.add(moveBtn);\r\n\r\n\t\tadd(panel);\r\n\t\tsetSize(500, 400);\r\n\t\tsetVisible(true);\r\n\t\tsetTitle(\"Seating Chart\");\r\n\t\tupdate();\r\n\r\n\t}", "@Test\n public void test07() throws Throwable {\n BarRenderer barRenderer0 = new BarRenderer();\n float float0 = 787.887F;\n Font font0 = SpiderWebPlot.DEFAULT_LABEL_FONT;\n JFreeChart jFreeChart0 = null;\n try {\n jFreeChart0 = new JFreeChart(\"\", font0, (Plot) null, false);\n } catch(NullPointerException e) {\n //\n // Null 'plot' argument.\n //\n assertThrownBy(\"org.jfree.chart.JFreeChart\", e);\n }\n }", "void setPiechart() {\r\n\t\tOrderA oa = new OrderA();\r\n\r\n\t\tMap<String, Integer> data = oa.getOrders();\r\n\t\tPieChart pieChart = new PieChart();\r\n\r\n\t\tlbltotalorder.setText(\"\" + oa.totalord);\r\n\r\n\t\tPieChart.Data slice1 = new PieChart.Data(\"Pending\", data.get(\"pen\"));\r\n\t\tPieChart.Data slice2 = new PieChart.Data(\"Recieved\", data.get(\"rec\"));\r\n\t\tPieChart.Data slice3 = new PieChart.Data(\"Running\", data.get(\"run\"));\r\n\t\tPieChart.Data slice4 = new PieChart.Data(\"Completed\", data.get(\"com\"));\r\n\r\n\t\tpieChart.getData().add(slice1);\r\n\t\tpieChart.getData().add(slice2);\r\n\t\tpieChart.getData().add(slice3);\r\n\t\tpieChart.getData().add(slice4);\r\n\r\n\t\tpieChart.setPrefSize(400, 250);\r\n\r\n\t\tpieChart.setLegendSide(Side.LEFT);\r\n\t\tpieChart.setStartAngle(30);\r\n\r\n\t\tpierect.getChildren().addAll(pieChart);\r\n\r\n\t}", "private Pannello creaPanDate() {\n /* variabili e costanti locali di lavoro */\n Pannello panDate = null;\n Campo campoDataInizio;\n Campo campoDataFine;\n JButton bottone;\n ProgressBar pb;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(DialogoStatistiche.nomeDataIni);\n campoDataInizio.decora().eliminaEtichetta();\n campoDataInizio.decora().etichettaSinistra(\"dal\");\n campoDataInizio.decora().obbligatorio();\n campoDataFine = CampoFactory.data(DialogoStatistiche.nomeDataFine);\n campoDataFine.decora().eliminaEtichetta();\n campoDataFine.decora().etichettaSinistra(\"al\");\n campoDataFine.decora().obbligatorio();\n\n /* bottone esegui */\n bottone = new JButton(\"Esegui\");\n bottone.setOpaque(false);\n this.setBottoneEsegui(bottone);\n bottone.addActionListener(new DialogoStatistiche.AzioneEsegui());\n bottone.setFocusPainted(false);\n\n /* progress bar */\n pb = new ProgressBar();\n this.setProgressBar(pb);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.setAllineamento(Layout.ALLINEA_CENTRO);\n panDate.creaBordo(\"Periodo di analisi\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(bottone);\n panDate.add(Box.createHorizontalGlue());\n panDate.add(pb);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return panDate;\n }", "public CetakPenjualan() {\n initComponents();\ntampilDataPen();\nthis.setResizable(false);\n }", "public QLDV() {\n initComponents();\n }", "private void createBarChart(FoodEmissions emissions, Context context) {\n ArrayList<BarEntry> barEntries = new ArrayList<>();\n ArrayList<String> labelNames = new ArrayList<>();\n labelNames.add(\"Meat\");\n labelNames.add(\"Dairy\");\n labelNames.add(\"Plant\");\n labelNames.add(\"Total\");\n barEntries.add(new BarEntry(0, Float.parseFloat(emissions.getMeat())));\n barEntries.add(new BarEntry(1, Float.parseFloat(emissions.getDairy())));\n barEntries.add(new BarEntry(2, Float.parseFloat(emissions.getPlant())));\n barEntries.add(new BarEntry(3, Float.parseFloat(emissions.getTotal())));\n LayoutInflater li = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n RelativeLayout relativeLayout = (RelativeLayout) li.inflate(R.layout.emission_chart_layout, null);\n BarChart chart = relativeLayout.findViewById(R.id.bar_chart);\n //Customization to the BarCharts look\n BarDataSet set = new BarDataSet(barEntries, \"CO2 Emissions (in Kg)\");\n set.setColors(ColorTemplate.COLORFUL_COLORS);\n set.setValueTextSize(20f);\n Description description = new Description();\n description.setText(\"\");\n chart.setDescription(description);\n BarData data = new BarData(set);\n chart.setData(data);\n Legend legend = chart.getLegend();\n legend.setTextSize(15f);\n XAxis xAxis = chart.getXAxis();\n xAxis.setValueFormatter(new IndexAxisValueFormatter(labelNames));\n xAxis.setPosition(XAxis.XAxisPosition.TOP);\n xAxis.setDrawGridLines(false);\n xAxis.setGranularity(1f);\n xAxis.setLabelCount(labelNames.size());\n AlertDialog builder = new AlertDialog.Builder(context)\n .setNegativeButton(\"Close\", null)\n .setView(relativeLayout)\n .setCancelable(false)\n .create();\n builder.show();\n }", "public JFreeChart createChart(IntervalXYDataset paramIntervalXYDataset) {\n\n\n JFreeChart jfreechart = ChartFactory.createXYBarChart(\n \"Spread Example\", //title\n \"Resource\", //xAxisLabel\n false, //dateAxis\n \"Timing\", //yAxisLabel\n paramIntervalXYDataset, //dataset\n PlotOrientation.VERTICAL, //orientation\n true, //legend\n true, //tooltips\n false); //urls\n\n\n\n XYPlot xyplot = (XYPlot) jfreechart.getPlot();\n\n xyplot.setBackgroundPaint(Color.white);\n xyplot.setRangeGridlinePaint(Color.darkGray);//vertical\n xyplot.setDomainGridlinePaint(Color.LIGHT_GRAY);//horizontal\n\n// xyplot.setDomainAxis(createTimeAxis());\n xyplot.setDomainAxis(createSymbolAxis());\n\n xyplot.setFixedLegendItems(createLegend());\n\n MyXYBarRenderer xyBarRenderer = new MyXYBarRenderer();\n xyBarRenderer.setUseYInterval(true);\n\n xyBarRenderer.setShadowVisible(false);\n\n xyBarRenderer.setDrawBarOutline(true);\n xyBarRenderer.setBaseOutlinePaint(Color.DARK_GRAY);\n\n xyBarRenderer.setBaseItemLabelFont(new Font(\"Arial\", Font.PLAIN, 10));\n\n xyBarRenderer.setMargin(0.2);\n xyplot.setRenderer(0, xyBarRenderer, true);\n\n//xyBarRenderer.\n\n\n MyXYBarPainter barPainter = new MyXYBarPainter((XYTaskDataset) paramIntervalXYDataset);\n barPainter.setPainterType(MyXYBarPainter.PainterType.GRADIENT);\n xyBarRenderer.setBarPainter(barPainter);\n\n\n\n //Item-Label:\n xyBarRenderer.setBaseItemLabelsVisible(true);\n xyBarRenderer.setBaseItemLabelGenerator(createItemLabelGenerator());\n xyBarRenderer.setBasePositiveItemLabelPosition(createItemLabelPosition());\n\n\n\n xyBarRenderer.setBaseToolTipGenerator(createTooltipGenerator());\n\n\n\n//PeriodAxis xaxis= new PeriodAxis(\"kk\");\n\n xyplot.setRangeAxis(createTimeAxis());\n// xyplot.setRangeAxis(createSymbolAxis());\n\n\n\n// DateAxis xaxis = new DateAxis();\n// xaxis.setVerticalTickLabels(true);\n// xyplot.setRangeAxis(xaxis);\n xyplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);\n\n// ChartUtilities.applyCurrentTheme(jfreechart);\n\n return jfreechart;\n }", "public Container createInterface(){\n\t\tChartTypeInterface.setLayout(new GridLayout(4,2,20,20));\n\t\t\n\t\tMakePie();\n\t\tMakeXYSpline();\n\t\tMakeStacked();\n\t\tMakeScatter();\n\t\tMakeLine();\n\t\tMakeBubble();\n\t\tMakeBar();\n\t\tMakeBar3D();\n\t\t\t\t\t\n\t\treturn ChartTypeInterface;\n\t}", "private void setCustomGraph(){\n\n // Set Touch, Drag and Scale to enable\n chart.setTouchEnabled(false);\n chart.setDragEnabled(false);\n chart.setScaleEnabled(false);\n\n // Controlling right side of y axis\n YAxis yAxisRight = chart.getAxisRight();\n yAxisRight.setEnabled(false);\n\n // Controlling left side of y axis\n YAxis yAxisLeft = chart.getAxisLeft();\n yAxisLeft.setGranularity(1f);\n\n yAxisLeft.setAxisLineColor(Color.TRANSPARENT);\n yAxisLeft.setDrawLabels(false);\n\n chart.getDescription().setEnabled(false);\n\n chart.getAxisLeft().setDrawGridLines(false);\n chart.getXAxis().setDrawGridLines(false);\n\n\n //Controlling X axis\n xAxis = chart.getXAxis();\n //Set the xAxis position to bottom\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n\n IAxisValueFormatter formatter = new IAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return weeks[(int) value];\n }\n };\n\n // minimum axis-step interval is 1\n xAxis.setGranularity(1f);\n xAxis.setValueFormatter(formatter);\n\n }", "public HighLowChart() {\n }", "public QATrackerView(){\n initComponents();\n addPanel();\n }", "public void MakeBubble() {\n\t\tBubbleButton = new JButton(\n\t\t\t\tnew ImageIcon(getClass().getResource(GetBubbleChartImage())));\n\t\tBubbleButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetColumns().length >= 3){\n\t\t\t\t\t\n\t\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\t\tGetHost().LeftPanelContent(new BubbleChart(\n\t\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\t\"Bubble Chart\", \n\t\t\t\t\t\tGetHost().GetColourScheme(), GetHost()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tGetHost().LeftPanelContent(new BubbleChart(\n\t\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\t\tGetHost().GetColourScheme(), GetHost()));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"You must have three columns selected to use this chart\", \n\t\t\t\t\t\"Bubble Chart Format\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(BubbleButton);\n\t}", "public mbvBoletinPeriodo() {\r\n }", "private void startEvaluation(IPartialPageRequestHandler aTarget, MarkupContainer aForm )\n {\n chartPanel = new ChartPanel(MID_CHART_CONTAINER, \n LoadableDetachableModel.of(this::renderChart));\n chartPanel.setOutputMarkupPlaceholderTag(true);\n chartPanel.setOutputMarkupId(true);\n \n aForm.addOrReplace(chartPanel);\n aTarget.add(chartPanel);\n }", "private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }", "@Override\r\n public void run() {\n chart = new PieChart();\r\n chart.setWidth(\"100px\");\r\n chart.setHeight(\"100px\");\r\n fp.add(chart);\r\n draw();\r\n }" ]
[ "0.67830783", "0.6440951", "0.64171904", "0.6384307", "0.6140701", "0.6120848", "0.59440607", "0.59415877", "0.59053797", "0.58849776", "0.58455074", "0.5830798", "0.57965404", "0.57696193", "0.5768055", "0.5757773", "0.5722407", "0.57077014", "0.56724936", "0.56449395", "0.56371135", "0.5620786", "0.5573635", "0.557048", "0.55517185", "0.55430484", "0.5541414", "0.551147", "0.5510715", "0.55051136", "0.55016613", "0.54973835", "0.5476245", "0.547298", "0.54669565", "0.5432717", "0.54233974", "0.53895956", "0.5387842", "0.5379894", "0.5377283", "0.5375331", "0.53734654", "0.5371503", "0.53714865", "0.535854", "0.53580004", "0.5351946", "0.5349531", "0.53388166", "0.5335367", "0.530532", "0.5289374", "0.5288764", "0.5275036", "0.52660483", "0.5257583", "0.52532965", "0.52516174", "0.5250187", "0.5241339", "0.52408296", "0.5240132", "0.52396685", "0.5228906", "0.5223365", "0.5222031", "0.5218121", "0.5210888", "0.5210533", "0.5204655", "0.5204168", "0.5200821", "0.52000386", "0.51954645", "0.51952016", "0.519484", "0.5191628", "0.5190594", "0.5189525", "0.5182923", "0.5177015", "0.5176392", "0.5174867", "0.51745623", "0.5171067", "0.51622856", "0.5158118", "0.5154638", "0.5141727", "0.5138022", "0.51362205", "0.513562", "0.5135475", "0.5135141", "0.5133964", "0.51327723", "0.5129432", "0.5118281", "0.51109177" ]
0.52347904
64
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenuItem1 = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 1133, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 671, Short.MAX_VALUE) ); jMenu1.setText("File"); jMenuItem1.setText("Save In.."); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); jMenu1.add(jMenuItem1); jMenuBar1.add(jMenu1); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }", "public frmAddIncidencias() {\n initComponents();\n }" ]
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458604", "0.6942849", "0.6935743", "0.6930747", "0.69286084", "0.6924837", "0.69246644", "0.6911876", "0.69103247", "0.68922365", "0.6891582", "0.68904996", "0.68901706", "0.6888661", "0.68829393", "0.6881672", "0.6880505", "0.68782157", "0.6875765", "0.6874406", "0.68711114", "0.6859388", "0.6856025", "0.68551815", "0.6855079", "0.6855076", "0.68530315", "0.68524104", "0.68524104", "0.6843717", "0.68364704", "0.6836458", "0.6828335", "0.68279964", "0.6826276", "0.68240345", "0.6823631", "0.68171996", "0.6816324", "0.68097955", "0.68088883", "0.68078303", "0.6807776", "0.680721", "0.680251", "0.6795605", "0.6794452", "0.67921954", "0.67907083", "0.678904", "0.6787817", "0.6787755", "0.67814714", "0.67663145", "0.6765024", "0.67649895", "0.6756559", "0.6754775", "0.6751848", "0.67506975", "0.67435455", "0.6738591", "0.6737042", "0.6735227", "0.6732907", "0.6726301", "0.6726003", "0.67197675", "0.67156976", "0.6714806", "0.6713657", "0.6708582", "0.67078584", "0.6705488", "0.6700733", "0.6699659", "0.6698679", "0.66974026", "0.6693979", "0.66902804", "0.6690275" ]
0.0
-1
Find function cycle using Brent's cycle detection algorithm.
private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) { int power = 1; int lam = 1; int t = x0; int h = func.applyAsInt(x0); // 'lam' will be equal to cycle length at the end of iteration while (t != h) { if (power == lam) { t = h; power *= 2; lam = 0; } h = func.applyAsInt(h); ++lam; } final int cycleLength = lam; t = x0; h = x0; // find star point for cycle for (int i = 0; i < lam; ++i) { h = func.applyAsInt(h); } while (t != h) { t = func.applyAsInt(t); h = func.applyAsInt(h); } return new FunctionCycle(t, cycleLength); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static FunctionCycle findCycleWithFloydsInternal(IntUnaryOperator func, int x0) {\n\n int t = func.applyAsInt(x0);\n int h = func.applyAsInt(func.applyAsInt(x0));\n\n // find point inside the cycle\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(func.applyAsInt(h));\n }\n\n h = x0;\n\n while (h != t) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n final int startPoint = t;\n int length = 1;\n h = func.applyAsInt(h);\n\n while (t != h) {\n h = func.applyAsInt(h);\n ++length;\n }\n\n return new FunctionCycle(startPoint, length);\n }", "@SuppressWarnings(\"unchecked\")\r\n private static void cycleTests() throws CALExecutorException {\r\n \r\n final ImmutableDirectedGraph<Integer> noCycles = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 3), Pair.make(1, 3)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthOneCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 1)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthTwoCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 1)),\r\n executionContext);\r\n \r\n System.out.println(\"noCycle.findCycle(): \" + noCycles.findCycle());\r\n System.out.println(\"oneCycle.findCycle(): \" + lengthOneCycle.findCycle());\r\n System.out.println(\"twoCycle.findCycle(): \" + lengthTwoCycle.findCycle());\r\n }", "private static FunctionCycle findCycleWithHashingInternal(IntUnaryOperator func, int x0) {\n\n IntHashSet detectedValues = new IntHashSet();\n int curValue = x0;\n\n while (!detectedValues.contains(curValue)) {\n detectedValues.add(curValue);\n curValue = func.applyAsInt(curValue);\n }\n\n final int startPoint = curValue;\n\n curValue = func.applyAsInt(curValue);\n int length = 1;\n\n while (curValue != startPoint) {\n curValue = func.applyAsInt(curValue);\n ++length;\n }\n\n return new FunctionCycle(startPoint, length);\n }", "public ListNode detectCycle(ListNode head) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next().next();\n\t\t\tslow=slow.next();\t\t\n\t\t\t//First meet\n\t\t\tif (fast==slow) {\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//Put slow at head ,they meet after k-m steps\n\t\tslow=head;\n\t\twhile(slow!=fast) {\n\t\t\tfast=fast.next();\n\t\t\tslow=slow.next();\n\t\t}\n\t\treturn slow;\n\t}", "public ListNode detectCycle(ListNode head) {\n\n\t\tListNode fast = head;\n\t\tListNode slow = head;\n\n\t\twhile (fast != null && fast.next != null) {\n\t\t\tfast = fast.next.next;\n\t\t\tslow = slow.next;\n\t\t\tif (slow == fast) {\n\t\t\t\tListNode slow2 = head;\n\t\t\t\twhile (slow2 != slow) {\n\t\t\t\t\tslow2 = slow2.next;\n\t\t\t\t\tslow = slow.next;\n\t\t\t\t}\n\t\t\t\treturn slow;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ListNode detectCycle(ListNode head) {\n if (head == null || head.next == null) return null;\n ListNode slow = head;\n ListNode fast = head;\n while (fast != null && fast.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n if (fast == slow) {\n ListNode slow2 = head;\n while (slow != slow2) {\n slow = slow.next;\n slow2 = slow2.next;\n }\n return slow;\n }\n }\n return null;\n }", "public ListNode detectCycle(ListNode head) {\n if (null == head || null == head.next) return null;\n ListNode cur = head.next, runner = head.next.next;\n while (null != runner && null != runner.next & cur != runner) {\n cur = cur.next;\n runner = runner.next.next;\n }\n if (cur == runner) {\n cur = head;\n while (runner != cur) {\n cur = cur.next;\n runner = runner.next;\n }\n return cur;\n }\n return null;\n }", "private boolean checkCycle() {\n for (int i = 0; i < 26; i++) {\n color[i] = 0;\n }\n for (int i = 0; i < 26; i++) {\n if (color[i] != -1 && BFS(i)) return true;\n }\n return false;\n }", "private Boolean checkCycle() {\n Node slow = this;\n Node fast = this;\n while (fast.nextNode != null && fast.nextNode.nextNode != null) {\n fast = fast.nextNode.nextNode;\n slow = slow.nextNode;\n if (fast == slow) {\n System.out.println(\"contains cycle\");\n return true;\n }\n }\n System.out.println(\"non-cycle\");\n return false;\n }", "public void DFS2() {\n boolean[] visited = new boolean[numVertices];\n int[] predecessors = new int[numVertices];\n for (int i = 0; i < numVertices; i++) {\n if (visited[i] == false && hasCycle(0, visited, predecessors)) {\n System.out.println(\"Cycle has found\");\n return;\n }\n }\n System.out.println(\"No cycle found in the graph\");\n }", "Cycle getOptimalCycle(Graph<L, T> graph);", "private void treatCycles(SDFGraph graph) throws InvalidExpressionException {\r\n\t\tList<Set<SDFAbstractVertex>> cycles = new ArrayList<Set<SDFAbstractVertex>>();\r\n\t\tCycleDetector<SDFAbstractVertex, SDFEdge> detector = new CycleDetector<SDFAbstractVertex, SDFEdge>(\r\n\t\t\t\tgraph);\r\n\t\tList<SDFAbstractVertex> vertices = new ArrayList<SDFAbstractVertex>(\r\n\t\t\t\tgraph.vertexSet());\r\n\t\twhile (vertices.size() > 0) {\r\n\t\t\tSDFAbstractVertex vertex = vertices.get(0);\r\n\t\t\tSet<SDFAbstractVertex> cycle = detector\r\n\t\t\t\t\t.findCyclesContainingVertex(vertex);\r\n\t\t\tif (cycle.size() > 0) {\r\n\t\t\t\tvertices.removeAll(cycle);\r\n\t\t\t\tcycles.add(cycle);\r\n\t\t\t}\r\n\t\t\tvertices.remove(vertex);\r\n\t\t}\r\n\r\n\t\tfor (Set<SDFAbstractVertex> cycle : cycles) {\r\n\t\t\tint gcd = gcdOfVerticesVrb(cycle);\r\n\t\t\tif (gcd > 1 && !(graph instanceof PSDFGraph)) {\r\n\t\t\t\tcopyCycle(graph, cycle, gcd);\r\n\t\t\t} else if (!(graph instanceof PSDFGraph)) {\r\n\t\t\t\ttreatPSDFCycles(graph, cycle);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// SDFIterator sdfIterator = new SDFIterator(graph);\r\n\t\t// List<SDFAbstractVertex> orderedList = new\r\n\t\t// ArrayList<SDFAbstractVertex>();\r\n\t\t// while (sdfIterator.hasNext()) {\r\n\t\t// SDFAbstractVertex current = sdfIterator.next();\r\n\t\t// orderedList.add(current);\r\n\t\t// if (current instanceof SDFRoundBufferVertex) {\r\n\t\t// int nbTokens = 0;\r\n\t\t// for (SDFEdge edgeData : graph.outgoingEdgesOf(current)) {\r\n\t\t// nbTokens = edgeData.getProd().intValue();\r\n\t\t// }\r\n\t\t// for (int i = orderedList.size() - 1; i >= 0; i--) {\r\n\t\t// if (graph.getAllEdges(orderedList.get(i), current).size() == 1) {\r\n\t\t// if (nbTokens <= 0) {\r\n\t\t// graph.removeAllEdges(orderedList.get(i), current);\r\n\t\t// } else {\r\n\t\t// for (SDFEdge thisEdge : graph.getAllEdges(\r\n\t\t// orderedList.get(i), current)) {\r\n\t\t// nbTokens = nbTokens\r\n\t\t// - thisEdge.getProd().intValue();\r\n\t\t// }\r\n\t\t// }\r\n\t\t// }\r\n\t\t// }\r\n\t\t// // traiter le roundBuffer pour le supprimer\r\n\t\t// if (graph.incomingEdgesOf(current).size() == 1\r\n\t\t// && graph.outgoingEdgesOf(current).size() == 1) {\r\n\t\t// SDFAbstractVertex source = ((SDFEdge) graph\r\n\t\t// .incomingEdgesOf(current).toArray()[0]).getSource();\r\n\t\t// SDFEdge oldEdge = ((SDFEdge) graph.incomingEdgesOf(current)\r\n\t\t// .toArray()[0]);\r\n\t\t// SDFAbstractVertex target = ((SDFEdge) graph\r\n\t\t// .outgoingEdgesOf(current).toArray()[0]).getTarget();\r\n\t\t// SDFEdge refEdge = ((SDFEdge) graph.outgoingEdgesOf(current)\r\n\t\t// .toArray()[0]);\r\n\t\t// SDFEdge newEdge = graph.addEdge(source, target);\r\n\t\t// newEdge.copyProperties(refEdge);\r\n\t\t// graph.removeEdge(refEdge);\r\n\t\t// graph.removeEdge(oldEdge);\r\n\t\t// graph.removeVertex(current);\r\n\t\t// orderedList.remove(current);\r\n\t\t// } else if (graph.incomingEdgesOf(current).size() == 1\r\n\t\t// && graph.outgoingEdgesOf(current).size() > 1) {\r\n\t\t//\r\n\t\t// } else if (graph.incomingEdgesOf(current).size() > 1\r\n\t\t// && graph.outgoingEdgesOf(current).size() == 1) {\r\n\t\t//\r\n\t\t// }\r\n\t\t// }\r\n\t\t// }\r\n\t\t/*\r\n\t\t * { CycleDetector<SDFAbstractVertex, SDFEdge> detect = new\r\n\t\t * CycleDetector<SDFAbstractVertex, SDFEdge>( graph);\r\n\t\t * List<SDFAbstractVertex> vert = new ArrayList<SDFAbstractVertex>(\r\n\t\t * graph.vertexSet()); while (vert.size() > 0) { SDFAbstractVertex\r\n\t\t * vertex = vert.get(0); Set<SDFAbstractVertex> cycle = detect\r\n\t\t * .findCyclesContainingVertex(vertex); if (cycle.size() > 0) {\r\n\t\t * vert.removeAll(cycle); cycles.add(cycle); } vert.remove(vertex); } }\r\n\t\t */\r\n\r\n\t\treturn;\r\n\t}", "public int getCycles();", "public ListNode detectCycle(ListNode head) {\n ListNode walker = head;\n ListNode runner = head;\n \n while(runner != null && runner.next != null) {\n runner = runner.next.next;\n walker = walker.next;\n \n if (runner == walker) {\n while(walker != head) {\n head = head.next;\n walker = walker.next;\n }\n \n return head;\n }\n }\n \n return null;\n }", "public static Node findCycle(Node head) {\n if (head == null) return head;\n\n Node slow = head;\n Node fast = head.next;\n while (fast != null && fast.next != null) {\n if (fast == slow) break;\n slow = slow.next;\n fast = fast.next.next;\n }\n\n if (fast == slow) {\n slow = head;\n while (slow != fast.next) {\n slow = slow.next;\n fast = fast.next;\n }\n return fast.next;\n } else {\n return null;\n }\n }", "public ListNode findCycleStart(ListNode head) {\n int cycleLength = findCycleLength(head);\n\n ListNode current = head;\n for(int i = 0; i < cycleLength; i++) {\n current = current.next;\n }\n\n ListNode slow = head;\n ListNode fast = current;\n while(slow != fast) {\n slow = slow.next;\n fast = fast.next;\n }\n return slow;\n }", "public ListNode detectCycle(ListNode head){\n if(head == null) return null;\n\n Set<ListNode> visitedNodes = new HashSet<>();\n ListNode currNode = head;\n while(currNode != null) {\n if(visitedNodes.contains(currNode)){\n return currNode;\n }\n visitedNodes.add(currNode);\n currNode = currNode.next;\n }\n return null;\n }", "boolean cycle() {\n int j;\t\t\t\t\t\t// If cycle detected report as negative edge weight cycle.\n for (j = 0; j < e; ++j)\n if (d[edges.get(j).u] + edges.get(j).w < d[edges.get(j).v])\n return false;\n return true;\n }", "static\tListNode listCycle(ListNode a){\n if(a==null || a.next==null || a.next.next==null){\r\n return null;\r\n }\r\n boolean cycleExists = false;\r\n ListNode fast = a.next.next;\r\n ListNode slow = a;\r\n while(slow.next!=null && fast.next !=null && fast.next.next!=null){\r\n if(fast==slow){\r\n //return cycleSize;\r\n //cycleExists = true;\r\n //break;\r\n return fast;\r\n }else{\r\n \r\n fast = fast.next.next;\r\n slow = slow.next;\r\n }\r\n\r\n }\r\n \r\n return null;\r\n\t}", "void find_negative_cycle(){\n \t\n \tfor(int j = 0; j<E ; j++)\n\t\t{\n\t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n\t\t}\n \tfor(int i = 0; i<V ; i++)\n\t\t{\n \t\tif(x[i] != dist[i])\n\t\t\t{\n \t\t\tNegCycle = true;\n\t\t\t\tSystem.out.println(\"Negative Cycle Found \");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "public static ListNode detectCycle2(ListNode head){\n if(head == null) return null;\n\n ListNode intersectNode = getIntersection(head);\n if(intersectNode == null) return null;\n\n ListNode currNode = head;\n while(currNode != intersectNode) {\n currNode = currNode.next;\n intersectNode = intersectNode.next;\n }\n return intersectNode;\n }", "boolean findCycleUtil(int i, boolean[] visited, boolean[] recStack, LinkedList<Integer>[] g) {\n if (recStack[i]) {\n return true;\n }\n if (visited[i]) {\n return false;\n }\n visited[i] = true;\n recStack[i] = true;\n for (int c : g[i]) {\n if (findCycleUtil(c, visited, recStack, g)) {\n return true;\n }\n }\n recStack[i] = false;\n return false;\n }", "private boolean findCycles(int v, int s, Vector<Integer>[] adjList)\n {\n boolean f = false;\n this.stack.add(v);\n this.blocked[v] = true;\n\n for (int i = 0; i < adjList[v].size(); i++) {\n int w = adjList[v].get(i);\n // found cycle\n if (w == s) {\n Vector cycle = new Vector();\n for (int j = 0; j < this.stack.size(); j++) {\n int index = this.stack.get(j).intValue();\n cycle.add(this.graphNodes[index]);\n }\n this.cycles.add(cycle);\n\n\n // we hard-limit the cycle number to 10k!!\n if (this.cycles.size() > 10000) {\n break;\n }\n\n f = true;\n }\n else if (!this.blocked[w]) {\n if (this.findCycles(w, s, adjList)) {\n f = true;\n }\n }\n }\n\n if (f) {\n this.unblock(v);\n }\n else {\n for (int i = 0; i < adjList[v].size(); i++) {\n int w = ((Integer) adjList[v].get(i)).intValue();\n if (!this.B[w].contains(new Integer(v))) {\n this.B[w].add(new Integer(v));\n }\n }\n }\n\n this.stack.remove(new Integer(v));\n return f;\n }", "public int getCycle() {\n return cycle;\n }", "private static void lookForFunctionCycles(\n XQueryFunction f, Stack<Object> referees, XQueryFunctionLibrary globalFunctionLibrary) throws XPathException {\n Expression body = f.getBody();\n referees.push(f);\n List<Binding> list = new ArrayList<Binding>(10);\n ExpressionTool.gatherReferencedVariables(body, list);\n for (Binding b : list) {\n if (b instanceof GlobalVariable) {\n ((GlobalVariable) b).lookForCycles(referees, globalFunctionLibrary);\n }\n }\n List<SymbolicName> flist = new ArrayList<SymbolicName>();\n ExpressionTool.gatherCalledFunctionNames(body, flist);\n for (SymbolicName s : flist) {\n XQueryFunction qf = globalFunctionLibrary.getDeclarationByKey(s);\n if (!referees.contains(qf)) {\n // recursive function calls are allowed\n lookForFunctionCycles(qf, referees, globalFunctionLibrary);\n }\n }\n referees.pop();\n }", "@Test\n void findCycle() {\n Map<String, Set<String>> nonCyclicGraph = Map.of(\n \"0\", Set.of(\"a\", \"b\", \"c\"),\n \"a\", Set.of(\"0\", \"a2\", \"a3\"),\n \"a2\", Set.of(\"a\"),\n \"a3\", Set.of(\"a\"),\n \"b\", Set.of(\"0\", \"b2\"),\n \"b2\", Set.of(\"b\"),\n \"c\", Set.of(\"0\")\n );\n assertThat(solution.findCycle(nonCyclicGraph)).isFalse();\n\n // 0\n // / | \\\n // a b c\n // /\\ | /\n // a2 a3 b2\n Map<String, Set<String>> cyclicGraph = Map.of(\n \"0\", Set.of(\"a\", \"b\", \"c\"),\n \"a\", Set.of(\"0\", \"a2\", \"a3\"),\n \"a2\", Set.of(\"a\"),\n \"a3\", Set.of(\"a\"),\n \"b\", Set.of(\"0\", \"b2\"),\n \"b2\", Set.of(\"b\"),\n \"c\", Set.of(\"0\", \"b2\")\n );\n assertThat(solution.findCycle(cyclicGraph)).isTrue();\n }", "public Set<V> findCycles()\n {\n // ProbeIterator can't be used to handle this case,\n // so use StrongConnectivityAlgorithm instead.\n StrongConnectivityAlgorithm<V, E> inspector =\n new KosarajuStrongConnectivityInspector<>(graph);\n List<Set<V>> components = inspector.stronglyConnectedSets();\n\n // A vertex participates in a cycle if either of the following is\n // true: (a) it is in a component whose size is greater than 1\n // or (b) it is a self-loop\n\n Set<V> set = new LinkedHashSet<>();\n for (Set<V> component : components) {\n if (component.size() > 1) {\n // cycle\n set.addAll(component);\n } else {\n V v = component.iterator().next();\n if (graph.containsEdge(v, v)) {\n // self-loop\n set.add(v);\n }\n }\n }\n\n return set;\n }", "public boolean hasCycle() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\t\tSet<Vertex> path = new HashSet<Vertex>();\r\n\r\n\t\t// Call the helper function to detect cycle for all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (detectCycle(this.vertices[i], visited, path))\r\n\t\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "public static void checkCycleSample() {\n Node ll1_5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n Node ll1_2 = new Node(1, new Node(2, null));\n Node ll3_4 = new Node(3, new Node(4, null));\n Node ll5_6 = new Node(5, new Node(6, null));\n ll1_2.nextNode.nextNode = ll3_4;\n ll3_4.nextNode.nextNode = ll5_6;\n ll5_6.nextNode.nextNode = ll1_2;\n\n ll1_2.checkCycle();\n ll1_5.checkCycle();\n }", "private void findCycles(ClassDecl decl, String className, int numClasses){\n\t //base case: our decl is null, return and break out of this method\n if (decl == null) {\n return;\n }\n //base case: if numClasses is 0 and we see the name, its a cycle, throw error\n else if(numClasses == 0 || decl.name.equals(className)) {\n errorMsg.error(decl.pos, \"Circular reference found: \" + decl.name);\n }\n else { //recursive case, call findCycles on the remaining links\n findCycles(decl.superLink, className, numClasses - 1);\n }\n }", "public ListNode loopDetection2(ListNode head) {\r\n if (head == null || head.next == null || head.next.next == null) {\r\n return null;\r\n }\r\n ListNode slow = head.next, fast = head.next.next;\r\n\r\n //Find meeting point. This will be LOOP_SIZE - k steps into the linked list. */\r\n while (fast != null && fast.next != null) {\r\n slow = slow.next;\r\n fast = fast.next.next;\r\n //Collision\r\n if (slow == fast) {\r\n break;\r\n }\r\n }\r\n\r\n //Error check - no meeting point, and therefore no loop\r\n if (fast == null || fast.next == null) {\r\n return null;\r\n }\r\n\r\n //Move slow to Head. Keep fast at Meeting Point. Each are k steps from the\r\n //Loop Start. If they move at the same pace, they must meet at Loop Start.\r\n slow = head;\r\n while (slow != fast) {\r\n slow = slow.next;\r\n fast = fast.next;\r\n }\r\n\r\n /* Both now point to the start of the loop. */\r\n return fast;\r\n\r\n }", "boolean hasCycle() {\n if (head == null){\n return false;\n }\n Node slow = head;\n Node fast = head;\n while (slow != null && fast != null && fast.next != null){\n slow = slow.next;\n fast = fast.next.next;\n if (slow == fast){\n return true;\n }\n }\n return false;\n }", "static int circularWalk(int n, int s, int t, int r_0, int g, int seed, int p){\n\t\tPoint[] points=new Point[n];\n\t\tfor (int i = 0; i < points.length; i++) {\n\t\t\tPoint point=new Point(r_0, false, false);\n\t\t\tif(i!=0)\n\t\t\t{\n\t\t\t\tpoint.rValue=((long)(points[i-1].rValue*g+seed))%p;\n\t\t\t}\n\t\t\tif(i==s){\n\t\t\t\tpoint.isSource=true;\n\t\t\t}\n\t\t\tif(i==t)\n\t\t\t\tpoint.isTarget=true;\n\t\t\tpoints[i]=point;\n\t\t}\n\t\tif(s==t)\n\t\t\treturn 0;\n\t\t//maintain visited and calculate if we can reach t from s,if we can't reach from a certain point,return Max\n\t\t//find the min of all the dfs possibilities\n\t\tHashSet<Integer> set=new HashSet<>();\n\t\treturn dfs(points,s,t,0,set);\n\t}", "int isCycle( Graph graph){\n int parent[] = new int[graph.V]; \n \n // Initialize all subsets as single element sets \n for (int i=0; i<graph.V; ++i) \n parent[i]=-1; \n \n // Iterate through all edges of graph, find subset of both vertices of every edge, if both subsets are same, then there is cycle in graph. \n for (int i = 0; i < graph.E; ++i){ \n int x = graph.find(parent, graph.edge[i].src); \n int y = graph.find(parent, graph.edge[i].dest); \n \n if (x == y) \n return 1; \n \n graph.Union(parent, x, y); \n } \n return 0; \n }", "boolean isCycle(SimpleVertex simpleVertex, int length) {\n\n\t\twhile (count != length) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tcount++;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\t\t\t\t\tif (node.one.Vertexname == node.two.Vertexname) {\n\n\t\t\t\t\t\tSystem.out.println(\"here ---------------\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tisCycle(node.two, length);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\n\t}", "public static void main(String[] args) { \n \tA016_DetectAndRemoveLoopLinkedList list = new A016_DetectAndRemoveLoopLinkedList(); \n \tNode head = new Node(50); \n head.next = new Node(20); \n head.next.next = new Node(15); \n head.next.next.next = new Node(4); \n head.next.next.next.next = new Node(10); \n \n // Creating a loop for testing \n head.next.next.next.next.next = head.next.next; \n list.detectAndRemoveLoop(head); \n while (head != null) { \n System.out.print(head.data + \" \"); \n head = head.next; \n }\n \n// \n// ListNode head1 = new ListNode(50); \n// head1.next = new ListNode(20); \n// head1.next.next = new ListNode(15); \n// head1.next.next.next = new ListNode(4); \n// head1.next.next.next.next = new ListNode(10); \n// \n// // Creating a loop for testing \n// head1.next.next.next.next.next = head1.next.next; \n// System.out.println(detectCycle(head1));\n \n \n ListNode head1 = new ListNode(1);\n ListNode second = new ListNode(2);\n ListNode third = new ListNode(3);\n ListNode fourth = new ListNode(4);\n\t\thead1.next = second;\n\t\tsecond.next = third;\n\t\tthird.next = fourth;\n\t\tfourth.next = second;\n\t\tListNode aaa = detectCycle(head1);\n\t\twhile (head1 != null) {\n\t\t\tSystem.out.print(head1.val + \" \");\n\t\t\thead1 = head1.next;\n\t\t}\n\t}", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "@Override\n public void cycle(long cycle) {\n\n boolean previousState = state();\n\n manageDIV();\n\n incTIMAIfChange(previousState);\n }", "Constant getCyclePeriodConstant();", "@Test\n public void testHasCycle() {\n System.out.println(\"**** hasCycle ****\");\n CycleDepthSearch instance = new CycleDepthSearch(g);\n boolean expResult = true;\n boolean result = instance.hasCycle();\n System.out.println(result);\n assertEquals(expResult, result);\n }", "Constant getCycleOffsetConstant();", "public List<List<Object>> getElementaryCycles()\n {\n this.cycles = new Vector<>();\n this.blocked = new boolean[this.adjList.length];\n this.B = new Vector[this.adjList.length];\n this.stack = new Vector<>();\n StrongConnectedComponents sccs = new StrongConnectedComponents(this.adjList);\n int s = 0;\n\n while (true) {\n SCCResult sccResult = sccs.getAdjacencyList(s);\n if (sccResult != null && sccResult.getAdjList() != null) {\n Vector[] scc = sccResult.getAdjList();\n s = sccResult.getLowestNodeId();\n for (int j = 0; j < scc.length; j++) {\n if ((scc[j] != null) && (scc[j].size() > 0)) {\n this.blocked[j] = false;\n this.B[j] = new Vector();\n }\n }\n\n this.findCycles(s, s, scc);\n s++;\n }\n else {\n break;\n }\n }\n\n return this.cycles;\n }", "private boolean hasCycle1() {\n\t\tNode slow = head;\n\t\tNode fast = head;\n\t\t\n\t\twhile (fast != null && fast.next != null) {\n\t\t\tslow = slow.next;\n\t\t\tfast = fast.next.next;\n\t\t\tif(slow == fast) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean detect_cycle_directed_util(int v,boolean visited[], boolean curr_visited[]) {\n\t\t\n\t\tvisited[v]=true;\n\t\tcurr_visited[v]=true;\n\t\t\n\t\t\n\t\tfor(int neighbour:adj[v]) {\n\t\t\t\n\t\t\tif(curr_visited[neighbour]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(!visited[neighbour]&&detect_cycle_directed_util(neighbour,visited,curr_visited)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tcurr_visited[v]=false;\n\t\t\n\t\treturn false;\n\t\t\n\t}", "Integer getMaxSuccessiveDeltaCycles();", "int dfs(String wheel, Set<String> deadendSet, Set<String> visited, String target, int depth) {\n\t\t// System.out.printf(\"dfs visit: %2s (depth: %d)\\n\", wheel, depth);\n\t\t++numDFSCalls;\n\t\t// scanner.nextLine();\n\n\t\tif (deadendSet.contains(wheel)) return Integer.MAX_VALUE;\n\t\tif (wheel.equals(target)) return 0;\n\n\t\tvisited.add(wheel);\n\t\tint d = Integer.MAX_VALUE;\n\t\tfor (String next : nextState(wheel)) {\n\t\t\tif (!visited.contains(next)) {\n\t\t\t\tint d1 = dfs(next, deadendSet, visited, target, depth+1);\n\t\t\t\td = Math.min(d, d1);\n\t\t\t}\n\t\t}\n\t\tvisited.remove(wheel);\n\n\t\treturn d < Integer.MAX_VALUE ? ++d : d;\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCYCLE() {\n CuteNetlibCase.doTest(\"CYCLE.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\t\tLinkedListCycle obj = new LinkedListCycle();\n\t\tListNode node1 = obj.new ListNode(1);\n\t\tListNode node2 = obj.new ListNode(2);\n\t\tListNode node3 = obj.new ListNode(3);\n\t\tListNode node4 = obj.new ListNode(4);\n\t\tListNode node5 = obj.new ListNode(5);\n\t\tListNode node6 = obj.new ListNode(6);\n\t\tListNode node7 = obj.new ListNode(7);\n\t\tnode1.next = node2;\n\t\tnode2.next = node3;\n\t\tnode3.next = node4;\n\t\tnode4.next = node5;\n\t\tnode5.next = node6;\n\t\tnode6.next = node7;\n\t\tnode7.next = node2;\n\t\tSystem.out.println(obj.hasCycle(node1));\n\t}", "public int findCycleLength(ListNode head) {\n ListNode slow = head;\n ListNode fast = head;\n\n ListNode intersection = head;\n while(fast.next != null && fast.next.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n\n if(slow == fast) {\n intersection = slow;\n break;\n }\n }\n\n int cycleLength = 1;\n ListNode current = intersection.next;\n while(current != intersection) {\n cycleLength++;\n current = current.next;\n }\n\n return cycleLength;\n }", "public boolean hasCycle(int nodeIndex, int[][] graph, boolean[] visited, boolean[] onStack,\n boolean[] onCycle) {\n\n if (onCycle[nodeIndex]) {\n return true;\n }\n visited[nodeIndex] = true;\n onStack[nodeIndex] = true;\n boolean cycle = false;\n for (int neighbor : graph[nodeIndex]) {\n if (onCycle[neighbor]) {\n cycle = true;\n continue;\n }\n if (!visited[neighbor]) {\n if (hasCycle(neighbor, graph, visited, onStack, onCycle)) {\n onCycle[neighbor] = true;\n cycle = true;\n }\n } else {\n if (onStack[neighbor]) {\n onCycle[neighbor] = true;\n cycle = true;\n }\n }\n }\n onStack[nodeIndex] = false;\n return cycle;\n }", "public static void main(String[] args) {\n ArrayList<Integer> input = new ArrayList<>(Arrays.asList(1, 2, -1, 2, 2));\n System.out.println(\"has Cycle : \" + CycleCircularArray.hasCycle(input));\n input = new ArrayList<>(Arrays.asList(2, 2, -1, 2));\n System.out.println(\"has Cycle : \" + CycleCircularArray.hasCycle(input));\n input = new ArrayList<>(Arrays.asList(2, 1, -1, -2));\n System.out.println(\"has Cycle : \" + CycleCircularArray.hasCycle(input));\n }", "public boolean hasCycle(int g) {\n\t\t//TODO\n\t}", "private static boolean checkEulerCicleGraph() {// es cycle o es tour\r\n\t\tfor (int i = 0; i < V; i++) {\r\n\t\t\tif (outdeg[i] % 2 == 1) {\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 Iterable<Integer> cycle(){\n return cycle;\n }", "public void findLoop(NodeLoop first){\n ArrayList<String> ids = new ArrayList<String>();\n NodeLoop cur = first;\n\n //Finds Loop, if cur.next=null there was no loop\n while(cur.next!=null){\n\n //Found Cycle\n if(ids.contains(cur.id)){\n System.out.println(\"Cycle Found, Begins at \" + cur.id);\n break;\n }\n\n //Add current id to list of id's\n ids.add(cur.id);\n cur = cur.next;\n }\n\n //If no cycle found\n if(cur.next==null){\n System.out.println(\"No Cycle's Found\");\n }\n\n }", "int hasCycle(Node head) {\n\t// If list is null\n\tif(head == null) {\n\t\t// No cycle\n\t\treturn 0;\n\t}\n\n\tSet<Node> visitedNodes = new HashSet<Node>();\n\t\n\tNode current = head;\n\n\t// Loop through the list\n\twhile(current != null) {\n\t\t// If we have seen this node befor\n\t\tif(visitedNodes.contains(current)) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Add it to the set\n\t\tvisitedNodes.add(current);\n\n\t\t// Update current\n\t\tcurrent = current.next;\n\t}\n\n\t// If we get here, there are no cycles\n\treturn 0;\n}", "public boolean detectCycles()\n {\n try {\n execute(null, null);\n } catch (CycleDetectedException ex) {\n return true;\n }\n\n return false;\n }", "private boolean BFS(int i) {\n color[i] = 1;\n for (int j : alphabet.get(i)) {\n // Making sure we don't check one vertex twice\n if (color[j] != -1) {\n if (color[j] == 0) {\n if (BFS(j)) return true;\n }\n // Found visited vertex --> We found cycle\n if (color[j] == 1) {\n System.out.println(j);\n return true;\n }\n }\n }\n //Vertex checked\n color[i] = -1;\n return false;\n }", "static boolean hasCycle(Node head) {\n\t\t\n\t\tif(head == null) return false;\n\t\t\n\t\t//Using the concept of one pointer moving faster than another, since at some point both will meet \n\t\t//at the same point and close a cycle (if any).\n\t\tNode slowPointerNode = head;\n\t\tNode fastPointerNode = head.getNext();\n\t\t\n\t\twhile(fastPointerNode != null && fastPointerNode.getNext() != null) {\n\t\t\tif(slowPointerNode == fastPointerNode) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tslowPointerNode = slowPointerNode.getNext();\n\t\t\tfastPointerNode = fastPointerNode.getNext().getNext();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "boolean detectCycleUndirected(ArrayList<Integer> G[]) {\n\t\tint[] vis = new int[G.length];\n\t\tfor (int i = 0; i < G.length; i++) {\n\t\t\tif (vis[i] == 0) {\n\t\t\t\tif (detectCycleUtil(G, i, vis, -1))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static boolean findCyclesInSCC(\n ARGState pStartState,\n ARGState pCurrentState,\n Set<ARGState> pBlockedSet,\n SetMultimap<ARGState, ARGState> pBlockedMap,\n Deque<ARGState> pStack,\n List<List<ARGState>> pAllCycles,\n Set<ARGState> pExcludeSet) {\n\n if (pExcludeSet.contains(pCurrentState)) {\n // Do not regard nodes which were deliberately put into a set of excluded states\n return false;\n }\n\n boolean foundCycle = false;\n pStack.push(pCurrentState);\n pBlockedSet.add(pCurrentState);\n\n for (ARGState successor : pCurrentState.getChildren()) {\n // If the successor is equal to the startState, a cycle has been found.\n // Store contents of stack in the final result.\n if (successor.equals(pStartState)) {\n List<ARGState> cycle = new ArrayList<>();\n pStack.push(pStartState);\n cycle.addAll(pStack);\n Collections.reverse(cycle);\n pStack.pop();\n pAllCycles.add(cycle);\n foundCycle = true;\n } else if (!pBlockedSet.contains(successor)) {\n // Explore this successor only if it is not already in the blocked set.\n boolean gotCycle =\n findCyclesInSCC(\n pStartState, successor, pBlockedSet, pBlockedMap, pStack, pAllCycles, pExcludeSet);\n foundCycle = foundCycle || gotCycle;\n }\n }\n\n if (foundCycle) {\n unblock(pCurrentState, pBlockedSet, pBlockedMap);\n } else {\n for (ARGState s : pCurrentState.getChildren()) {\n pBlockedMap.put(s, pCurrentState);\n }\n }\n pStack.pop();\n\n return foundCycle;\n }", "public boolean checkCyclesRecursive(Integer blockID, LinkedList<Integer> visited){\n System.out.println(\"cc: (block \" + blockID + \") visited: \" + visited);\n if(visited.contains(blockID)){\n return false;\n }\n visited.add(blockID);\n\n /*for (Con connection : this.connections) {\n if(connection.src == blockID){\n LinkedList<Integer> new_visited = new LinkedList(visited);\n if(checkCyclesRecursive(connection.dst, new_visited) == false){\n return false;\n }\n }\n }*/\n\n for(Type output : this.getBlockByID(blockID).outputs)\n {\n /*if(output.getFirstDstID() != -1) {\n LinkedList<Integer> new_visited = new LinkedList(visited);\n if(checkCyclesRecursive(output.getFirstDstID(), new_visited) == false){\n return false;\n }\n }*/\n for (Integer id : output.getAllDstID()) {\n LinkedList<Integer> new_visited = new LinkedList(visited);\n if(checkCyclesRecursive(id, new_visited) == false){\n return false;\n } \n }\n }\n return true;\n }", "@Test\n public void testVerifyLoopTerminatesWhenCycleFound() throws Exception {\n // Add more mocking detail to our dependencies first.\n // ----------------------------------------------------\n\n DepChaser sut = createSut();\n\n // First mock our dependencyMap to know about variables a thru f\n when(_dependencyMap.keySet()).thenReturn(new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\")));\n\n // ----------------------------------------------------------------------------------\n // we're going to make it so it takes 2 iterations in DepChaser to handle a thru f\n // ----------------------------------------------------------------------------------\n\n // The 1st time, our mocked checker is going to checkout no cycles in a, b, c variables\n ChildrenDependencyChecker checker1 = mock(ChildrenDependencyChecker.class);\n Exception exception = new Exception(\"fake exception\");\n when(checker1.run()).thenThrow(exception);\n\n when(_dependencyCheckerFactory.create(\"a\", _dependencyMap, new HashSet<>())).thenReturn(checker1);\n\n Assert.assertFalse(sut.validateNoDependencyCycles());\n verify(checker1, times(1)).run();\n\n // Verify no variables were verified\n Assert.assertEquals(new HashSet<>(), sut.getVerifiedVariables());\n // Verify the _dependencyCheckerFactory was only called once.\n verify(_dependencyCheckerFactory, times(1)).create(\"a\", _dependencyMap, new HashSet<>());\n verifyNoMoreInteractions(_dependencyCheckerFactory);\n }", "public CycleDetector(Graph<V, E> graph)\n {\n this.graph = GraphTests.requireDirected(graph);\n }", "public static boolean cycleInGraph(int[][] edges) {\n int numberOfNodes = edges.length;\n int[] colors = new int[numberOfNodes]; // By default, 0 (WHITE)\n\n for (int i = 0; i < numberOfNodes; i++) {\n\n if (colors[i] != WHITE) // If already visited/finished.\n continue;\n\n boolean isCycle = traverseAndMarkColor(edges, i, colors);\n\n if (isCycle)\n return true;\n }\n return false;\n }", "public static int findPath(int currentTime[],int tLeave[], int timeStation[][], int transferTime[][], int totalStations) {\n\t\tint numofLines = currentTime.length;\n\t\tif(numofLines != 2){\n\t\t\tSystem.err.println(\"Only two assembly line supported\");\n\t\t\treturn -1;\n\t\t}\n\t\t//Cost function array\n\t\tint f[][] = new int[numofLines][totalStations];\n\t\t//Station index back track array\n\t\tint i[][] = new int[numofLines][totalStations];\n\t\t\n\t\t//Final Cost and Final Station\n\t\tint finalCost = 0;\n\t\tint lastStation = 0;\n\t\t\n\t\t//Time for first station\n\t\tf[0][0] = currentTime[0]+timeStation[0][0];\n\t\tf[1][0] = currentTime[1]+timeStation[1][0];\n\t\t\n\t\t\n\t\tfor (int j = 1; j < totalStations; j++) {\n\t\t\t\n\t\t\t\n\t\t\tif((f[0][j-1] + timeStation[0][j]) <= (f[1][j-1]+ transferTime[1][j-1]+timeStation[0][j])){\n\t\t\t\tf[0][j]= f[0][j-1]+ timeStation[0][j];\n\t\t\t\ti[0][j] = 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tf[0][j]= f[1][j-1]+ transferTime[1][j-1]+timeStation[0][j];\n\t\t\t\ti[0][j]=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(f[1][j-1] + timeStation[1][j] <= f[0][j-1]+ transferTime[0][j-1]+timeStation[1][j]){\n\t\t\t\tf[1][j]= f[1][j-1]+ timeStation[1][j];\n\t\t\t\ti[1][j] = 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tf[1][j]= f[0][j-1]+ transferTime[0][j-1]+timeStation[1][j];\n\t\t\t\ti[1][j] = 0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tif((f[0][totalStations-1]+tLeave[0]) <= (f[1][totalStations-1]+tLeave[1] )){\n\t\t\tfinalCost = f[0][totalStations-1]+tLeave[0];\n\t\t\tlastStation = 0;\n\t\t}\n\t\telse{\n\t\t\tfinalCost = f[1][totalStations-1]+tLeave[1] ;\n\t\t\tlastStation = 1;\n\t\t}\t\n\t\n\t\tprintStation(lastStation,finalCost, i, totalStations);\n\t\treturn finalCost;\n\t}", "void calc_closure(){\r\n\t\tint [] queue = new int[maxn];\r\n\t\tint head,tail,i,j,k;\r\n\t\tfor (i=0; i<state; ++i){\r\n\t\t\tfor (j=0; j<state; ++j)\r\n\t\t\t\tclosure[i][j]=false;\r\n\t\t\t\r\n\t\t\t//Breadth First Search\r\n\t\t\thead=-1;\r\n\t\t\ttail=0;\r\n\t\t\tqueue[0]=i;\r\n\t\t\tclosure[i][i]=true;\r\n\t\t\twhile (head<tail){\r\n\t\t\t\tj=queue[++head];\r\n\t\t\t\t//search along epsilon edge\r\n\t\t\t\tfor (k=0; k<state; ++k)\r\n\t\t\t\t\tif ((!closure[i][k])&&(g[j][symbol][k]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue[++tail]=k;\r\n\t\t\t\t\t\tclosure[i][k]=true;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public boolean onRecurse(DefaultGraph graph, int cycleStart,\n int cycleSecond, int lastVertex, int current, int currentFaces,\n int edgesLeft, int edgesInCurrentCycle)\n {\n int girth = graph.getGirth();\n \n /* Minimum number of edges needed to finnish current cycle. */\n int neededInCurrent;\n if(edgesInCurrentCycle >= girth) {\n if(graph.hasEdge(current, cycleStart))\n neededInCurrent = 1;\n else\n neededInCurrent = 2;\n } else {\n neededInCurrent = girth - edgesInCurrentCycle;\n }\n \n /* Simple bounding based on edges left/current number of faces. The\n * +1 is the cycle we're currently working on. */\n int estimate = currentFaces + 1 + (edgesLeft - neededInCurrent) / girth;\n \n /* If we are not going to get higher than our previous result, we can\n * bound. Note that we add 1 to our previous result, this is because\n * either all results will be even, or all results will be odd. */\n if(estimate <= previousResult + 1) {\n return false;\n }\n \n /*float depth = (float) edgesLeft / (float) graph.getNumberOfEdges();\n if(previousResult >= 0 && current < 0 &&\n estimate * 0.8f <= previousResult && depth >= 0.3f) {\n if(graph.estimate() <= previousResult) {\n return false;\n }\n }*/\n \n return true;\n }", "public boolean isFirstCycle() {\n return cycle == 0;\n }", "private boolean hasCycle() {\n\t\tNode n = head;\n\t\tSet<Node> nodeSeen = new HashSet<>();\n\t\twhile (nodeSeen != null) {\n\t\t\tif (nodeSeen.contains(n)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tnodeSeen.add(n);\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\t}", "public boolean foundLoop();", "boolean detectCycledirected(ArrayList<Integer> G[]) {\n\t\tint[] vis = new int[G.length];\n\t\tint[] ancestor = new int[G.length];\n\t\tfor (int i = 0; i < G.length; i++) {\n\t\t\tif (vis[i] == 0) {\n\t\t\t\tif (detectCycleUtil(G, i, vis, ancestor))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "double cyclicValue(double x, double period) {\n return .5*(Math.cos(x / period * 2*Math.PI) + 1.);\n }", "double cyclicValue(double x, double period) {\n return .5*(Math.cos(x / period * 2*Math.PI) + 1.);\n }", "public static Long cycleCounting(MySparseMatrix adjMatrix) {\n return adjMatrix.traceCubed();\n }", "public long getCycleInterval() {\r\n return cycleInterval;\r\n }", "public String canWalkExactly(int N, int[] from, int[] to) {\n isVisited = new boolean[N];\n steps = new int[N];\n minSteps = new int[N];\n path = new Stack<>();\n adj = new ArrayList<>(N);\n allSCC = new ArrayList<>();\n for (int i = 0; i < N; i++)\n adj.add(new ArrayList<>());\n\n // populate adj based on from, to\n for (int i = 0; i < from.length; i++) {\n adj.get(from[i]).add(to[i]);\n }\n\n totalSteps = 0;\n Arrays.fill(isVisited, false);\n Arrays.fill(steps, UNVISITED);\n Arrays.fill(minSteps, UNVISITED);\n tarjanSCC(0);\n\n // check if 0 and 1 are in the same scc\n System.out.println(\"CHECKING\");\n boolean found = false;\n for (List<Integer> scc : allSCC) {\n if (scc.contains(0) && scc.contains(1)) {\n found = true;\n break;\n }\n }\n if (!found) return NO;\n// if(minSteps[0] != minSteps[1]) return NO;\n System.out.println(\"0 and 1 in the same scc\");\n /*\n Check if gcd of the length of all simple cycles is 1\n by checking if it is an aperiodic graph\n https://en.wikipedia.org/wiki/Aperiodic_graph\n */\n depths = new int[N];\n Arrays.fill(depths, UNVISITED);\n depths[0] = 0;\n findDepths(0);\n\n int res = -1;\n for (int i = 0; i < from.length; i++) {\n int s = from[i];\n int t = to[i];\n if (depths[s] == UNVISITED || depths[t] == UNVISITED) continue;\n int len = depths[t] - depths[s] - 1;\n if (len == 0) continue;\n if (len < 0) len *= -1;\n if (res == -1) res = len;\n else res = gcd(res, len);\n }\n\n return res == 1 ? YES : NO;\n }", "public interface CycleInGraph<V> {\n boolean hasCycle(Graph<V> graph) ;\n}", "void bellman_ford(int s)\n {\n int dist[]=new int[V]; \n \n //to track the path from s to all\n int parent[]=new int[V] ;\n //useful when a vertex has no parent\n for(int i=0;i<V;i++)\n parent[i]=-2;\n \n for(int i=0;i<V;i++) \n dist[i]=INF;\n \n //start from source vertex\n dist[s]=0;\n parent[s]=-1;\n \n //we have to iterate over all the edges for V-1 times\n //each ith iteration finds atleast ith path length dist\n //worst case each ith will find ith path length \n \n for(int i=1;i<V;i++) \n {\n for(int j=0;j<E;j++)\n {\n //conside for all edges (u,v), wt\n int u=edge[j].src;\n int v=edge[j].dest;\n int wt=edge[j].wt; \n //since dist[u]=INF and adding to it=>overflow, therefore check first\n if( dist[u]!=INF && dist[u]+wt < dist[v])\n {\n dist[v]=dist[u]+wt;\n parent[v]=u;\n } \n }\n }\n \n //iterate for V-1 times, one more iteration necessarily gives a path length of atleast V in W.C=>cycle\n for(int j=0;j<E;j++) \n {\n int u=edge[j].src;\n int v=edge[j].dest;\n int wt=edge[j].wt;\n if( dist[u]!=INF && dist[u]+wt < dist[v])\n {\n System.out.println(\"Graph has cycle\");\n return;\n } \n }\n \n //print the distance to all from s\n System.out.println(\"from source \"+s+\" the dist to all other\");\n print_dist(dist); \n print_path(parent,dist,s); \n \n }", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "public static int findSmallestCycleEdge(int[][] graph){\r\n int smallest = Integer.MAX_VALUE;\r\n for(int i = 0 ; i < graph.length;i++){\r\n for(int j = 0; j < graph[i].length;j++){\r\n if (graph[i][j] < smallest){\r\n smallest = graph[i][j];\r\n }\r\n }\r\n }\r\n return smallest;\r\n }", "public BellmanFord(Edge[] edges, int nodes, int start) {\n distances = new int[nodes];\n parent = new int[nodes];\n child = new int[nodes];\n hasNegativeCycle = new boolean[nodes];\n boolean[] checked = new boolean[nodes];\t//used when checking for negative cycles\n boolean negativeCycle = false;\t\t\t//has ANY negative cycle\n\n //Step 1: Initialize\n for (int i = 0; i < nodes; i++) {\n distances[i] = Integer.MAX_VALUE;\n parent[i] = NOPARENT;\n child[i] = NOPARENT;\n hasNegativeCycle[i] = false;\n }\n distances[start] = 0;\n parent[start] = start; //start is itselves parent\n \n //Step 2: Find shortest distance from start to any other node\n for (int step = 0; step < nodes; step++) {\n for (int i = 0; i < edges.length; i++) {\n int from = edges[i].from;\n if (distances[from] == Integer.MAX_VALUE) {\n //infinite + something == infinite, therefore skip this one!\n continue;\n }\n int to = edges[i].to;\n\n if (distances[from] + edges[i].weight < distances[to]) {\n distances[to] = distances[from] + edges[i].weight;\n //System.err.println(\"from \" + from + \" to \" + to + \" dist[to] \" + distances[to]);\n parent[to] = from;\n child[from] = to;\n }\n }\n }\n \n //Step 3-1: Detect Negative Cycles:\n for (int i = 0; i < edges.length; i++) {\n int from = edges[i].from;\n int to = edges[i].to;\n \n if(hasNegativeCycle[from] && hasNegativeCycle[to]){\n continue;\n }\n if(parent[from] == NOPARENT){\n checked[from] = true;\n continue;\n }\n if (distances[from] + edges[i].weight < distances[to]) {\n negativeCycle = true;\n int tmp = from;\n while(tmp != to && tmp >= 0 && !checked[tmp]){\n \t//Mark the whole negative cycle as negative cycle! \n \t//Note that this will not detect elements that branch from the negative cycle as negative cycle!\n markNegativeCycle(checked, tmp);\n tmp = parent[tmp];\n }\n markNegativeCycle(checked, to);\n }\n }\n if(negativeCycle == false){\n \t//If no negative cycle detected, then we are done!\n return;\n }\n //Step 3-2: Mark ALL elements that are reached through a negative cycle as negative cycle!\n checked[start] = true; //We have checked start, prevents infinite loop\n for(int i = 0; i < nodes; i++){\n if(checked[i] == false){\n int tmp = parent[i];\n checked[i] = true;\n while(true){\n \t//Mark elements reached t\n if(tmp == NOPARENT){\n break;\n }else if(checked[tmp] && hasNegativeCycle[tmp] == false){\n \t//Reached start or a non-negative-cycle part of the graph, done checking this part\n break;\n }else if(hasNegativeCycle[tmp]){\n \t//If parent of i has negative cycle\n \t//then reach through everything reached by it and mark as negative cycle\n tmp = i;\n while(hasNegativeCycle[tmp] == false){\n markNegativeCycle(checked, tmp);\n tmp = parent[tmp];\n }\n break;\n }\n checked[tmp] = true;\n tmp = parent[tmp];\n }\n }\n }\n }", "public DirectedCycle(Digraph G) {\n onStack = new boolean[G.V()];\n marked = new boolean[G.V()];\n edgeTo = new int[G.V()];\n\n //Cycle through each vertex to see if it is in a cycle\n for (int v = 0; v < G.V(); v++) {\n if (marked[v] == false) {\n dfs(G, v);\n }\n }\n }", "public void removeGraphCycles() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tint[] cycleCount = new int[map.size()];\r\n\t\tforComplexMotion = new boolean[map.size()];\r\n\t\t//count cycles\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(i != j) {\r\n\t\t\t\t\tif(graph[i][j] && graph[j][i]) {\r\n\t\t\t\t\t\tcycleCount[i]++;\r\n\t\t\t\t\t\tcycleCount[j]++;\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//remove fobjects from linear motion planning\r\n\t\tboolean hasCycles = true;\r\n\t\twhile(hasCycles) {\r\n\t\t\tint max = 0;\r\n\t\t\tint maxIndex = -1;\r\n\t\t\tfor(int i = 0; i < cycleCount.length; i++) {\r\n\t\t\t\tif(cycleCount[i] > max) {\r\n\t\t\t\t\tmax = cycleCount[i];\r\n\t\t\t\t\tmaxIndex = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(maxIndex == -1) {\r\n\t\t\t\thasCycles = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcycleCount[maxIndex] = 0;\r\n\t\t\t\tforComplexMotion[maxIndex] = true;\r\n\t\t\t\tfor(int i = 0; i < cycleCount.length; i++) {\r\n\t\t\t\t\tgraph[maxIndex][i] = false;\r\n\t\t\t\t\tgraph[i][maxIndex] = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void dfs(DirectedGraph graph, int node){\n onStack[node] = true;\n // marked the node as visited\n marked[node] = true;\n // traverse through the neigh of the node\n for(int neigh: graph.adj[node]){\n // if the cycle stack is not empty then we have cycle\n if (this.hasCycle()) return;\n else if (!marked[neigh]){\n // assign node as neigh parent to check cycle later\n parent[neigh] = node;\n // traverse through unvisited node\n dfs(graph,neigh);\n // if neigh is already visited and onstack then trace back to\n // check if the parent of node is the same as neigh\n }else if (onStack[neigh]){\n// System.out.println(\"neigh = \"+ neigh + \" node = \"+ node);\n // put all the vertex in the cycle to the stack\n int v = node;\n cycle.push(v);\n while(v != neigh){\n v = parent[v];\n cycle.push(v);\n }\n if(cycle.size() < 3) cycle = new Stack<>();\n else {\n System.out.print(\"The cycle is \");\n for (int vertex : cycle) System.out.print(vertex + \",\");\n System.out.println();\n }\n\n }\n }\n onStack[node] = false;\n }", "PythonAbstractCycleSlipDetector(double dt, int n) {\n super(dt, n);\n }", "public void test4_c() {/*\n\t\tGDGraph gdGraph = new GDGraph();\n\t\tGDGVertex gdVertex = gdGraph.addVertex();\n\t\tGDGEdge gdEdge1 = gdGraph.addEdge(gdVertex, gdVertex);\n\t\tGDGEdge gdEdge2 = gdGraph.addEdge(gdVertex, gdVertex);\n\n\t\tgdEdge1.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i, j - 1) \n\t\t\t\t{ 1, 0, 0},\n\t\t\t\t{ 0, 1, -1},\n\t\t\t\t{ 0, 0, 1}\n });\n\t\tgdEdge1.producedDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (0..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0},\n\t\t\t\t{ 0, 1, -1}\n\t\t});\n\n\t\tgdEdge2.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i - 1, j + 7) \n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, 7},\n\t\t\t\t{ 0, 0, 1}\n });\n\t\tgdEdge2.producedDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (1..+inf, 0..+inf)\n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, 0}\n\t\t});\n\n\t\tgdVertex.computationDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (1..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, -1}\n\t\t});\n\t\t\n\t\tgdGraph.calculateFeautrierSchedule(false);\n\t\n\t\tgdGraph.<Rational>codeGeneration(Rational.ZERO, Rational.ONE);\n\t*/}", "@Test public void testPublic13() {\n Graph<Integer> graph= TestGraphs.testGraph4();\n int i;\n\n for (i= 0; i < 4; i++)\n assertTrue(graph.isInCycle(i));\n\n assertFalse(graph.isInCycle(4));\n }", "public static boolean hasCycle(ListNode node) {\n\t\treturn true;\n\t}", "public boolean hasCycle(ListNode head) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next().next();\n\t\t\tslow=slow.next();\n\t\t\t//Meet at a point\n\t\t\tif (fast==slow) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "static boolean isCorrectCycle(Vertex v, LinkedList<Vertex> cycle, int print) {\r\n\r\n boolean ret = true;\r\n\r\n if (print > 1)\r\n System.out.println(\"Checking cycle with vertex \" + v + \": \" + cycle);\r\n\r\n // check for invalid parameters\r\n if (v == null || cycle == null || cycle.isEmpty()) {\r\n if (print > 0)\r\n System.out.println(\"null or empty parameter, no check\");\r\n return false;\r\n }\r\n\r\n // check for too short cycles, 4 is minimum (v-x-y-v)\r\n if (cycle.size() < 4) {\r\n if (print > 0)\r\n System.out.println(\"too short cycle: \" + cycle.size());\r\n ret = false;\r\n }\r\n\r\n // check for correct first and last in cycle\r\n if (cycle.getFirst() != v) {\r\n if (print > 0)\r\n System.out.println(\"Wrong first vertex \" + cycle.getFirst());\r\n ret = false;\r\n }\r\n if (cycle.getLast() != v) {\r\n if (print > 0)\r\n System.out.println(\"Wrong last vertex \" + cycle.getLast());\r\n ret = false;\r\n }\r\n\r\n // extra: check if first and last are different (other than v)\r\n\r\n // check that all successive vertices in list are adjacent in graph\r\n\r\n ListIterator<Vertex> li = cycle.listIterator();\r\n Vertex prev = null;\r\n while (li.hasNext()) {\r\n Vertex w = li.next();\r\n if (prev != null && ! prev.isAdjacent(w)) {\r\n if (print > 0)\r\n System.out.println(\"No edge between \" + prev + \" and \" + w);\r\n ret = false;\r\n }\r\n // check that v is not in the middle of cycle\r\n if (prev != null && li.hasNext() && w == v) {\r\n if (print > 0)\r\n System.out.println(\"Required vertex \" + v + \" in the middle of cycle\");\r\n ret = false;\r\n }\r\n\r\n prev = w;\r\n } // while\r\n\r\n if (print > 1 && ret)\r\n System.out.println(\"Valid cycle\");\r\n\r\n return ret;\r\n\r\n }", "public static Integer[] findC4 (Graph<Integer,String> g) {\n\t\tInteger[] cycle = new Integer[4];\r\n\t\tfor (Integer a : g.getVertices()) {\r\n\t\t\tif (IsA.Simplicial(g, a)) continue; // can't be in a C4.\r\n\t\t\tfor (Integer b : g.getNeighbors(a)) {\r\n\t\t\t\tfor (Integer c : g.getNeighbors(b)) {\r\n\t\t\t\t\tif (c == a || g.isNeighbor(a, c)) continue;\r\n\t\t\t\t\tfor (Integer d : g.getNeighbors(c)) {\r\n\t\t\t\t\t\tif (d==b || g.isNeighbor(b, d)) continue;\r\n\t\t\t\t\t\tif (g.isNeighbor(a, d)) {\r\n\t\t\t\t\t\t\tcycle[0]=a; cycle[1]=b; cycle[2]=c; cycle[3]=d;\r\n\t\t\t\t\t\t\treturn cycle;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null; // if no C4s are left\r\n\t}", "public int[] findMinimunPathBF(int src, int[][] graph) {\r\n\t\t// The distance from the src to each vertices.\r\n\t\tint[] dist = new int[graph.length];\r\n\t\t// Maximizing the distance of the sre to all the vertices.\r\n\t\tfor (int i = 0; i < dist.length; i++) {\r\n\t\t\tdist[i] = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tdist[src] = 0;\r\n\r\n\t\t// Loop |v|-1 times, For each edge in the graph.\r\n\t\tfor (int k = 0; k < graph.length - 1; k++) {\r\n\t\t\t// For each edge in the graph. \r\n\t\t\tfor (int i = 0; i < graph.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < graph.length; j++) {\r\n\t\t\t\t\t// Relax edge(i, j).\r\n\t\t\t\t\tif (graph[i][j] != 0) {\r\n\t\t\t\t\t\tif (dist[i] != Integer.MAX_VALUE\r\n\t\t\t\t\t\t\t\t&& dist[j] > dist[i] + graph[i][j]) {\r\n\t\t\t\t\t\t\tdist[j] = dist[i] + graph[i][j];\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\t// Check if there is a negative cycle, loop the edges.\r\n\t\tfor (int i = 0; i < graph.length; i++) {\r\n\t\t\t// For each edge in the graph.\r\n\t\t\tfor (int j = 0; j < graph.length; j++) {\r\n\t\t\t\tif (graph[i][j] != 0) {\r\n\t\t\t\t\t// Still can relax the edges?.\r\n\t\t\t\t\tif (dist[i] != Integer.MAX_VALUE\r\n\t\t\t\t\t\t\t&& dist[j] > dist[i] + graph[i][j]) {\r\n\t\t\t\t\t\t// Put a sign of having a negative cycle.\r\n\t\t\t\t\t\tdist[0] = Integer.MIN_VALUE;\r\n\t\t\t\t\t\treturn dist;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dist;\r\n\t}", "private int caclSteps(float g, float h, float i) {\n\t\tint steps = 0;\n\t\tfloat currSpeed = i;\n\t\tfloat f = 0;\n\t\twhile(f<g){\n\t\t\tf +=currSpeed;\n\t\t\tcurrSpeed+=h;\n\t\t\tsteps++;\n\t\t\t\n\t\t}\n\t\treturn steps;\n\t}", "boolean hasCycle(Node head) {\n node = head;\n //h.add(node.data);//just add the first one //node = node.next; //get to the next one where we, at 2nd best case, will Find Cycle\n while (node.next != null){\n if ( h.contains(node.data) ){\n return true;\n }else {\n h.add(node.data);\n }\n node = node.next;\n }\n return false;\n }", "public boolean isCycle(int V, ArrayList<ArrayList<Integer>> adj)\n {\n boolean visited[] = new boolean[V];\n Arrays.fill(visited, false);\n \n for(int i = 0;i<V;i++)\n {\n if(!visited[i] && isCyclicU(i, V, visited, adj))\n return true;\n }\n \n return false;\n \n }", "private ClosureIteratorEvaluator(boolean stopOnCycle) {\n this.stopOnCycle = stopOnCycle;\n }", "public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 38;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 36;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 32;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==4){\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 30;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\treturn recCurrent;\n\t}", "private void findDetectivePath() {\n Cell current, next;\n detectivePath = new ArrayDeque<>();\n clearVisitedMarks();\n current = detective;\n current.visited = true;\n\n while (true) {\n next = nextNotVisitedCell(current);\n if (next == killer) {\n detectivePath.addLast(current);\n detectivePath.addLast(next);\n break;\n } else if (next != null) {\n detectivePath.addLast(current);\n current = next;\n current.visited = true;\n } else {\n current = detectivePath.pollLast();\n }\n }\n detectivePath.pollFirst();\n }", "@Test\n public void cyclicalGraphs1Test() throws Exception {\n // NOTE: we can't use the parser to create a circular graph because\n // vector clocks are partially ordered and do not admit cycles. So we\n // have to create circular graphs manually.\n ChainsTraceGraph g1 = new ChainsTraceGraph();\n List<EventNode> g1Nodes = addNodesToGraph(g1, new String[] { \"a\", \"a\",\n \"a\" });\n // Create a loop in g1, with 3 nodes\n g1Nodes.get(0).addTransition(g1Nodes.get(1), Event.defTimeRelationStr);\n g1Nodes.get(1).addTransition(g1Nodes.get(2), Event.defTimeRelationStr);\n g1Nodes.get(2).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g1, 0);\n\n ChainsTraceGraph g2 = new ChainsTraceGraph();\n List<EventNode> g2Nodes = addNodesToGraph(g2, new String[] { \"a\", \"a\" });\n // Create a loop in g2, with 2 nodes\n g2Nodes.get(0).addTransition(g2Nodes.get(1), Event.defTimeRelationStr);\n g2Nodes.get(1).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g2, 1);\n\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 3);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 4);\n\n ChainsTraceGraph g3 = new ChainsTraceGraph();\n List<EventNode> g3Nodes = addNodesToGraph(g2, new String[] { \"a\" });\n // Create a loop in g3, from a to itself\n g3Nodes.get(0).addTransition(g3Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g3, 2);\n\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 3);\n\n ChainsTraceGraph g4 = new ChainsTraceGraph();\n List<EventNode> g4Nodes = addNodesToGraph(g2, new String[] { \"a\" });\n exportTestGraph(g4, 2);\n\n testKEqual(g4Nodes.get(0), g2Nodes.get(0), 1);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 2);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 3);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 4);\n }" ]
[ "0.7247716", "0.6347063", "0.632394", "0.6276658", "0.61966586", "0.6050733", "0.60252476", "0.60202444", "0.5977466", "0.5906754", "0.58407104", "0.5821733", "0.5815338", "0.5779041", "0.5758277", "0.5727129", "0.5714366", "0.5678141", "0.56218123", "0.56192905", "0.5610208", "0.5593063", "0.55701816", "0.5512774", "0.5481643", "0.5446477", "0.54010636", "0.53640187", "0.535153", "0.53446925", "0.5334328", "0.5318932", "0.53132594", "0.5289793", "0.52813774", "0.52812546", "0.52422833", "0.523962", "0.52302855", "0.5192558", "0.5181778", "0.51743454", "0.51689625", "0.5167273", "0.5160588", "0.5154711", "0.514331", "0.5116612", "0.5103015", "0.5096968", "0.50800174", "0.5069104", "0.5062944", "0.5057381", "0.5053714", "0.5047692", "0.50416285", "0.5034497", "0.49980932", "0.4995847", "0.4982496", "0.49518475", "0.49492475", "0.49361384", "0.49251467", "0.49239326", "0.4921346", "0.49205405", "0.49090457", "0.4907802", "0.48972112", "0.48857957", "0.48856974", "0.48856974", "0.48735365", "0.48714978", "0.48662293", "0.48558003", "0.4841207", "0.48329976", "0.48254874", "0.48197034", "0.48193523", "0.4796743", "0.47860315", "0.47828114", "0.4776451", "0.47689897", "0.4765739", "0.47615042", "0.47557572", "0.4753528", "0.47523117", "0.47522554", "0.47498706", "0.47480232", "0.47429824", "0.47292745", "0.47271013", "0.47246075" ]
0.73990816
0
Find function cycle using HashSet
private static FunctionCycle findCycleWithHashingInternal(IntUnaryOperator func, int x0) { IntHashSet detectedValues = new IntHashSet(); int curValue = x0; while (!detectedValues.contains(curValue)) { detectedValues.add(curValue); curValue = func.applyAsInt(curValue); } final int startPoint = curValue; curValue = func.applyAsInt(curValue); int length = 1; while (curValue != startPoint) { curValue = func.applyAsInt(curValue); ++length; } return new FunctionCycle(startPoint, length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Set<NFAState> eClosure(NFAState s) {\r\n\t\tSet<NFAState> l = new HashSet<>();\r\n\t\treturn depthFirstSearch(l, s);\r\n\t}", "private void reachable(Set s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n s.add(ap);\n ((AccessPath)ap.getObject()).reachable(s);\n }\n }\n }", "@Override\n\tpublic Set<NFAState> eClosure(NFAState s) {\n\t\tSet<NFAState> visited = new TreeSet<NFAState>();\n\t\t//invoke recursive helper\n\t\tvisited = eClosureHelper(s, visited);\n\t\t\n\t\treturn visited;\n\t}", "void mo30185a(HashSet<zzawj> hashSet);", "private Set<NFAState> eClosureHelper(NFAState s, Set<NFAState> visited ) {\n\t\t//check if eClosure is possible on the given state\n\t\tif (!s.hasNextE()) {\n\t\t\tif (visited.size() == 0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn visited;\n\t\t}\n\t\t\n\t\tSet<NFAState> newStates = s.getTo('e');\n\t\t\n\t\tfor (NFAState state: newStates) {\n\t\t\tfor(NFAState visitedState : visited) {\n\t\t\t\tif(state.getName().equals(visitedState.getName())) {\n\t\t\t\t\t//if the current state is already in visited, return to avoid an infinite loop\n\t\t\t\t\treturn visited;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvisited.add(state);\n\t\t\tvisited.addAll(eClosureHelper(state, visited));\n\t\t\t\n\t\t}\n\t\t\n\t\treturn visited;\n\n\t}", "private AccessPath findNode(Node n, HashSet s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n AccessPath p = (AccessPath)ap.getObject();\n if (n == p._n) return p;\n s.add(ap);\n AccessPath q = p.findNode(n, s);\n if (q != null) return q;\n }\n }\n return null;\n }", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public void findMutual(){\n\n }", "private static int find(int i)\r\n{\n int ind = i;\r\n while (ind != ptrs[ind]) {\r\n ind = ptrs[ind];\r\n }\r\n // fix the link so that it is one hop only\r\n // note: this doesn't implement the full union-find update\r\n\r\n ptrs[i] = ind;\r\n\r\n return ind;\r\n}", "private void findNext() {\n \tthis.find(true);\n }", "private BasicBlock getUniqueNext(ControlFlowGraph graph, HashSet<BasicBlock[]> setNext) {\n\t\t\n\t\tBasicBlock next = null;\n\t\tboolean multiple = false;\n\t\t\n\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\n\t\t\tif(arr[2] != null) {\n\t\t\t\tnext = arr[1];\n\t\t\t\tmultiple = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif(next == null) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t} else if(next != arr[1]) {\n\t\t\t\t\tmultiple = true;\n\t\t\t\t}\n\n\t\t\t\tif(arr[1].getPreds().size() == 1) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(multiple) { // TODO: generic solution\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tBasicBlock block = arr[1];\n\t\t\t\t\n\t\t\t\tif(block != next) {\n\t\t\t\t\tif(InterpreterUtil.equalSets(next.getSuccs(), block.getSuccs())) {\n\t\t\t\t\t\tInstructionSequence seqNext = next.getSeq();\n\t\t\t\t\t\tInstructionSequence seqBlock = block.getSeq();\n\n\t\t\t\t\t\tif(seqNext.length() == seqBlock.length()) {\n\t\t\t\t\t\t\tfor(int i=0;i<seqNext.length();i++) {\n\t\t\t\t\t\t\t\tInstruction instrNext = seqNext.getInstr(i);\n\t\t\t\t\t\t\t\tInstruction instrBlock = seqBlock.getInstr(i);\n\n\t\t\t\t\t\t\t\tif(instrNext.opcode != instrBlock.opcode || instrNext.wide != instrBlock.wide\n\t\t\t\t\t\t\t\t\t\t|| instrNext.operandsCount() != instrBlock.operandsCount()) {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tfor(int j=0;i<instrNext.getOperands().length;j++) {\n\t\t\t\t\t\t\t\t\tif(instrNext.getOperand(j) != instrBlock.getOperand(j)) {\n\t\t\t\t\t\t\t\t\t\treturn null;\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} else {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n//\t\t\ttry {\n//\t\t\t\tDotExporter.toDotFile(graph, new File(\"c:\\\\Temp\\\\fern5.dot\"), true);\n//\t\t\t} catch(IOException ex) {\n//\t\t\t\tex.printStackTrace();\n//\t\t\t}\n\t\t\t\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tif(arr[1] != next) {\n\t\t\t\t\t// FIXME: exception edge possible?\n\t\t\t\t\tarr[0].removeSuccessor(arr[1]);\n\t\t\t\t\tarr[0].addSuccessor(next);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tDeadCodeHelper.removeDeadBlocks(graph);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn next;\n\t}", "private void findLast(HashSet s, Set last) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n s.add(ap);\n AccessPath that = (AccessPath)ap.getObject();\n if (that._last) last.add(ap);\n that.findLast(s, last);\n }\n }\n }", "public Set<V> findCycles()\n {\n // ProbeIterator can't be used to handle this case,\n // so use StrongConnectivityAlgorithm instead.\n StrongConnectivityAlgorithm<V, E> inspector =\n new KosarajuStrongConnectivityInspector<>(graph);\n List<Set<V>> components = inspector.stronglyConnectedSets();\n\n // A vertex participates in a cycle if either of the following is\n // true: (a) it is in a component whose size is greater than 1\n // or (b) it is a self-loop\n\n Set<V> set = new LinkedHashSet<>();\n for (Set<V> component : components) {\n if (component.size() > 1) {\n // cycle\n set.addAll(component);\n } else {\n V v = component.iterator().next();\n if (graph.containsEdge(v, v)) {\n // self-loop\n set.add(v);\n }\n }\n }\n\n return set;\n }", "private Set<ServiceNode> discoverService(Collection<ServiceNode> services, Set<String> searchSet) {\n\t\tSet<ServiceNode> found = new HashSet<ServiceNode>();\n\t\tfor (ServiceNode s: services) {\n\t\t\tif (isSubsumed(s.getInputs(), searchSet))\n\t\t\t\tfound.add(s);\n\t\t}\n\t\treturn found;\n\t}", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "void runC() {\n\t\tArrayList<Link> links_s2 = new ArrayList<Link>(links_s);\n\t\tArrayList<Link> links_p2 = new ArrayList<Link>(links_p);\n\t\talgorithmC = new HashSet<Link>(algorithmC(links_p2, links_s2));\n\t}", "public static Set<Integer> find(int[] arr)\r\n\t{\n\t\tSet<Integer> set1=new HashSet<>();\r\n\t\tSet<Integer> set2=new HashSet<>();\r\n\t\t\r\n\t\t//Here Storing the Integers in set1 And set2 so, here set1 And set2 will not allow to store\r\n\t\t//duplicate integers\r\n\t\tfor(Integer i:arr)\r\n\t\t{\r\n\t\t\tset1.add(i);\r\n\t\t\tset2.add(i);\r\n\t\t}\r\n\t\t//Now set1 & set2 contains non duplicate Integers\r\n\t\t// One for every integer in set1 and for every integer in given array And and int counter=0\r\n\t\t //here if Integer in set1 equals to Integer in given array,Then increase the counter.\r\n\t\t\r\n\t\tfor(Integer i:set1)\r\n\t\t{\r\n\t\t\tint count=0;\r\n\t\t\tfor(Integer a:arr)\r\n\t\t\t{\r\n\t\t\t\t//Integer in set1==Integer in array counter will increases by one \r\n\t\t\t\tif(i==a)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//If count of that integer greater or equal to 2 then delete that Integer in set2\r\n\t\t\tif(count>=2)\r\n\t\t\t{\r\n\t\t\t\tset2.remove(i);\r\n\t\t\t\t//NOTE:- Here I Took set2 because I can not delete the Integer in set1 because it is already in use(Concurrent Modification Exception)\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Returning the set2 which containing NonRepeated Integers\r\n\t\treturn set2;\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}", "public Set<T> noFollow(T elem) {\n\t\t Set<T> s = rule.get(elem.hashCode());\n\t\t return s == null ? new HashSet<T>() :s; // TODO YOUR CODE HERE\n\t}", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "private static Set<C3246b> m11181b(Set<C3246b> set) {\n HashSet hashSet = new HashSet();\n for (C3246b next : set) {\n if (next.mo20822f()) {\n hashSet.add(next);\n }\n }\n return hashSet;\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "private int find(int p){\n while(p!=id[p]){\n p=id[p];\n eachDoUnionArrayAccessTimes+=2; //遍历读取某个元素算一次,设置值也算一次,所以加2次\n }\n eachDoUnionArrayAccessTimes++; //查询p的时候依然会读取一次\n return p;\n }", "public Collection<MatchingPair> matchingPairs(Collection<Integer> values, Integer targetSum)\n {\n HashMap<Integer, Integer> tableCompteur = new HashMap<>();\n LinkedHashMap<Integer, Integer> tablePaire = new LinkedHashMap<Integer, Integer>();\n Collection<MatchingPair> paireSansDuplication = new LinkedList();\n Collection<MatchingPair> solution = new LinkedList();\n\n // On itere sur les valeurs donnee pour savoir le compte de chaque valeur\n for (Integer valeur : values)\n {\n if (tableCompteur.containsKey(valeur))\n {\n // Partie Compteur\n Integer compteur = tableCompteur.get(valeur);\n compteur++;\n tableCompteur.put(valeur, compteur);\n }\n else {\n tableCompteur.put(valeur, 0);\n }\n\n }\n\n // On itere sur les valeurs donnee pour savoir les paires\n for (Integer element : values)\n {\n int temp = targetSum - element;\n if (tablePaire.containsKey(element))\n {\n if (tablePaire.get(element) != null)\n {\n paireSansDuplication.add(new MatchingPair(element, temp));\n }\n // si la table contient l'element on met nul pour ne pas avoir de repetition\n tablePaire.put(temp, null);\n }\n else if (!tablePaire.containsKey(element))\n {\n tablePaire.put(temp, element);\n }\n }\n\n // On trouve le minimum count entre les paire et leur compte pour tenir en compte de toutes les possibilites. Ici le meilleur cas reste O(n) ( pas de paire)\n for (MatchingPair paire : paireSansDuplication)\n {\n if (paire != null) { // verification au debug pr erreur nullpointer\n int a = tableCompteur.get(paire.first);\n int b = tableCompteur.get(paire.second);\n int minCount = Math.min(a+1, b+1);\n for (int i = 0; i < pow(minCount, 2); i++)\n {\n solution.add(new MatchingPair(paire.first, paire.second));\n }\n }\n }\n return solution;\n }", "@Override\n public Function<TradeAccumulator, Set<Trade>> finisher() {\n return (accum) -> {return accum.toSet();};\n }", "BasicSet NextClosure(BasicSet M,BasicSet A){\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\t\t\t\t//System.out.println(\"ll11 \"+fermes);\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\t\t\t\tBasicSet b=ap.CalculYseconde(A,context);\r\n\r\n\t\t\t\t//BasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\t//System.out.println(\"b sec \"+b);\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "public static Set<Character> XClosure(FDs fd, Set<Character> x)\n {\n Set <Character> closure = new TreeSet<Character>(x); // take a new set object\n int size0 = 0;\n while(size0 < closure.size()) // it trues because closure has value of X\n // which contains intial characters whose closure we have to find ex: BHE\n {\n size0 = closure.size();\n // left object contains left side of FDs which are keys\n // so add those attributes which are right side of keys from closure.\n // call getFDMap()\n // call keySet() which is in-built method of java\n // ex: find BHE closure. First it gets keys(which are at left side of FDs) of B, H, E individually or together\n // Now it adds all attribute from right side. And again check left side of all attributes we get at a first time from a loop\n // if we get another attributes which is a part of keys then it adds otherwise stops a loop and gives a final answer\n // Like, BHE closure: first check B into left side and if it is a part of a key then add right side of attributes in closure\n // B is part of key AB and from it we derives E but E is already in closure so it checks next\n // then check BE together and add I into closure\n // then check E and add G into closure\n // then check GI together and add H into closure\n // now there are not any other attribute from left side is same as closure so it stops and gives the final answer BHEIG.\n for( Set<Character> left : fd.getFDMap().keySet())\n {\n if(closure.containsAll(left)) {\n closure.addAll(fd.getFDMap().get(left));\n }\n }\n } // end of loop\n return closure; // return closure\n }", "public abstract Set<Map.Entry<K, V>> a();", "public abstract HashSet<Location> getPossibleMovements(GameBoard board);", "public interface ISet<T> {\n\n // Maximum possible size of data structures\n int MAX_SIZE = 100;\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain one of each int from both unionWith and this]\n * @param unionWith ISet to find the union from\n */\n default void union(ISet<T> unionWith) {\n T temp;\n int tsize = unionWith.getSize();\n//For every element in unionWith...\n for (int i = 0; i < tsize; i++) {\n //Store value at first position\n //Remove value from unionWith\n temp = unionWith.removePos(0);\n //If this set does not contain value from unionWith...\n if (!this.contains(temp)) {\n //Add value to this set\n this.add(temp);\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are not in diffWith]\n * @param diffWith ISet to find the difference from\n */\n default void difference(ISet<T> diffWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If diffWith does not contain value from this set...\n if(!diffWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are also found in intWith]\n * @param intWith ISet to find the intersection from\n */\n default void intersect(ISet<T> intWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If intWith does not contain value from this set...\n if(intWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n\n }\n\n\n /**\n * @pre [ISet initialized]\n * @post [ISet contains same elements with a\n * new element - add - placed at the end]\n * @param add T value to be added to ISet\n */\n void add(T add);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and pos >= 0\n * @post [ISet contains same elements as\n * when it was passed, without element at pos] and [T returned]\n * @param pos position in ISet to be removed\n * @return T of position where the element was removed\n */\n T removePos(int pos);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and val != NULL\n * @post [ISet unmodified] and [boolean returned]\n * @param val value to be searched in ISet\n * @return true if ISet contains val, otherwise false\n */\n boolean contains(T val);\n\n /**\n * @pre [ISet initialized with constructor]\n * @post [ISet, size of ISet unmodified] and [int returned]\n * @return int value of the size of the ISet\n */\n int getSize();\n\n}", "public static void main(String[] args) {\n int [] A = {5,1,5,2,5,3,5,4};\n HashSet<Integer> aa = new HashSet<>();\n for (int i = 0; i <A.length ; i++) {\n if (aa.contains(A[i])) {\n System.out.println(A[i]);\n break;\n }else\n aa.add(A[i]);\n\n }\n\n }", "protected Set<Integer> getToReplace() {\r\n \r\n Set<Integer> toReplace = new HashSet<>();\r\n double distance;\r\n Individual a, b;\r\n \r\n for(int i = 0; i < this.P.size()-1; i++) {\r\n \r\n a = this.P.get(i);\r\n \r\n for(int j = i+1; j < this.P.size(); j++) {\r\n \r\n b = this.P.get(j);\r\n \r\n distance = this.getSquaredEuclideanDistance(a.vector, b.vector);\r\n \r\n if(distance < this.minDifference) {\r\n \r\n if(a.fitness < b.fitness) {\r\n toReplace.add(j);\r\n } else {\r\n toReplace.add(i);\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n return toReplace;\r\n \r\n }", "@Override\n public int find(int p) {\n while (p != id[p]) { p = id[p]; }\n return p;\n }", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>(10);\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\" + i, i));\n }\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\", 15));\n }\n Person p1 = new Person(\"person\", 15);\n Person p2 = new Person(\"person\", 15);\n System.out.println(p1 + \" hascode: \" + p1.hashCode());\n System.out.println(p2 + \" hascode: \" + p2.hashCode());\n System.out.println(\"person1 equals person2 \" + p1.equals(p2));\n for (Person person : set) {\n System.out.println(person);\n }\n }", "public void search() {\n while (!done) {\n num2 = mNums.get(cntr);\n num1 = mSum - num2;\n\n if (mKeys.contains(num1)) {\n System.out.printf(\"We found our pair!...%d and %d\\n\\n\",num1,num2);\n done = true;\n } //end if\n\n mKeys.add(num2);\n cntr++;\n\n if (cntr > mNums.size()) {\n System.out.println(\"Unable to find a matching pair of Integers. Sorry :(\\n\");\n done = true;\n }\n } //end while\n }", "HashSet<NFA_State> NFAinTable(HashSet<NFA_State> nfds){\n\t\tfor(HashSet<NFA_State> nfd_set:table_n2d.keySet()){\n\t\t\tif(nfds.containsAll(nfd_set) && nfd_set.containsAll(nfds))\n\t\t\t\treturn nfd_set;\n\t\t}\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n/*\n * Implementações\n * Set notas = new HashSet(); --> antes do Java 5\n * HashSet<Double> notas = new HashSet<>();\n * Set<Double> notas = new HashSet<>(); //--> Generics (jdk5) - Diamond Operator(jdk7)\n * \n */\n\t\t//--> Set não aceita elementos duplicados \n//\t\tSet<Double> notas = Set.of(7d, 8.5, 9.3, 5d, 7d, 0d, 3.6); \t\t\n//\t\tnotas.add(1d);\n//\t\tnotas.add(1d);\n//\t\tSystem.out.println(notas);\n\t\t\n\t\t\tSystem.out.println(\"Crie um conjunto e adicione as notas:\");\n\t\t\t//Elementos serão impressos em ordem aleatória\n\t\t\t//Elementos duplicados não serão impressos\n\t\t\tSet<Double> notas = new HashSet<>(Arrays.asList(7d, 8.5, 9.3, 5d, 7d, 0d, 3.6));\n\t\t\tSystem.out.println(notas.toString());\n\t\t\t\n\t\t\t//indexOf --> Set não trabalha com indice, não é possível fazer a pesquisa\n//\t\t\tSystem.out.println(\"Exiba a posição da nota 5.0: \" + notas.indexOf(5.0));\n\n\t\t\t\t// não se trabalha com indice(posição) no Set\n//\t\t\t\tSystem.out.println(\"Adicione na lista a nota 8.0 na posição 4: \");\n\n\t\t\t\t// set --> não há como fazer atualizacao usando Set\n//\t\t\t\tSystem.out.println(\"Substitua a nota 5.0 pela nota 6.0:\");\n//\t\t\t\tnotas.set(notas.indexOf(5.0), 6.0);\n//\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t// contains --> retorna boolean (true or false) se determinado elemento existe\n\t\t\t\t// na lista\n\t\t\t\tSystem.out.println(\"Confira se a nota 5.0 está na lista: \" + notas.contains(5.0));\n\n\t\t\t\t// get --> não consegue executar o método em Set apenas em List\n//\t\t\t\tSystem.out.println(\"Exiba a terceira nota: \" + notas.get(2));\n//\t\t\t\tSystem.out.println(notas.toString());\n\t\t\t\t\n\t\t\t\t// Collections.min/max --> não existem métodos nativos em Set para\n\t\t\t\t// comparacao de valores minimos e maximos\n\t\t\t\t// porém sendo Set uma Collection\n\t\t\t\t// pode-se utilizar metodos de Collections na implementacao\n\t\t\t\tSystem.out.println(\"Exiba a menor nota: \" + Collections.min(notas));\n\t\t\t\t// Collections.max\n\t\t\t\tSystem.out.println(\"Exiba a maior nota: \" + Collections.max(notas));\n\t\t\t\t\n\t\t\t\t// Soma de valores\n\t\t\t\tIterator<Double> iterator = notas.iterator();\n\t\t\t\tDouble soma = 0d;\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\tDouble next = iterator.next();\n\t\t\t\t\tsoma += next;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Exiba a soma dos valores: \" + soma);\n\n\t\t\t\t// Media dos valores\n\t\t\t\tSystem.out.println(\"Exiba a média dos valores: \" + (soma / notas.size()));\n\n\t\t\t\t// remove --> pode ser usado para remocao pelo elemento ou indice\n\t\t\t\tSystem.out.println(\"Remova a nota 0.0\");\n\t\t\t\tnotas.remove(0.0); // remocao do elemento 0.0 ou 0d\n\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t// remove na posição --> não pode ser usado pois Set não é indexado\n//\t\t\t\tSystem.out.println(\"Remova a nota na posição 0\");\n//\t\t\t\tnotas.remove(0);\n//\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t// Remocao de uma colecao de elementos\n\t\t\t\tIterator<Double> iterator1 = notas.iterator();\n\t\t\t\twhile (iterator1.hasNext()) {\n\t\t\t\t\tDouble next = iterator1.next();\n\t\t\t\t\tif (next < 7)\n\t\t\t\t\t\titerator1.remove();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t//Implementando o conjunto com LinkedHasSet\n\t\t\t\t//Exibir os elementos na ordem em que foram inseridos\n\t\t\t\tSystem.out.println(\"Exiba todas as notas na ordem em que foram inseridos:\");\n\t\t\t\tSet<Double> notas2 = new LinkedHashSet<>();\n\t\t\t\tnotas2.add(7.0);\n\t\t\t\tnotas2.add(8.5);\n\t\t\t\tnotas2.add(9.3);\n\t\t\t\tnotas2.add(5.0);\n\t\t\t\tnotas2.add(7.0);\n\t\t\t\tnotas2.add(0.0);\n\t\t\t\tnotas2.add(3.6);\n\t\t\t\t\n\t\t\t\tSystem.out.println(notas2);\n\n\t\t\t\t//Implementando o conjunto com TreeSet\n\t\t\t\t//Exibir os elementos na ordem crescente\n\t\t\t\tSystem.out.println(\"Exiba todas as notas na ordem crescente:\");\n\t\t\t\tSet<Double> notas3 = new TreeSet<>(notas2);\n\t\t\t\tSystem.out.println(notas3);\n\t\t\t\t\n\t\t\t\t// clear --> apagar um conjunto\t\t\n\t\t\t\tSystem.out.println(\"Apague todo o conjunto\"); \n\t\t\t\tnotas.clear();\n\t\t\t\tSystem.out.println(notas);\n\t\t\t\t\n\t\t\t\t// isEmpty --> retorna boolean (true or false) para validacao se a lista\n\t\t\t\t// encontra-se vazia ou nao\n\t\t\t\tSystem.out.println(\"Confira se o conjunto está vazio notas1: \" + notas.isEmpty());\n\t\t\t\tSystem.out.println(\"Confira se o conjunto está vazio notas2: \" + notas2.isEmpty());\n\t\t\t\tSystem.out.println(\"Confira se o conjunto está vazio: notas3\" + notas3.isEmpty());\n\t\t\t}", "public void hashSet() {\n\n Set<Integer> num = new java.util.HashSet<>();\n\n num.add(3);\n num.add(11);\n num.add(6);\n\n System.out.println(num);\n\n for (int i = 1; i <= 10; i++) {\n\n if (num.contains(i)) {\n\n System.out.println(\"\\n\\t\" + i + \"\\t is found in set\");\n\n }\n\n }\n\n }", "BasicSet NextLClosure(BasicSet M,BasicSet A){\r\n\t\t//ConceptLattice cp=new ConceptLattice(context);\r\n\t\t//ApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\r\n\r\n\t\t\t\tBasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "public void run()\n {\n Set<Integer> set = new HashSet<>();\n set.add(3);\n set.add(5);\n set.add(9);\n set.add(3);\n set.add(11);\n set.add(8);\n set.add(7);\n \n System.out.println(hasEven(set));\n }", "private Set<BitSet> findMinimalSet(List<Set<BitSet>> pFunction) {\n\n\t\tSet<BitSet> minimalSet = new LinkedHashSet<>(pFunction.get(0));\n\t\tSet<BitSet> helpSet = new LinkedHashSet<>(pFunction.get(0));\n\t\tint pFunctionSize = pFunction.size();\n\n\t\tfor (int i = 0; i < pFunctionSize - 1; i++) {\n\t\t\tminimalSet.clear();\n\n\t\t\tfor (BitSet bitSet : helpSet) {\n\n\t\t\t\tSet<BitSet> set = pFunction.get(i + 1);\n\n\t\t\t\tfor (BitSet bitSet2 : set) {\n\t\t\t\t\tBitSet help = (BitSet) bitSet.clone();\n\t\t\t\t\thelp.or(bitSet2);\n\t\t\t\t\tminimalSet.add(help);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thelpSet.clear();\n\t\t\thelpSet.addAll(minimalSet);\n\t\t}\n\t\tlogSumOfProducts(minimalSet);\n\n\t\tint cardinality = minimalSet.stream().min((a, b) -> Integer.compare(a.cardinality(), b.cardinality()))\n\t\t\t\t.map(BitSet::cardinality).get();\n\n\t\tminimalSet = minimalSet.stream().filter(e -> e.cardinality() == cardinality)\n\t\t\t\t.collect(Collectors.toCollection(LinkedHashSet::new));\n\n\t\treturn minimalSet;\n\t}", "public HashSet<N> getSuccessors(N node)\r\n/* 26: */ {\r\n/* 27: 56 */ assert (checkRep());\r\n/* 28: 57 */ return new HashSet(((Map)this.map.get(node)).keySet());\r\n/* 29: */ }", "private long solveHelper(BitSet S){\n if(dp.containsKey(S))\n return dp.get(S);\n\n boolean allset = true;\n for(int i=0; i<SLen; ++i)\n allset = allset && S.get(i);\n\n if(allset)\n return 0;\n\n long minflip = INF;\n\n int idx = 0;\n for(; idx<=SLen-K; ++idx)\n if(!S.get(idx))\n break;\n\n if(idx <= SLen-K){\n track.add(S);\n S.flip(idx, idx+K);\n minflip = Math.min(minflip, solveHelper(S) + 1);\n }\n\n /*for(; idx<=SLen-K; ++idx){\n S.flip(idx, idx+K);\n if(!track.contains(S)) {\n\n track.remove(S);\n }\n S.flip(idx, idx+K);\n }*/\n\n dp.put(S, minflip);\n return minflip;\n }", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter the size of the array\");\n int n = sc.nextInt();\n int arr[] = new int[n];\n System.out.println(\"enter the elements in the array\");\n for (int i = 0; i < arr.length; i++) {\n arr[i] = sc.nextInt();\n }\n HashSet<Integer> set = new HashSet<Integer>();\n for (int k = 0; k < n; k++) {\n set.add(arr[k]);\n }\n LinkedList list = new LinkedList(set);\n for (int l = 0; l < list.size(); l++) {\n int val = ((Integer) list.get(l)).intValue();\n if (duplicate(arr, val) > 1)\n System.out.println(\"Occurence of \" + val + \" is \" + duplicate(arr, val));\n }\n }", "public static void main(String[] args) {\n HashSet<String> food = new HashSet<>();\n food.add(\"Sushi\");\n food.add(\"Sashimi\");\n food.add(\"Pizza\");\n food.add(\"Japadog\");\n food.add(\"Sushi\");\n System.out.println(food.size());\n\n HashSet<String> food2 = new HashSet<>();\n food2.add(\"Pizza\");\n food2.add(\"Pasta\");\n food2.add(\"Sushi\");\n food2.add(\"Taco\");\n food2.add(\"Burrito\");\n food2.add(\"Nachos\");\n food2.add(\"Feijoada\");\n food2.add(\"Coxinha\");\n// food.addAll(food2);\n// food.retainAll(food2); // common\n\n System.out.println(food);\n System.out.println(food.contains(\"Sushi\"));\n }", "@Override\n public int hashCode()\n {\n return Objects.hash(startAt, lookingAt);\n }", "public static void main(String[] args) {\n Set<String> mySet = new HashSet<String>(100,50);\n mySet.add(\"APPLE\");\n mySet.add(\"LG\");\n mySet.add(\"HTTC\");\n mySet.add(\"APPLE\");\n mySet.add(\"SAMSUNG\");\n Iterator<String> iterator = mySet.iterator();\n while (iterator.hasNext()){\n System.out.println(iterator.next());\n }\n\n\n\n }", "public Set<E> getNextSet()\r\n/* */ {\r\n/* 155 */ List<E> result = getNextArray();\r\n/* 156 */ if (result == null) {\r\n/* 157 */ return null;\r\n/* */ }\r\n/* */ \r\n/* 160 */ Set<E> resultSet = new LinkedHashSet(result);\r\n/* 161 */ return resultSet;\r\n/* */ }", "public Vector<BasicSet> AllClosure(){\r\n\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tboolean success=false;\r\n\t\tint i=0;\r\n\t\t//BasicSet b=new BasicSet();\r\n\t\tfermes.add(FirstClosure());\r\n\t\tBasicSet attributs=new BasicSet();\r\n\t\tattributs.addAll(context.getAttributes());\r\n\t\twhile(success==false){\r\n\t\t\t//System.out.println(\"fermeeees iiii \"+fermes.get(i));\r\n\t\t\tBasicSet clone=(BasicSet) fermes.get(i).clone();\r\n\t\t\tfermes.add(NextClosure(attributs,clone));\r\n\t\t\t//System.out.println(\"fermeeees \"+fermes);\t\r\n\t\t\tif(fermes.lastElement().size()==context.getAttributeCount()){\r\n\t\t\t\tsuccess=true;\r\n\t\t\t\t//System.out.println(\"iiiii \"+i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn fermes;\r\n\t}", "public HashSet<Point> getValidMoves(){\n HashSet<Point> set = new HashSet<Point>();\n if(this.validMove(this.x() + 2, this.y() + 1)){\n set.add(new Point(this.x() + 2, this.y() + 1));\n }\n if(this.validMove(this.x() + 2, this.y() - 1)){\n set.add(new Point(this.x() + 2, this.y() - 1));\n }\n if(this.validMove(this.x() - 2, this.y() + 1)){\n set.add(new Point(this.x() - 2, this.y() + 1));\n }\n if(this.validMove(this.x() - 2, this.y() - 1)){\n set.add(new Point(this.x() - 2, this.y() - 1));\n }\n if(this.validMove(this.x() + 1, this.y() + 2)){\n set.add(new Point(this.x() + 1, this.y() + 2));\n }\n if(this.validMove(this.x() + 1, this.y() - 2)){\n set.add(new Point(this.x() + 1, this.y() - 2));\n }\n if(this.validMove(this.x() - 1, this.y() + 2)){\n set.add(new Point(this.x() - 1, this.y() + 2));\n }\n if(this.validMove(this.x() - 1, this.y() - 2)){\n set.add(new Point(this.x() - 1, this.y() - 2));\n }\n return set;\n }", "private Collection<? extends AbstractState> getFollowStates(AutomatonState state, List<AbstractState> otherElements, CFAEdge edge, boolean failOnUnknownMatch) throws CPATransferException {\n Preconditions.checkArgument(!(state instanceof AutomatonUnknownState));\n if (state == cpa.getBottomState()) {\n //return Collections.singleton(state);\n return Collections.emptySet();\n }\n\n if (state.getInternalState().getTransitions().isEmpty()) {\n // shortcut\n return Collections.singleton(state);\n }\n\n Collection<AbstractState> lSuccessors = new HashSet<AbstractState>(2);\n AutomatonExpressionArguments exprArgs = new AutomatonExpressionArguments(state.getVars(), otherElements, edge, logger);\n boolean edgeMatched = false;\n boolean nonDetState = state.getInternalState().isNonDetState();\n\n // these transitions cannot be evaluated until last, because they might have sideeffects on other CPAs (dont want to execute them twice)\n // the transitionVariables have to be cached (produced during the match operation)\n // the list holds a Transition and the TransitionVariables generated during its match\n List<Pair<AutomatonTransition, Map<Integer, String>>> transitionsToBeTaken = new ArrayList<Pair<AutomatonTransition, Map<Integer, String>>>(2);\n\n for (AutomatonTransition t : state.getInternalState().getTransitions()) {\n exprArgs.clearTransitionVariables();\n\n matchTime.start();\n ResultValue<Boolean> match = t.match(exprArgs);\n matchTime.stop();\n if (match.canNotEvaluate()) {\n if (failOnUnknownMatch) {\n throw new CPATransferException(\"Automaton transition condition could not be evaluated: \" + match.getFailureMessage());\n }\n // if one transition cannot be evaluated the evaluation must be postponed until enough information is available\n return Collections.singleton(new AutomatonUnknownState(state));\n } else {\n if (match.getValue()) {\n edgeMatched = true;\n assertionsTime.start();\n ResultValue<Boolean> assertionsHold = t.assertionsHold(exprArgs);\n assertionsTime.stop();\n\n if (assertionsHold.canNotEvaluate()) {\n if (failOnUnknownMatch) {\n throw new CPATransferException(\"Automaton transition assertions could not be evaluated: \" + assertionsHold.getFailureMessage());\n }\n // cannot yet be evaluated\n return Collections.singleton(new AutomatonUnknownState(state));\n\n } else if (assertionsHold.getValue()) {\n if (!t.canExecuteActionsOn(exprArgs)) {\n if (failOnUnknownMatch) {\n throw new CPATransferException(\"Automaton transition action could not be executed\");\n }\n // cannot yet execute, goto UnknownState\n return Collections.singleton(new AutomatonUnknownState(state));\n }\n\n // delay execution as described above\n Map<Integer, String> transitionVariables = ImmutableMap.copyOf(exprArgs.getTransitionVariables());\n transitionsToBeTaken.add(Pair.of(t, transitionVariables));\n\n } else {\n // matching transitions, but unfulfilled assertions: goto error state\n AutomatonState errorState = AutomatonState.automatonStateFactory(Collections.<String, AutomatonVariable>emptyMap(), AutomatonInternalState.ERROR, cpa);\n logger.log(Level.INFO, \"Automaton going to ErrorState on edge \\\"\" + edge.getDescription() + \"\\\"\");\n lSuccessors.add(errorState);\n }\n\n if (!nonDetState) {\n // not a nondet State, break on the first matching edge\n break;\n }\n }\n // do nothing if the edge did not match\n }\n }\n\n if (edgeMatched) {\n // execute Transitions\n for (Pair<AutomatonTransition, Map<Integer, String>> pair : transitionsToBeTaken) {\n // this transition will be taken. copy the variables\n AutomatonTransition t = pair.getFirst();\n Map<Integer, String> transitionVariables = pair.getSecond();\n actionTime.start();\n Map<String, AutomatonVariable> newVars = deepCloneVars(state.getVars());\n exprArgs.setAutomatonVariables(newVars);\n exprArgs.putTransitionVariables(transitionVariables);\n t.executeActions(exprArgs);\n actionTime.stop();\n AutomatonState lSuccessor = AutomatonState.automatonStateFactory(newVars, t.getFollowState(), cpa);\n //if (!(lSuccessor instanceof AutomatonState.BOTTOM)) {\n lSuccessors.add(lSuccessor);\n //} // else add nothing\n }\n return lSuccessors;\n } else {\n // stay in same state, no transitions to be executed here (no transition matched)\n return Collections.singleton(state);\n }\n }", "protected final int internalFind(int paramInt)\n/* */ {\n/* 200 */ int i = computeSlot(paramInt);\n/* 201 */ while (this.m_flagTable[i] != false) {\n/* 202 */ if (paramInt == this.m_keyTable[i]) {\n/* 203 */ return i;\n/* */ }\n/* 205 */ i = stepSlot(i);\n/* */ }\n/* 207 */ return -i - 1;\n/* */ }", "public static boolean checkPath(int[][] bs, int i) {\n ArrayList<Integer> temp_cP = new ArrayList<Integer>();\r\n Set<Integer> temp_setcP = new HashSet<Integer>();\r\n boolean denoter = true;\r\n while (i == 3) {\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n while (i == 6) {\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n return denoter;\r\n }", "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "Node findLoopByHash(Node n){\n Hashtable<Node,Integer> nodes = new Hashtable<Node,Integer>();\n while (n.next != null){\n if (nodes.containsKey(n)) break;\n nodes.put(n,1);\n n=n.next;\n }\n if (n.next != null) return n;\n return null;\n }", "private boolean equals(AccessPath that, HashSet s) {\n // Relies on the fact that the iterators are stable for equivalent sets.\n // Otherwise, it is an n^2 algorithm.\n for (Iterator i = this.succ.iterator(), j = that.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper a = (IdentityHashCodeWrapper)i.next();\n IdentityHashCodeWrapper b = (IdentityHashCodeWrapper)j.next();\n AccessPath p = (AccessPath)a.getObject();\n AccessPath q = (AccessPath)b.getObject();\n if (!p.oneEquals(q)) return false;\n if (s.contains(a)) continue;\n s.add(a);\n if (!p.equals(q, s)) return false;\n }\n return true;\n }", "private static void second(int[] arr, int sum){\n\n Map<Integer,Boolean> map = new Hashtable<>();\n\n for(int i:arr){\n\n if (map.containsKey(sum - i)){\n System.out.println(i + \" , \" + (sum-i));\n }\n else{\n map.put(i, true);\n }\n\n }\n\n }", "private void find(int a, int b) {\n\t\t\n\t\tthis.c = a;\n\t\tthis.d = b;\n\t\t\n\t\tthis.c = this.c+1;\n\t\tthis.d = this.d+1;\n\t\tthis.c = a+1;\n\t\tthis.d = b+2;\n\t\tSystem.out.println(a+\" ==== \"+b+\" ======= \"+c+\" ==== \"+d);\n\t}", "@Override\n\tpublic void find() {\n\n\t}", "public ListNode loopDetection1(ListNode head) {\r\n\r\n if (head == null || head.next == null) return null;\r\n\r\n ListNode curr = head;\r\n HashSet<ListNode> list = new HashSet<ListNode>();\r\n\r\n while (curr.next != null) {\r\n if (list.contains(curr)) return curr;\r\n\r\n list.add(curr);\r\n curr = curr.next;\r\n }\r\n\r\n return null;\r\n\r\n }", "public boolean find(int value) {\r\n // Write your code here\r\n for (int i = 0; i < elements.size() && elements.get(i) < value / 2 + 1; i++) {\r\n if (elements.get(i) * 2 == value && mapping.get(elements.get(i)) == 2) {\r\n return true;\r\n }\r\n if (elements.get(i) * 2 != value && mapping.containsKey(value - elements.get(i))) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>();\n Person p1 = new Person(\"小妹妹\", 18);\n Person p2 = new Person(\"小妹妹\", 18);\n Person p3 = new Person(\"小妹妹\", 19);\n System.out.println(p1.hashCode());\n System.out.println(p2.hashCode());\n System.out.println(p1 == p2);\n System.out.println(p1.equals(p2));\n set.add(p1);\n set.add(p2);\n set.add(p3);\n System.out.println(set);\n }", "private SearchNode findNodeWithCoords(HashSet<SearchNode> set, int x, int y){\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (cur.posX == x && cur.posY == y)\n\t\t\t\t\treturn cur;\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\n\tpublic List<Document> getCollectionFind(Set<Entry<String, Object>> set) {\n\t\treturn null;\n\t}", "private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }", "private static void lookForFunctionCycles(\n XQueryFunction f, Stack<Object> referees, XQueryFunctionLibrary globalFunctionLibrary) throws XPathException {\n Expression body = f.getBody();\n referees.push(f);\n List<Binding> list = new ArrayList<Binding>(10);\n ExpressionTool.gatherReferencedVariables(body, list);\n for (Binding b : list) {\n if (b instanceof GlobalVariable) {\n ((GlobalVariable) b).lookForCycles(referees, globalFunctionLibrary);\n }\n }\n List<SymbolicName> flist = new ArrayList<SymbolicName>();\n ExpressionTool.gatherCalledFunctionNames(body, flist);\n for (SymbolicName s : flist) {\n XQueryFunction qf = globalFunctionLibrary.getDeclarationByKey(s);\n if (!referees.contains(qf)) {\n // recursive function calls are allowed\n lookForFunctionCycles(qf, referees, globalFunctionLibrary);\n }\n }\n referees.pop();\n }", "public static int masterHashSetGen(String src, String dst, int s, ArrayList<Integer> R) {\n\t\t// TODO Auto-generated method stub\n\n\t\tlong ipDecimalSrc = ipToLong(src);\n\t\tLong xoredVal;\n\t\tint generatedIndex = genIndex(s, dst);\n\t\t// System.out.println(generatedIndex);\n\t\txoredVal = ipDecimalSrc ^ R.get(generatedIndex);\n\t\t// System.out.println(xoredVal);\n\t\tint hashedSrc = Math.abs(MurmurHash.hashLong(xoredVal));\n\t\t// String hashedOutputs = generatedIndex + \":\" + hashedSrc;\n\t\treturn hashedSrc;\n\t}", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "private int find(int[] roots , int id){\n\n if (roots[id] == id) return id;\n roots[id] = find(roots, roots[id]);\n return roots[id];\n }", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "private static void searchMemo() {\n\t\t\n\t}", "public Set<Edge<V>> edgeSet();", "public static List<String> search(char[][] board, Set<String> set) {\n List<String> ret = new LinkedList<String>();\n if (set == null || set.size() == 0) return ret;\n boolean[][] visited = new boolean[board.length][board[0].length];\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n search(board, i, j, \"\", set, visited, ret);\n }\n }\n return ret;\n }", "public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}", "protected Optional<Counter> find(Function<Counter, Boolean> func) {\n return servers.stream()\n .filter(x -> func.apply(x).equals(true))\n .findFirst();\n }", "public static void main(String[] args) {\n int[] a={11, 15, 6, 8, 9, 10,4};\n int sum =2;\n //SORTING AND FIND PAIRS\n /*Arrays.sort(a);\n \n int i=0,j=a.length-1;\n while(i<j)\n {\n\t if(a[i]+a[j]==sum)\n\t {\n\t\t System.out.println(\"pair is+\"+a[i]+\" \"+a[j]);\n\t\t i++;j++;\n\t\t }\n\t else if(a[i]+a[j]<sum)\n\t {\n\t\t i++;\n\t }\n\t else if(a[i]+a[j]>sum)\n\t {\n\t\t j--;\n\t }\n }*/\n //Arrays.sort(a);\n LinkedHashSet<Integer> m = new LinkedHashSet<Integer>();\n int temp;\n for(int i=0;i<a.length;i++)\n {\n\t temp=sum+a[i];\n\t if(m.contains(temp))\n\t {\n\t\t System.out.println(\"par is:\"+a[i]+\" \"+temp);\n\t }\n\t else\n\t\t m.add(a[i]);\n }\n\n\t}", "public T find (T target);", "void GetAllSuccLeafProduct(HashSet plstSuccPro);", "public Set getNodesThatCall(PassedParameter pp) {\n if (USE_PARAMETER_MAP) {\n Set s = (Set)passedParamToNodes.get(pp);\n if (s == null) return Collections.EMPTY_SET;\n return s;\n }\n Set s = NodeSet.FACTORY.makeSet();\n getNodesThatCall(pp, s);\n return s;\n }", "boolean findCycleUtil(int i, boolean[] visited, boolean[] recStack, LinkedList<Integer>[] g) {\n if (recStack[i]) {\n return true;\n }\n if (visited[i]) {\n return false;\n }\n visited[i] = true;\n recStack[i] = true;\n for (int c : g[i]) {\n if (findCycleUtil(c, visited, recStack, g)) {\n return true;\n }\n }\n recStack[i] = false;\n return false;\n }", "@Override\n public SetInterface<T> intersection(SetInterface<T> rhs) {\n //create the return SetInterface\n SetInterface<T> result = new LinkedSet();\n Node n = first;\n //move through the modes\n while(n != null){\n //check if the item is also in rhs\n if(rhs.contains(n.value))\n result.addItem(n.value);\n n = n.next;\n }\n return result;\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "private ArrayList<Point> findS(ArrayList<Point> s, Point p1, Point p2) {\n ArrayList<Point> s1 = new ArrayList<>();\n for(int i = 1; i < s.size(); i++){\n if(p1.x*p2.y + s.get(i).x*p1.y + p2.x*s.get(i).y - s.get(i).x*p2.y - p2.x*p1.y - p1.x*s.get(i).y > 0) {\n s1.add(s.get(i));\n }\n }\n return s1;\n }", "private boolean findCycles(int v, int s, Vector<Integer>[] adjList)\n {\n boolean f = false;\n this.stack.add(v);\n this.blocked[v] = true;\n\n for (int i = 0; i < adjList[v].size(); i++) {\n int w = adjList[v].get(i);\n // found cycle\n if (w == s) {\n Vector cycle = new Vector();\n for (int j = 0; j < this.stack.size(); j++) {\n int index = this.stack.get(j).intValue();\n cycle.add(this.graphNodes[index]);\n }\n this.cycles.add(cycle);\n\n\n // we hard-limit the cycle number to 10k!!\n if (this.cycles.size() > 10000) {\n break;\n }\n\n f = true;\n }\n else if (!this.blocked[w]) {\n if (this.findCycles(w, s, adjList)) {\n f = true;\n }\n }\n }\n\n if (f) {\n this.unblock(v);\n }\n else {\n for (int i = 0; i < adjList[v].size(); i++) {\n int w = ((Integer) adjList[v].get(i)).intValue();\n if (!this.B[w].contains(new Integer(v))) {\n this.B[w].add(new Integer(v));\n }\n }\n }\n\n this.stack.remove(new Integer(v));\n return f;\n }", "public abstract Solution<T> search(Searchable<T> s);", "public boolean find(int value) {\n // Write your code here\n for(Integer i : list){\n int num = value - i;\n if((num == i && map.get(i) > 1) || (num != i && map.containsKey(num))){\n return true;\n }\n }\n return false;\n }", "private static double findOneSetCost(int r, int [] set,\r\n Vector oneSetVector,\r\n Host currentNode,\r\n ArrayList neighbors,\r\n ArrayList destList)\r\n {\n ArrayList setNeighbors = new ArrayList();\r\n for ( int i = 0; i < set.length; i++)\r\n {\r\n int index = set[i] - 1;\r\n Host neighbor = (Host) neighbors.get(index);\r\n setNeighbors.add(neighbor);\r\n }\r\n double [][] setDistanceArray = findDistanceArray(currentNode, destList, setNeighbors);\r\n //the setDistanceArray[r][m]\r\n\r\n //check if any neighbor in set is not common neighbor for all dests\r\n //if a neighbor is so, return a MaxDistance, hopArray = NULL\r\n int m = destList.size();\r\n for ( int i = 0; i < m; i++)\r\n {\r\n int num = 0;\r\n for ( int j = 0; j < r; j++)\r\n {\r\n if (setDistanceArray[j][i] < 0)\r\n {\r\n num++;\r\n setDistanceArray[j][i] = MaxDistance;\r\n }\r\n }\r\n if ( num >= r )\r\n {\r\n // All the neighbors in set cannot forward to destination[i]\r\n oneSetVector.clear(); // ???\r\n return MaxDistance;\r\n }\r\n }\r\n\r\n //find forward nodes provides min remain distance\r\n double totalCost = 0.0;\r\n\r\n //go thourgh destList, find a best forward neighbor for each dest\r\n //add the distance to totalRemainDistance\r\n for (int i = 0; i < m; ++i) {//loop through destList\r\n double minCost = setDistanceArray[0][i];//get first neighbor for each dest\r\n oneSetVector.add(i, setNeighbors.get(0));\r\n for (int j = 0; j < r; ++j) {// Loop through the neighbor\r\n if (minCost > setDistanceArray[j][i]) {\r\n // Swap\r\n minCost = setDistanceArray[j][i];\r\n oneSetVector.set(i, setNeighbors.get(j));\r\n }\r\n }\r\n totalCost += minCost;\r\n }\r\n\r\n return totalCost;\r\n }", "public ListNode detectCycle(ListNode head) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next().next();\n\t\t\tslow=slow.next();\t\t\n\t\t\t//First meet\n\t\t\tif (fast==slow) {\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//Put slow at head ,they meet after k-m steps\n\t\tslow=head;\n\t\twhile(slow!=fast) {\n\t\t\tfast=fast.next();\n\t\t\tslow=slow.next();\n\t\t}\n\t\treturn slow;\n\t}", "public static void main(String args[]) {\r\n\t\tint[] a = {5,8,10,15,13,200,222,246,2,30,31,34,40};\r\n\t\tint find = 40;\r\n\t\tint st = 0; \r\n\t\tint lst = a.length - 1;\r\n\t\tsequenSearch(a,find, st, lst);\r\n\t}", "private int[] hashSetMethod(int[] nums1, int[] nums2) {\n HashSet<Integer> s = new HashSet<Integer>();\n for (Integer i : nums1) {\n if (!s.contains(i)) s.add(i);\n }\n HashSet<Integer> intersection = new HashSet<Integer>();\n for (Integer i : nums2) {\n if (s.contains(i) && !intersection.contains(i)) {\n \tintersection.add(i);\n }\n }\n int[] res = new int[intersection.size()];\n Iterator<Integer> iter = intersection.iterator();\n for (int i = 0; iter.hasNext(); i++) {\n res[i] = iter.next();\n }\n return res;\n }", "private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) {\n\n int power = 1;\n int lam = 1;\n\n int t = x0;\n int h = func.applyAsInt(x0);\n\n // 'lam' will be equal to cycle length at the end of iteration\n while (t != h) {\n if (power == lam) {\n t = h;\n power *= 2;\n lam = 0;\n }\n\n h = func.applyAsInt(h);\n ++lam;\n }\n\n final int cycleLength = lam;\n\n t = x0;\n h = x0;\n\n // find star point for cycle\n for (int i = 0; i < lam; ++i) {\n h = func.applyAsInt(h);\n }\n\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n return new FunctionCycle(t, cycleLength);\n }", "@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\t\t}\r\n\t\t\r\n\t\tMySet<E> returnSet = (MySet<E>) new Set2<Integer>();\r\n\t\tfor(Map.Entry<E, Integer> entry :map.entrySet())\r\n\t\t\tif(entry.getValue() >= dataSet[0].length) // check\r\n\t\t\t\treturnSet.add(entry.getKey());\r\n\t\t\r\n\t\t\r\n\t\treturn returnSet;\r\n\t}", "private Vector<Vector<BusStopInfo>> findRek (BusStopInterface from, BusStopInterface to, Vector <BusStopInfo> toInfo, Vector<BusStopInfo> visited, int swaps, int transfers )\r\n {\r\n Vector<Vector<BusStopInfo>> sciezka = new Vector<Vector<BusStopInfo>>();\r\n \r\n if(from.getName()==to.getName())\r\n {\r\n sciezka.add(toInfo);\r\n return sciezka;\r\n }\r\n\r\n for(BusStopInfo vis: visited)\r\n {\r\n if(vis.awtobus.busLine.getBusStop(vis.pozycja).getName()==from.getName())\r\n return sciezka;\r\n }\r\n\r\n Vector <BusStopInfo> fromInfo = findStopInfo(from);\r\n\r\n fromInfo = infoFilter(fromInfo, toInfo);\r\n\r\n for(BusStopInfo info: fromInfo)\r\n {\r\n int swapsNow = swaps;\r\n if(visited.size()>0 && info.awtobus.bus.getBusNumber()!=visited.lastElement().awtobus.bus.getBusNumber())\r\n {\r\n swapsNow++;\r\n }\r\n\r\n if(swapsNow <= transfers)\r\n {\r\n int nextPosition = info.pozycja +1; //ide do przodu linii\r\n int prevPosition = info.pozycja -1; //ide do tyłu linii\r\n\r\n Vector<BusStopInfo> temp = new Vector<BusStopInfo>(visited);\r\n temp.add(info);\r\n Vector<Vector<BusStopInfo>> result ;\r\n if(nextPosition<info.awtobus.busLine.getNumberOfBusStops())\r\n {\r\n BusStopInterface nextStop = info.awtobus.busLine.getBusStop(nextPosition);\r\n result = findRek(nextStop, to, toInfo, temp, swapsNow, transfers);\r\n for(Vector<BusStopInfo> res: result)\r\n {\r\n res.add(0, info);\r\n sciezka.add(res);\r\n }\r\n }\r\n if(prevPosition >= 0)\r\n {\r\n BusStopInterface prevStop = info.awtobus.busLine.getBusStop(prevPosition);\r\n result = findRek(prevStop, to, toInfo, temp, swapsNow, transfers);\r\n for(Vector<BusStopInfo> res: result)\r\n {\r\n res.add(0, info);\r\n sciezka.add(res);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return sciezka;\r\n }", "public void minimize() {\n D = new boolean[states.length][states.length];\r\n S = new ArrayList<ArrayList<HashSet<Point>>>(); // lol\r\n\r\n //noinspection ForLoopReplaceableByForEach\r\n for (int i = 0; i < states.length; i++) {\r\n ArrayList<HashSet<Point>> innerList = new ArrayList<HashSet<Point>>();\r\n\r\n //noinspection ForLoopReplaceableByForEach\r\n for (int j = 0; j < states.length; j++) {\r\n Arrays.fill(D[i], false);\r\n innerList.add(new HashSet<Point>());\r\n }\r\n S.add(innerList);\r\n }\r\n\r\n // 2. states with different acceptances are distinguishable\r\n for (int i = 0; i < states.length; i++) {\r\n for (int j = i + 1; j < states.length; j++) {\r\n if (acceptStates.contains(i) != acceptStates.contains(j)) {\r\n D[i][j] = true;\r\n }\r\n }\r\n }\r\n\r\n // 3. mark as possibly indistinguishable, enforce distinguishability\r\n for (int i = 0; i < states.length; i++) {\r\n for (int j = i + 1; j < states.length; j++) {\r\n // only pairs that are as of yet indistinguishable\r\n if (D[i][j]) {\r\n continue;\r\n }\r\n\r\n DFAState qi = states[i];\r\n DFAState qj = states[j];\r\n\r\n // one of the things being compared is unreachable\r\n if (qi == null || qj == null) {\r\n continue;\r\n }\r\n\r\n // helps emulate \"for any\"\r\n boolean distinguished = false;\r\n for (int k = 0; k < qi.transitions.size(); k++) {\r\n int m = qi.transitions.get(k);\r\n int n = qj.transitions.get(k);\r\n\r\n // if on the same letter, qm and qn move to distinguishable states\r\n if (D[m][n] || D[n][m]) {\r\n dist(i, j);\r\n distinguished = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!distinguished) {\r\n // qm and qn are indistinguishable\r\n for (int k = 0; k < qi.transitions.size(); k++) {\r\n int m = qi.transitions.get(k);\r\n int n = qj.transitions.get(k);\r\n\r\n if (m < n && !(i == m && j == n)) {\r\n S.get(m).get(n).add(new Point(i, j));\r\n } else if (m > n && !(i == n && j == m)) {\r\n S.get(n).get(m).add(new Point(i, j));\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n mergeStates();\r\n }", "private static Set<C3246b> m11182c(List<Component<?>> list) {\n Set<C3246b> set;\n HashMap hashMap = new HashMap(list.size());\n for (Component next : list) {\n C3246b bVar = new C3246b(next);\n Iterator it = next.getProvidedInterfaces().iterator();\n while (true) {\n if (it.hasNext()) {\n Class cls = (Class) it.next();\n C3247c cVar = new C3247c(cls, !next.isValue());\n if (!hashMap.containsKey(cVar)) {\n hashMap.put(cVar, new HashSet());\n }\n Set set2 = (Set) hashMap.get(cVar);\n if (set2.isEmpty() || cVar.f18935b) {\n set2.add(bVar);\n } else {\n throw new IllegalArgumentException(String.format(\"Multiple components provide %s.\", new Object[]{cls}));\n }\n }\n }\n }\n for (Set<C3246b> it2 : hashMap.values()) {\n for (C3246b bVar2 : it2) {\n for (Dependency next2 : bVar2.mo20819c().getDependencies()) {\n if (next2.isDirectInjection() && (set = (Set) hashMap.get(new C3247c(next2.getInterface(), next2.isSet()))) != null) {\n for (C3246b bVar3 : set) {\n bVar2.mo20817a(bVar3);\n bVar3.mo20818b(bVar2);\n }\n }\n }\n }\n }\n HashSet hashSet = new HashSet();\n for (Set addAll : hashMap.values()) {\n hashSet.addAll(addAll);\n }\n return hashSet;\n }", "protected abstract Set method_1559();", "private static Set<Character> findDeepDependencies(Map<Character, Set<Character>> map, Set<Character> values) {\n\t\tif (values.isEmpty())\n\t\t\treturn Collections.emptySet();\n\n\t\tSet<Character> valuesCollected = new HashSet<>();\n\t\tfor (Character character : values) {\n\t\t\tif (map.containsKey(character))\n\t\t\t\tvaluesCollected.addAll(map.get(character));\n\t\t}\n\t\tSet<Character> newValues = findDeepDependencies(map, valuesCollected);\n\t\tvaluesCollected.addAll(newValues);\n\t\treturn valuesCollected;\n\t}" ]
[ "0.5984189", "0.57777274", "0.57459784", "0.56227386", "0.56160146", "0.55936235", "0.55640864", "0.55152243", "0.55111146", "0.54477155", "0.5407866", "0.5399553", "0.5384032", "0.5354697", "0.53470737", "0.53369015", "0.5321356", "0.52996856", "0.52896875", "0.5278278", "0.52775", "0.52766824", "0.5258559", "0.5227034", "0.5215238", "0.5207097", "0.51932967", "0.51741314", "0.5158282", "0.51119703", "0.5098225", "0.50963056", "0.50845444", "0.5074523", "0.5060954", "0.50583214", "0.5058312", "0.50539225", "0.5042432", "0.5033449", "0.50330055", "0.5028383", "0.5025276", "0.4974281", "0.49729016", "0.49704903", "0.49642035", "0.49622297", "0.4947692", "0.4938127", "0.49375242", "0.493653", "0.4919693", "0.49150717", "0.4912993", "0.49124497", "0.49117872", "0.48949116", "0.488406", "0.48835135", "0.4883495", "0.48802906", "0.48782337", "0.48775014", "0.48734143", "0.48699215", "0.48692325", "0.4863757", "0.48576263", "0.4856042", "0.48524627", "0.48426515", "0.4841596", "0.4839405", "0.4833289", "0.4831005", "0.48165464", "0.48154506", "0.4813953", "0.48129818", "0.48060417", "0.479578", "0.4785891", "0.47771075", "0.47706205", "0.47669238", "0.4766674", "0.47663695", "0.4764502", "0.47644877", "0.47621232", "0.47616526", "0.47583196", "0.47556716", "0.47501385", "0.47466576", "0.47461227", "0.4740714", "0.47382182", "0.47289392" ]
0.6109554
0
Find function cycle using Floyd's cycle detection algorithm.
private static FunctionCycle findCycleWithFloydsInternal(IntUnaryOperator func, int x0) { int t = func.applyAsInt(x0); int h = func.applyAsInt(func.applyAsInt(x0)); // find point inside the cycle while (t != h) { t = func.applyAsInt(t); h = func.applyAsInt(func.applyAsInt(h)); } h = x0; while (h != t) { t = func.applyAsInt(t); h = func.applyAsInt(h); } final int startPoint = t; int length = 1; h = func.applyAsInt(h); while (t != h) { h = func.applyAsInt(h); ++length; } return new FunctionCycle(startPoint, length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) {\n\n int power = 1;\n int lam = 1;\n\n int t = x0;\n int h = func.applyAsInt(x0);\n\n // 'lam' will be equal to cycle length at the end of iteration\n while (t != h) {\n if (power == lam) {\n t = h;\n power *= 2;\n lam = 0;\n }\n\n h = func.applyAsInt(h);\n ++lam;\n }\n\n final int cycleLength = lam;\n\n t = x0;\n h = x0;\n\n // find star point for cycle\n for (int i = 0; i < lam; ++i) {\n h = func.applyAsInt(h);\n }\n\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n return new FunctionCycle(t, cycleLength);\n }", "private static FunctionCycle findCycleWithHashingInternal(IntUnaryOperator func, int x0) {\n\n IntHashSet detectedValues = new IntHashSet();\n int curValue = x0;\n\n while (!detectedValues.contains(curValue)) {\n detectedValues.add(curValue);\n curValue = func.applyAsInt(curValue);\n }\n\n final int startPoint = curValue;\n\n curValue = func.applyAsInt(curValue);\n int length = 1;\n\n while (curValue != startPoint) {\n curValue = func.applyAsInt(curValue);\n ++length;\n }\n\n return new FunctionCycle(startPoint, length);\n }", "public ListNode detectCycle(ListNode head) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next().next();\n\t\t\tslow=slow.next();\t\t\n\t\t\t//First meet\n\t\t\tif (fast==slow) {\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//Put slow at head ,they meet after k-m steps\n\t\tslow=head;\n\t\twhile(slow!=fast) {\n\t\t\tfast=fast.next();\n\t\t\tslow=slow.next();\n\t\t}\n\t\treturn slow;\n\t}", "public void DFS2() {\n boolean[] visited = new boolean[numVertices];\n int[] predecessors = new int[numVertices];\n for (int i = 0; i < numVertices; i++) {\n if (visited[i] == false && hasCycle(0, visited, predecessors)) {\n System.out.println(\"Cycle has found\");\n return;\n }\n }\n System.out.println(\"No cycle found in the graph\");\n }", "@SuppressWarnings(\"unchecked\")\r\n private static void cycleTests() throws CALExecutorException {\r\n \r\n final ImmutableDirectedGraph<Integer> noCycles = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 3), Pair.make(1, 3)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthOneCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 1)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthTwoCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 1)),\r\n executionContext);\r\n \r\n System.out.println(\"noCycle.findCycle(): \" + noCycles.findCycle());\r\n System.out.println(\"oneCycle.findCycle(): \" + lengthOneCycle.findCycle());\r\n System.out.println(\"twoCycle.findCycle(): \" + lengthTwoCycle.findCycle());\r\n }", "public ListNode detectCycle(ListNode head) {\n\n\t\tListNode fast = head;\n\t\tListNode slow = head;\n\n\t\twhile (fast != null && fast.next != null) {\n\t\t\tfast = fast.next.next;\n\t\t\tslow = slow.next;\n\t\t\tif (slow == fast) {\n\t\t\t\tListNode slow2 = head;\n\t\t\t\twhile (slow2 != slow) {\n\t\t\t\t\tslow2 = slow2.next;\n\t\t\t\t\tslow = slow.next;\n\t\t\t\t}\n\t\t\t\treturn slow;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ListNode detectCycle(ListNode head) {\n if (head == null || head.next == null) return null;\n ListNode slow = head;\n ListNode fast = head;\n while (fast != null && fast.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n if (fast == slow) {\n ListNode slow2 = head;\n while (slow != slow2) {\n slow = slow.next;\n slow2 = slow2.next;\n }\n return slow;\n }\n }\n return null;\n }", "private boolean checkCycle() {\n for (int i = 0; i < 26; i++) {\n color[i] = 0;\n }\n for (int i = 0; i < 26; i++) {\n if (color[i] != -1 && BFS(i)) return true;\n }\n return false;\n }", "private void treatCycles(SDFGraph graph) throws InvalidExpressionException {\r\n\t\tList<Set<SDFAbstractVertex>> cycles = new ArrayList<Set<SDFAbstractVertex>>();\r\n\t\tCycleDetector<SDFAbstractVertex, SDFEdge> detector = new CycleDetector<SDFAbstractVertex, SDFEdge>(\r\n\t\t\t\tgraph);\r\n\t\tList<SDFAbstractVertex> vertices = new ArrayList<SDFAbstractVertex>(\r\n\t\t\t\tgraph.vertexSet());\r\n\t\twhile (vertices.size() > 0) {\r\n\t\t\tSDFAbstractVertex vertex = vertices.get(0);\r\n\t\t\tSet<SDFAbstractVertex> cycle = detector\r\n\t\t\t\t\t.findCyclesContainingVertex(vertex);\r\n\t\t\tif (cycle.size() > 0) {\r\n\t\t\t\tvertices.removeAll(cycle);\r\n\t\t\t\tcycles.add(cycle);\r\n\t\t\t}\r\n\t\t\tvertices.remove(vertex);\r\n\t\t}\r\n\r\n\t\tfor (Set<SDFAbstractVertex> cycle : cycles) {\r\n\t\t\tint gcd = gcdOfVerticesVrb(cycle);\r\n\t\t\tif (gcd > 1 && !(graph instanceof PSDFGraph)) {\r\n\t\t\t\tcopyCycle(graph, cycle, gcd);\r\n\t\t\t} else if (!(graph instanceof PSDFGraph)) {\r\n\t\t\t\ttreatPSDFCycles(graph, cycle);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// SDFIterator sdfIterator = new SDFIterator(graph);\r\n\t\t// List<SDFAbstractVertex> orderedList = new\r\n\t\t// ArrayList<SDFAbstractVertex>();\r\n\t\t// while (sdfIterator.hasNext()) {\r\n\t\t// SDFAbstractVertex current = sdfIterator.next();\r\n\t\t// orderedList.add(current);\r\n\t\t// if (current instanceof SDFRoundBufferVertex) {\r\n\t\t// int nbTokens = 0;\r\n\t\t// for (SDFEdge edgeData : graph.outgoingEdgesOf(current)) {\r\n\t\t// nbTokens = edgeData.getProd().intValue();\r\n\t\t// }\r\n\t\t// for (int i = orderedList.size() - 1; i >= 0; i--) {\r\n\t\t// if (graph.getAllEdges(orderedList.get(i), current).size() == 1) {\r\n\t\t// if (nbTokens <= 0) {\r\n\t\t// graph.removeAllEdges(orderedList.get(i), current);\r\n\t\t// } else {\r\n\t\t// for (SDFEdge thisEdge : graph.getAllEdges(\r\n\t\t// orderedList.get(i), current)) {\r\n\t\t// nbTokens = nbTokens\r\n\t\t// - thisEdge.getProd().intValue();\r\n\t\t// }\r\n\t\t// }\r\n\t\t// }\r\n\t\t// }\r\n\t\t// // traiter le roundBuffer pour le supprimer\r\n\t\t// if (graph.incomingEdgesOf(current).size() == 1\r\n\t\t// && graph.outgoingEdgesOf(current).size() == 1) {\r\n\t\t// SDFAbstractVertex source = ((SDFEdge) graph\r\n\t\t// .incomingEdgesOf(current).toArray()[0]).getSource();\r\n\t\t// SDFEdge oldEdge = ((SDFEdge) graph.incomingEdgesOf(current)\r\n\t\t// .toArray()[0]);\r\n\t\t// SDFAbstractVertex target = ((SDFEdge) graph\r\n\t\t// .outgoingEdgesOf(current).toArray()[0]).getTarget();\r\n\t\t// SDFEdge refEdge = ((SDFEdge) graph.outgoingEdgesOf(current)\r\n\t\t// .toArray()[0]);\r\n\t\t// SDFEdge newEdge = graph.addEdge(source, target);\r\n\t\t// newEdge.copyProperties(refEdge);\r\n\t\t// graph.removeEdge(refEdge);\r\n\t\t// graph.removeEdge(oldEdge);\r\n\t\t// graph.removeVertex(current);\r\n\t\t// orderedList.remove(current);\r\n\t\t// } else if (graph.incomingEdgesOf(current).size() == 1\r\n\t\t// && graph.outgoingEdgesOf(current).size() > 1) {\r\n\t\t//\r\n\t\t// } else if (graph.incomingEdgesOf(current).size() > 1\r\n\t\t// && graph.outgoingEdgesOf(current).size() == 1) {\r\n\t\t//\r\n\t\t// }\r\n\t\t// }\r\n\t\t// }\r\n\t\t/*\r\n\t\t * { CycleDetector<SDFAbstractVertex, SDFEdge> detect = new\r\n\t\t * CycleDetector<SDFAbstractVertex, SDFEdge>( graph);\r\n\t\t * List<SDFAbstractVertex> vert = new ArrayList<SDFAbstractVertex>(\r\n\t\t * graph.vertexSet()); while (vert.size() > 0) { SDFAbstractVertex\r\n\t\t * vertex = vert.get(0); Set<SDFAbstractVertex> cycle = detect\r\n\t\t * .findCyclesContainingVertex(vertex); if (cycle.size() > 0) {\r\n\t\t * vert.removeAll(cycle); cycles.add(cycle); } vert.remove(vertex); } }\r\n\t\t */\r\n\r\n\t\treturn;\r\n\t}", "Cycle getOptimalCycle(Graph<L, T> graph);", "public ListNode detectCycle(ListNode head) {\n if (null == head || null == head.next) return null;\n ListNode cur = head.next, runner = head.next.next;\n while (null != runner && null != runner.next & cur != runner) {\n cur = cur.next;\n runner = runner.next.next;\n }\n if (cur == runner) {\n cur = head;\n while (runner != cur) {\n cur = cur.next;\n runner = runner.next;\n }\n return cur;\n }\n return null;\n }", "private Boolean checkCycle() {\n Node slow = this;\n Node fast = this;\n while (fast.nextNode != null && fast.nextNode.nextNode != null) {\n fast = fast.nextNode.nextNode;\n slow = slow.nextNode;\n if (fast == slow) {\n System.out.println(\"contains cycle\");\n return true;\n }\n }\n System.out.println(\"non-cycle\");\n return false;\n }", "boolean cycle() {\n int j;\t\t\t\t\t\t// If cycle detected report as negative edge weight cycle.\n for (j = 0; j < e; ++j)\n if (d[edges.get(j).u] + edges.get(j).w < d[edges.get(j).v])\n return false;\n return true;\n }", "void find_negative_cycle(){\n \t\n \tfor(int j = 0; j<E ; j++)\n\t\t{\n\t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n\t\t}\n \tfor(int i = 0; i<V ; i++)\n\t\t{\n \t\tif(x[i] != dist[i])\n\t\t\t{\n \t\t\tNegCycle = true;\n\t\t\t\tSystem.out.println(\"Negative Cycle Found \");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "public static ListNode detectCycle2(ListNode head){\n if(head == null) return null;\n\n ListNode intersectNode = getIntersection(head);\n if(intersectNode == null) return null;\n\n ListNode currNode = head;\n while(currNode != intersectNode) {\n currNode = currNode.next;\n intersectNode = intersectNode.next;\n }\n return intersectNode;\n }", "private static void lookForFunctionCycles(\n XQueryFunction f, Stack<Object> referees, XQueryFunctionLibrary globalFunctionLibrary) throws XPathException {\n Expression body = f.getBody();\n referees.push(f);\n List<Binding> list = new ArrayList<Binding>(10);\n ExpressionTool.gatherReferencedVariables(body, list);\n for (Binding b : list) {\n if (b instanceof GlobalVariable) {\n ((GlobalVariable) b).lookForCycles(referees, globalFunctionLibrary);\n }\n }\n List<SymbolicName> flist = new ArrayList<SymbolicName>();\n ExpressionTool.gatherCalledFunctionNames(body, flist);\n for (SymbolicName s : flist) {\n XQueryFunction qf = globalFunctionLibrary.getDeclarationByKey(s);\n if (!referees.contains(qf)) {\n // recursive function calls are allowed\n lookForFunctionCycles(qf, referees, globalFunctionLibrary);\n }\n }\n referees.pop();\n }", "public int getCycles();", "public ListNode detectCycle(ListNode head){\n if(head == null) return null;\n\n Set<ListNode> visitedNodes = new HashSet<>();\n ListNode currNode = head;\n while(currNode != null) {\n if(visitedNodes.contains(currNode)){\n return currNode;\n }\n visitedNodes.add(currNode);\n currNode = currNode.next;\n }\n return null;\n }", "public ListNode detectCycle(ListNode head) {\n ListNode walker = head;\n ListNode runner = head;\n \n while(runner != null && runner.next != null) {\n runner = runner.next.next;\n walker = walker.next;\n \n if (runner == walker) {\n while(walker != head) {\n head = head.next;\n walker = walker.next;\n }\n \n return head;\n }\n }\n \n return null;\n }", "static\tListNode listCycle(ListNode a){\n if(a==null || a.next==null || a.next.next==null){\r\n return null;\r\n }\r\n boolean cycleExists = false;\r\n ListNode fast = a.next.next;\r\n ListNode slow = a;\r\n while(slow.next!=null && fast.next !=null && fast.next.next!=null){\r\n if(fast==slow){\r\n //return cycleSize;\r\n //cycleExists = true;\r\n //break;\r\n return fast;\r\n }else{\r\n \r\n fast = fast.next.next;\r\n slow = slow.next;\r\n }\r\n\r\n }\r\n \r\n return null;\r\n\t}", "public static Node findCycle(Node head) {\n if (head == null) return head;\n\n Node slow = head;\n Node fast = head.next;\n while (fast != null && fast.next != null) {\n if (fast == slow) break;\n slow = slow.next;\n fast = fast.next.next;\n }\n\n if (fast == slow) {\n slow = head;\n while (slow != fast.next) {\n slow = slow.next;\n fast = fast.next;\n }\n return fast.next;\n } else {\n return null;\n }\n }", "public ListNode findCycleStart(ListNode head) {\n int cycleLength = findCycleLength(head);\n\n ListNode current = head;\n for(int i = 0; i < cycleLength; i++) {\n current = current.next;\n }\n\n ListNode slow = head;\n ListNode fast = current;\n while(slow != fast) {\n slow = slow.next;\n fast = fast.next;\n }\n return slow;\n }", "public ListNode loopDetection2(ListNode head) {\r\n if (head == null || head.next == null || head.next.next == null) {\r\n return null;\r\n }\r\n ListNode slow = head.next, fast = head.next.next;\r\n\r\n //Find meeting point. This will be LOOP_SIZE - k steps into the linked list. */\r\n while (fast != null && fast.next != null) {\r\n slow = slow.next;\r\n fast = fast.next.next;\r\n //Collision\r\n if (slow == fast) {\r\n break;\r\n }\r\n }\r\n\r\n //Error check - no meeting point, and therefore no loop\r\n if (fast == null || fast.next == null) {\r\n return null;\r\n }\r\n\r\n //Move slow to Head. Keep fast at Meeting Point. Each are k steps from the\r\n //Loop Start. If they move at the same pace, they must meet at Loop Start.\r\n slow = head;\r\n while (slow != fast) {\r\n slow = slow.next;\r\n fast = fast.next;\r\n }\r\n\r\n /* Both now point to the start of the loop. */\r\n return fast;\r\n\r\n }", "private boolean findCycles(int v, int s, Vector<Integer>[] adjList)\n {\n boolean f = false;\n this.stack.add(v);\n this.blocked[v] = true;\n\n for (int i = 0; i < adjList[v].size(); i++) {\n int w = adjList[v].get(i);\n // found cycle\n if (w == s) {\n Vector cycle = new Vector();\n for (int j = 0; j < this.stack.size(); j++) {\n int index = this.stack.get(j).intValue();\n cycle.add(this.graphNodes[index]);\n }\n this.cycles.add(cycle);\n\n\n // we hard-limit the cycle number to 10k!!\n if (this.cycles.size() > 10000) {\n break;\n }\n\n f = true;\n }\n else if (!this.blocked[w]) {\n if (this.findCycles(w, s, adjList)) {\n f = true;\n }\n }\n }\n\n if (f) {\n this.unblock(v);\n }\n else {\n for (int i = 0; i < adjList[v].size(); i++) {\n int w = ((Integer) adjList[v].get(i)).intValue();\n if (!this.B[w].contains(new Integer(v))) {\n this.B[w].add(new Integer(v));\n }\n }\n }\n\n this.stack.remove(new Integer(v));\n return f;\n }", "public Set<V> findCycles()\n {\n // ProbeIterator can't be used to handle this case,\n // so use StrongConnectivityAlgorithm instead.\n StrongConnectivityAlgorithm<V, E> inspector =\n new KosarajuStrongConnectivityInspector<>(graph);\n List<Set<V>> components = inspector.stronglyConnectedSets();\n\n // A vertex participates in a cycle if either of the following is\n // true: (a) it is in a component whose size is greater than 1\n // or (b) it is a self-loop\n\n Set<V> set = new LinkedHashSet<>();\n for (Set<V> component : components) {\n if (component.size() > 1) {\n // cycle\n set.addAll(component);\n } else {\n V v = component.iterator().next();\n if (graph.containsEdge(v, v)) {\n // self-loop\n set.add(v);\n }\n }\n }\n\n return set;\n }", "public boolean hasCycle() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\t\tSet<Vertex> path = new HashSet<Vertex>();\r\n\r\n\t\t// Call the helper function to detect cycle for all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (detectCycle(this.vertices[i], visited, path))\r\n\t\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "boolean findCycleUtil(int i, boolean[] visited, boolean[] recStack, LinkedList<Integer>[] g) {\n if (recStack[i]) {\n return true;\n }\n if (visited[i]) {\n return false;\n }\n visited[i] = true;\n recStack[i] = true;\n for (int c : g[i]) {\n if (findCycleUtil(c, visited, recStack, g)) {\n return true;\n }\n }\n recStack[i] = false;\n return false;\n }", "public static void main(String[] args) { \n \tA016_DetectAndRemoveLoopLinkedList list = new A016_DetectAndRemoveLoopLinkedList(); \n \tNode head = new Node(50); \n head.next = new Node(20); \n head.next.next = new Node(15); \n head.next.next.next = new Node(4); \n head.next.next.next.next = new Node(10); \n \n // Creating a loop for testing \n head.next.next.next.next.next = head.next.next; \n list.detectAndRemoveLoop(head); \n while (head != null) { \n System.out.print(head.data + \" \"); \n head = head.next; \n }\n \n// \n// ListNode head1 = new ListNode(50); \n// head1.next = new ListNode(20); \n// head1.next.next = new ListNode(15); \n// head1.next.next.next = new ListNode(4); \n// head1.next.next.next.next = new ListNode(10); \n// \n// // Creating a loop for testing \n// head1.next.next.next.next.next = head1.next.next; \n// System.out.println(detectCycle(head1));\n \n \n ListNode head1 = new ListNode(1);\n ListNode second = new ListNode(2);\n ListNode third = new ListNode(3);\n ListNode fourth = new ListNode(4);\n\t\thead1.next = second;\n\t\tsecond.next = third;\n\t\tthird.next = fourth;\n\t\tfourth.next = second;\n\t\tListNode aaa = detectCycle(head1);\n\t\twhile (head1 != null) {\n\t\t\tSystem.out.print(head1.val + \" \");\n\t\t\thead1 = head1.next;\n\t\t}\n\t}", "int dfs(String wheel, Set<String> deadendSet, Set<String> visited, String target, int depth) {\n\t\t// System.out.printf(\"dfs visit: %2s (depth: %d)\\n\", wheel, depth);\n\t\t++numDFSCalls;\n\t\t// scanner.nextLine();\n\n\t\tif (deadendSet.contains(wheel)) return Integer.MAX_VALUE;\n\t\tif (wheel.equals(target)) return 0;\n\n\t\tvisited.add(wheel);\n\t\tint d = Integer.MAX_VALUE;\n\t\tfor (String next : nextState(wheel)) {\n\t\t\tif (!visited.contains(next)) {\n\t\t\t\tint d1 = dfs(next, deadendSet, visited, target, depth+1);\n\t\t\t\td = Math.min(d, d1);\n\t\t\t}\n\t\t}\n\t\tvisited.remove(wheel);\n\n\t\treturn d < Integer.MAX_VALUE ? ++d : d;\n\t}", "@Test\n void findCycle() {\n Map<String, Set<String>> nonCyclicGraph = Map.of(\n \"0\", Set.of(\"a\", \"b\", \"c\"),\n \"a\", Set.of(\"0\", \"a2\", \"a3\"),\n \"a2\", Set.of(\"a\"),\n \"a3\", Set.of(\"a\"),\n \"b\", Set.of(\"0\", \"b2\"),\n \"b2\", Set.of(\"b\"),\n \"c\", Set.of(\"0\")\n );\n assertThat(solution.findCycle(nonCyclicGraph)).isFalse();\n\n // 0\n // / | \\\n // a b c\n // /\\ | /\n // a2 a3 b2\n Map<String, Set<String>> cyclicGraph = Map.of(\n \"0\", Set.of(\"a\", \"b\", \"c\"),\n \"a\", Set.of(\"0\", \"a2\", \"a3\"),\n \"a2\", Set.of(\"a\"),\n \"a3\", Set.of(\"a\"),\n \"b\", Set.of(\"0\", \"b2\"),\n \"b2\", Set.of(\"b\"),\n \"c\", Set.of(\"0\", \"b2\")\n );\n assertThat(solution.findCycle(cyclicGraph)).isTrue();\n }", "public int getCycle() {\n return cycle;\n }", "public static void main(String[] args) {\n\t\tLinkedListCycle obj = new LinkedListCycle();\n\t\tListNode node1 = obj.new ListNode(1);\n\t\tListNode node2 = obj.new ListNode(2);\n\t\tListNode node3 = obj.new ListNode(3);\n\t\tListNode node4 = obj.new ListNode(4);\n\t\tListNode node5 = obj.new ListNode(5);\n\t\tListNode node6 = obj.new ListNode(6);\n\t\tListNode node7 = obj.new ListNode(7);\n\t\tnode1.next = node2;\n\t\tnode2.next = node3;\n\t\tnode3.next = node4;\n\t\tnode4.next = node5;\n\t\tnode5.next = node6;\n\t\tnode6.next = node7;\n\t\tnode7.next = node2;\n\t\tSystem.out.println(obj.hasCycle(node1));\n\t}", "private void findCycles(ClassDecl decl, String className, int numClasses){\n\t //base case: our decl is null, return and break out of this method\n if (decl == null) {\n return;\n }\n //base case: if numClasses is 0 and we see the name, its a cycle, throw error\n else if(numClasses == 0 || decl.name.equals(className)) {\n errorMsg.error(decl.pos, \"Circular reference found: \" + decl.name);\n }\n else { //recursive case, call findCycles on the remaining links\n findCycles(decl.superLink, className, numClasses - 1);\n }\n }", "public static void checkCycleSample() {\n Node ll1_5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n Node ll1_2 = new Node(1, new Node(2, null));\n Node ll3_4 = new Node(3, new Node(4, null));\n Node ll5_6 = new Node(5, new Node(6, null));\n ll1_2.nextNode.nextNode = ll3_4;\n ll3_4.nextNode.nextNode = ll5_6;\n ll5_6.nextNode.nextNode = ll1_2;\n\n ll1_2.checkCycle();\n ll1_5.checkCycle();\n }", "int isCycle( Graph graph){\n int parent[] = new int[graph.V]; \n \n // Initialize all subsets as single element sets \n for (int i=0; i<graph.V; ++i) \n parent[i]=-1; \n \n // Iterate through all edges of graph, find subset of both vertices of every edge, if both subsets are same, then there is cycle in graph. \n for (int i = 0; i < graph.E; ++i){ \n int x = graph.find(parent, graph.edge[i].src); \n int y = graph.find(parent, graph.edge[i].dest); \n \n if (x == y) \n return 1; \n \n graph.Union(parent, x, y); \n } \n return 0; \n }", "static int circularWalk(int n, int s, int t, int r_0, int g, int seed, int p){\n\t\tPoint[] points=new Point[n];\n\t\tfor (int i = 0; i < points.length; i++) {\n\t\t\tPoint point=new Point(r_0, false, false);\n\t\t\tif(i!=0)\n\t\t\t{\n\t\t\t\tpoint.rValue=((long)(points[i-1].rValue*g+seed))%p;\n\t\t\t}\n\t\t\tif(i==s){\n\t\t\t\tpoint.isSource=true;\n\t\t\t}\n\t\t\tif(i==t)\n\t\t\t\tpoint.isTarget=true;\n\t\t\tpoints[i]=point;\n\t\t}\n\t\tif(s==t)\n\t\t\treturn 0;\n\t\t//maintain visited and calculate if we can reach t from s,if we can't reach from a certain point,return Max\n\t\t//find the min of all the dfs possibilities\n\t\tHashSet<Integer> set=new HashSet<>();\n\t\treturn dfs(points,s,t,0,set);\n\t}", "private boolean BFS(int i) {\n color[i] = 1;\n for (int j : alphabet.get(i)) {\n // Making sure we don't check one vertex twice\n if (color[j] != -1) {\n if (color[j] == 0) {\n if (BFS(j)) return true;\n }\n // Found visited vertex --> We found cycle\n if (color[j] == 1) {\n System.out.println(j);\n return true;\n }\n }\n }\n //Vertex checked\n color[i] = -1;\n return false;\n }", "public void dfs(DirectedGraph graph, int node){\n onStack[node] = true;\n // marked the node as visited\n marked[node] = true;\n // traverse through the neigh of the node\n for(int neigh: graph.adj[node]){\n // if the cycle stack is not empty then we have cycle\n if (this.hasCycle()) return;\n else if (!marked[neigh]){\n // assign node as neigh parent to check cycle later\n parent[neigh] = node;\n // traverse through unvisited node\n dfs(graph,neigh);\n // if neigh is already visited and onstack then trace back to\n // check if the parent of node is the same as neigh\n }else if (onStack[neigh]){\n// System.out.println(\"neigh = \"+ neigh + \" node = \"+ node);\n // put all the vertex in the cycle to the stack\n int v = node;\n cycle.push(v);\n while(v != neigh){\n v = parent[v];\n cycle.push(v);\n }\n if(cycle.size() < 3) cycle = new Stack<>();\n else {\n System.out.print(\"The cycle is \");\n for (int vertex : cycle) System.out.print(vertex + \",\");\n System.out.println();\n }\n\n }\n }\n onStack[node] = false;\n }", "public boolean hasCycle(int nodeIndex, int[][] graph, boolean[] visited, boolean[] onStack,\n boolean[] onCycle) {\n\n if (onCycle[nodeIndex]) {\n return true;\n }\n visited[nodeIndex] = true;\n onStack[nodeIndex] = true;\n boolean cycle = false;\n for (int neighbor : graph[nodeIndex]) {\n if (onCycle[neighbor]) {\n cycle = true;\n continue;\n }\n if (!visited[neighbor]) {\n if (hasCycle(neighbor, graph, visited, onStack, onCycle)) {\n onCycle[neighbor] = true;\n cycle = true;\n }\n } else {\n if (onStack[neighbor]) {\n onCycle[neighbor] = true;\n cycle = true;\n }\n }\n }\n onStack[nodeIndex] = false;\n return cycle;\n }", "boolean hasCycle() {\n if (head == null){\n return false;\n }\n Node slow = head;\n Node fast = head;\n while (slow != null && fast != null && fast.next != null){\n slow = slow.next;\n fast = fast.next.next;\n if (slow == fast){\n return true;\n }\n }\n return false;\n }", "private static boolean checkEulerCicleGraph() {// es cycle o es tour\r\n\t\tfor (int i = 0; i < V; i++) {\r\n\t\t\tif (outdeg[i] % 2 == 1) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean isCycle(SimpleVertex simpleVertex, int length) {\n\n\t\twhile (count != length) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tcount++;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\t\t\t\t\tif (node.one.Vertexname == node.two.Vertexname) {\n\n\t\t\t\t\t\tSystem.out.println(\"here ---------------\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tisCycle(node.two, length);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\n\t}", "Constant getCycleOffsetConstant();", "public boolean hasCycle(int g) {\n\t\t//TODO\n\t}", "@Override\n public void cycle(long cycle) {\n\n boolean previousState = state();\n\n manageDIV();\n\n incTIMAIfChange(previousState);\n }", "@Test\n public void testHasCycle() {\n System.out.println(\"**** hasCycle ****\");\n CycleDepthSearch instance = new CycleDepthSearch(g);\n boolean expResult = true;\n boolean result = instance.hasCycle();\n System.out.println(result);\n assertEquals(expResult, result);\n }", "Constant getCyclePeriodConstant();", "public int findCycleLength(ListNode head) {\n ListNode slow = head;\n ListNode fast = head;\n\n ListNode intersection = head;\n while(fast.next != null && fast.next.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n\n if(slow == fast) {\n intersection = slow;\n break;\n }\n }\n\n int cycleLength = 1;\n ListNode current = intersection.next;\n while(current != intersection) {\n cycleLength++;\n current = current.next;\n }\n\n return cycleLength;\n }", "public List<List<Object>> getElementaryCycles()\n {\n this.cycles = new Vector<>();\n this.blocked = new boolean[this.adjList.length];\n this.B = new Vector[this.adjList.length];\n this.stack = new Vector<>();\n StrongConnectedComponents sccs = new StrongConnectedComponents(this.adjList);\n int s = 0;\n\n while (true) {\n SCCResult sccResult = sccs.getAdjacencyList(s);\n if (sccResult != null && sccResult.getAdjList() != null) {\n Vector[] scc = sccResult.getAdjList();\n s = sccResult.getLowestNodeId();\n for (int j = 0; j < scc.length; j++) {\n if ((scc[j] != null) && (scc[j].size() > 0)) {\n this.blocked[j] = false;\n this.B[j] = new Vector();\n }\n }\n\n this.findCycles(s, s, scc);\n s++;\n }\n else {\n break;\n }\n }\n\n return this.cycles;\n }", "private boolean hasCycle1() {\n\t\tNode slow = head;\n\t\tNode fast = head;\n\t\t\n\t\twhile (fast != null && fast.next != null) {\n\t\t\tslow = slow.next;\n\t\t\tfast = fast.next.next;\n\t\t\tif(slow == fast) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 38;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 36;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 32;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==4){\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 30;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\treturn recCurrent;\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCYCLE() {\n CuteNetlibCase.doTest(\"CYCLE.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public boolean detect_cycle_directed_util(int v,boolean visited[], boolean curr_visited[]) {\n\t\t\n\t\tvisited[v]=true;\n\t\tcurr_visited[v]=true;\n\t\t\n\t\t\n\t\tfor(int neighbour:adj[v]) {\n\t\t\t\n\t\t\tif(curr_visited[neighbour]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(!visited[neighbour]&&detect_cycle_directed_util(neighbour,visited,curr_visited)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tcurr_visited[v]=false;\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public void dfs(int node, int[] visited) {\n if (visited[node] == 1) {\n System.out.println(\"Cycle\");\n return;\n }\n if (visited[node] == 2) {\n return;//already vicited\n }\n System.out.printf(\"node visiting %d\\n\",node);\n visited[node] = 1;\n for (int i = 0; i < adjMatrix[node].size(); i++) {\n dfs(adjMatrix[node].get(i), visited);\n }\n System.out.printf(\"node visited %d\\n\",node);\n visited[node] = 2;\n }", "public boolean foundLoop();", "public void findLoop(NodeLoop first){\n ArrayList<String> ids = new ArrayList<String>();\n NodeLoop cur = first;\n\n //Finds Loop, if cur.next=null there was no loop\n while(cur.next!=null){\n\n //Found Cycle\n if(ids.contains(cur.id)){\n System.out.println(\"Cycle Found, Begins at \" + cur.id);\n break;\n }\n\n //Add current id to list of id's\n ids.add(cur.id);\n cur = cur.next;\n }\n\n //If no cycle found\n if(cur.next==null){\n System.out.println(\"No Cycle's Found\");\n }\n\n }", "public BellmanFord(Edge[] edges, int nodes, int start) {\n distances = new int[nodes];\n parent = new int[nodes];\n child = new int[nodes];\n hasNegativeCycle = new boolean[nodes];\n boolean[] checked = new boolean[nodes];\t//used when checking for negative cycles\n boolean negativeCycle = false;\t\t\t//has ANY negative cycle\n\n //Step 1: Initialize\n for (int i = 0; i < nodes; i++) {\n distances[i] = Integer.MAX_VALUE;\n parent[i] = NOPARENT;\n child[i] = NOPARENT;\n hasNegativeCycle[i] = false;\n }\n distances[start] = 0;\n parent[start] = start; //start is itselves parent\n \n //Step 2: Find shortest distance from start to any other node\n for (int step = 0; step < nodes; step++) {\n for (int i = 0; i < edges.length; i++) {\n int from = edges[i].from;\n if (distances[from] == Integer.MAX_VALUE) {\n //infinite + something == infinite, therefore skip this one!\n continue;\n }\n int to = edges[i].to;\n\n if (distances[from] + edges[i].weight < distances[to]) {\n distances[to] = distances[from] + edges[i].weight;\n //System.err.println(\"from \" + from + \" to \" + to + \" dist[to] \" + distances[to]);\n parent[to] = from;\n child[from] = to;\n }\n }\n }\n \n //Step 3-1: Detect Negative Cycles:\n for (int i = 0; i < edges.length; i++) {\n int from = edges[i].from;\n int to = edges[i].to;\n \n if(hasNegativeCycle[from] && hasNegativeCycle[to]){\n continue;\n }\n if(parent[from] == NOPARENT){\n checked[from] = true;\n continue;\n }\n if (distances[from] + edges[i].weight < distances[to]) {\n negativeCycle = true;\n int tmp = from;\n while(tmp != to && tmp >= 0 && !checked[tmp]){\n \t//Mark the whole negative cycle as negative cycle! \n \t//Note that this will not detect elements that branch from the negative cycle as negative cycle!\n markNegativeCycle(checked, tmp);\n tmp = parent[tmp];\n }\n markNegativeCycle(checked, to);\n }\n }\n if(negativeCycle == false){\n \t//If no negative cycle detected, then we are done!\n return;\n }\n //Step 3-2: Mark ALL elements that are reached through a negative cycle as negative cycle!\n checked[start] = true; //We have checked start, prevents infinite loop\n for(int i = 0; i < nodes; i++){\n if(checked[i] == false){\n int tmp = parent[i];\n checked[i] = true;\n while(true){\n \t//Mark elements reached t\n if(tmp == NOPARENT){\n break;\n }else if(checked[tmp] && hasNegativeCycle[tmp] == false){\n \t//Reached start or a non-negative-cycle part of the graph, done checking this part\n break;\n }else if(hasNegativeCycle[tmp]){\n \t//If parent of i has negative cycle\n \t//then reach through everything reached by it and mark as negative cycle\n tmp = i;\n while(hasNegativeCycle[tmp] == false){\n markNegativeCycle(checked, tmp);\n tmp = parent[tmp];\n }\n break;\n }\n checked[tmp] = true;\n tmp = parent[tmp];\n }\n }\n }\n }", "public Iterable<Integer> cycle(){\n return cycle;\n }", "public static Long cycleCounting(MySparseMatrix adjMatrix) {\n return adjMatrix.traceCubed();\n }", "Integer getMaxSuccessiveDeltaCycles();", "public boolean detectCycles()\n {\n try {\n execute(null, null);\n } catch (CycleDetectedException ex) {\n return true;\n }\n\n return false;\n }", "@Test\n public void testVerifyLoopTerminatesWhenCycleFound() throws Exception {\n // Add more mocking detail to our dependencies first.\n // ----------------------------------------------------\n\n DepChaser sut = createSut();\n\n // First mock our dependencyMap to know about variables a thru f\n when(_dependencyMap.keySet()).thenReturn(new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\")));\n\n // ----------------------------------------------------------------------------------\n // we're going to make it so it takes 2 iterations in DepChaser to handle a thru f\n // ----------------------------------------------------------------------------------\n\n // The 1st time, our mocked checker is going to checkout no cycles in a, b, c variables\n ChildrenDependencyChecker checker1 = mock(ChildrenDependencyChecker.class);\n Exception exception = new Exception(\"fake exception\");\n when(checker1.run()).thenThrow(exception);\n\n when(_dependencyCheckerFactory.create(\"a\", _dependencyMap, new HashSet<>())).thenReturn(checker1);\n\n Assert.assertFalse(sut.validateNoDependencyCycles());\n verify(checker1, times(1)).run();\n\n // Verify no variables were verified\n Assert.assertEquals(new HashSet<>(), sut.getVerifiedVariables());\n // Verify the _dependencyCheckerFactory was only called once.\n verify(_dependencyCheckerFactory, times(1)).create(\"a\", _dependencyMap, new HashSet<>());\n verifyNoMoreInteractions(_dependencyCheckerFactory);\n }", "public static int iterativeFactDP(int n){\n int[] table = new int[n+1];\n table[0] = 0;\n table[1] = 1;\n for (int i = 2; i <=n ; i++) {\n table[i] = table[i-2]+table[i-1];\n }\n return table[n];\n }", "public static int findSmallestCycleEdge(int[][] graph){\r\n int smallest = Integer.MAX_VALUE;\r\n for(int i = 0 ; i < graph.length;i++){\r\n for(int j = 0; j < graph[i].length;j++){\r\n if (graph[i][j] < smallest){\r\n smallest = graph[i][j];\r\n }\r\n }\r\n }\r\n return smallest;\r\n }", "private int findF(int currentIndex){\r\n return findH(currentIndex) + findG(currentIndex);\r\n }", "public void doDfsIterative(Graph g, int s) {\n boolean[] myVisited = new boolean[8];\n Stack<Integer> stack = new Stack<>();\n stack.push(s);\n myVisited[s] = true;\n while (!stack.isEmpty()) {\n int top = stack.pop();\n System.out.print(\"[\" + top + \"] \");\n for (int e : g.adj[top]) {\n if (!myVisited[e]) {\n stack.push(e);\n myVisited[e] = true;\n }\n }\n }\n\n }", "static boolean isCorrectCycle(Vertex v, LinkedList<Vertex> cycle, int print) {\r\n\r\n boolean ret = true;\r\n\r\n if (print > 1)\r\n System.out.println(\"Checking cycle with vertex \" + v + \": \" + cycle);\r\n\r\n // check for invalid parameters\r\n if (v == null || cycle == null || cycle.isEmpty()) {\r\n if (print > 0)\r\n System.out.println(\"null or empty parameter, no check\");\r\n return false;\r\n }\r\n\r\n // check for too short cycles, 4 is minimum (v-x-y-v)\r\n if (cycle.size() < 4) {\r\n if (print > 0)\r\n System.out.println(\"too short cycle: \" + cycle.size());\r\n ret = false;\r\n }\r\n\r\n // check for correct first and last in cycle\r\n if (cycle.getFirst() != v) {\r\n if (print > 0)\r\n System.out.println(\"Wrong first vertex \" + cycle.getFirst());\r\n ret = false;\r\n }\r\n if (cycle.getLast() != v) {\r\n if (print > 0)\r\n System.out.println(\"Wrong last vertex \" + cycle.getLast());\r\n ret = false;\r\n }\r\n\r\n // extra: check if first and last are different (other than v)\r\n\r\n // check that all successive vertices in list are adjacent in graph\r\n\r\n ListIterator<Vertex> li = cycle.listIterator();\r\n Vertex prev = null;\r\n while (li.hasNext()) {\r\n Vertex w = li.next();\r\n if (prev != null && ! prev.isAdjacent(w)) {\r\n if (print > 0)\r\n System.out.println(\"No edge between \" + prev + \" and \" + w);\r\n ret = false;\r\n }\r\n // check that v is not in the middle of cycle\r\n if (prev != null && li.hasNext() && w == v) {\r\n if (print > 0)\r\n System.out.println(\"Required vertex \" + v + \" in the middle of cycle\");\r\n ret = false;\r\n }\r\n\r\n prev = w;\r\n } // while\r\n\r\n if (print > 1 && ret)\r\n System.out.println(\"Valid cycle\");\r\n\r\n return ret;\r\n\r\n }", "public void test4_c() {/*\n\t\tGDGraph gdGraph = new GDGraph();\n\t\tGDGVertex gdVertex = gdGraph.addVertex();\n\t\tGDGEdge gdEdge1 = gdGraph.addEdge(gdVertex, gdVertex);\n\t\tGDGEdge gdEdge2 = gdGraph.addEdge(gdVertex, gdVertex);\n\n\t\tgdEdge1.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i, j - 1) \n\t\t\t\t{ 1, 0, 0},\n\t\t\t\t{ 0, 1, -1},\n\t\t\t\t{ 0, 0, 1}\n });\n\t\tgdEdge1.producedDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (0..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0},\n\t\t\t\t{ 0, 1, -1}\n\t\t});\n\n\t\tgdEdge2.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i - 1, j + 7) \n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, 7},\n\t\t\t\t{ 0, 0, 1}\n });\n\t\tgdEdge2.producedDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (1..+inf, 0..+inf)\n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, 0}\n\t\t});\n\n\t\tgdVertex.computationDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (1..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, -1}\n\t\t});\n\t\t\n\t\tgdGraph.calculateFeautrierSchedule(false);\n\t\n\t\tgdGraph.<Rational>codeGeneration(Rational.ZERO, Rational.ONE);\n\t*/}", "public static boolean cycleInGraph(int[][] edges) {\n int numberOfNodes = edges.length;\n int[] colors = new int[numberOfNodes]; // By default, 0 (WHITE)\n\n for (int i = 0; i < numberOfNodes; i++) {\n\n if (colors[i] != WHITE) // If already visited/finished.\n continue;\n\n boolean isCycle = traverseAndMarkColor(edges, i, colors);\n\n if (isCycle)\n return true;\n }\n return false;\n }", "public CycleDetector(Graph<V, E> graph)\n {\n this.graph = GraphTests.requireDirected(graph);\n }", "public static void main(String[] args) {\n ArrayList<Integer> input = new ArrayList<>(Arrays.asList(1, 2, -1, 2, 2));\n System.out.println(\"has Cycle : \" + CycleCircularArray.hasCycle(input));\n input = new ArrayList<>(Arrays.asList(2, 2, -1, 2));\n System.out.println(\"has Cycle : \" + CycleCircularArray.hasCycle(input));\n input = new ArrayList<>(Arrays.asList(2, 1, -1, -2));\n System.out.println(\"has Cycle : \" + CycleCircularArray.hasCycle(input));\n }", "public static boolean hasCycle(ListNode node) {\n\t\treturn true;\n\t}", "boolean detectCycleUndirected(ArrayList<Integer> G[]) {\n\t\tint[] vis = new int[G.length];\n\t\tfor (int i = 0; i < G.length; i++) {\n\t\t\tif (vis[i] == 0) {\n\t\t\t\tif (detectCycleUtil(G, i, vis, -1))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "void bellman_ford(int s)\n {\n int dist[]=new int[V]; \n \n //to track the path from s to all\n int parent[]=new int[V] ;\n //useful when a vertex has no parent\n for(int i=0;i<V;i++)\n parent[i]=-2;\n \n for(int i=0;i<V;i++) \n dist[i]=INF;\n \n //start from source vertex\n dist[s]=0;\n parent[s]=-1;\n \n //we have to iterate over all the edges for V-1 times\n //each ith iteration finds atleast ith path length dist\n //worst case each ith will find ith path length \n \n for(int i=1;i<V;i++) \n {\n for(int j=0;j<E;j++)\n {\n //conside for all edges (u,v), wt\n int u=edge[j].src;\n int v=edge[j].dest;\n int wt=edge[j].wt; \n //since dist[u]=INF and adding to it=>overflow, therefore check first\n if( dist[u]!=INF && dist[u]+wt < dist[v])\n {\n dist[v]=dist[u]+wt;\n parent[v]=u;\n } \n }\n }\n \n //iterate for V-1 times, one more iteration necessarily gives a path length of atleast V in W.C=>cycle\n for(int j=0;j<E;j++) \n {\n int u=edge[j].src;\n int v=edge[j].dest;\n int wt=edge[j].wt;\n if( dist[u]!=INF && dist[u]+wt < dist[v])\n {\n System.out.println(\"Graph has cycle\");\n return;\n } \n }\n \n //print the distance to all from s\n System.out.println(\"from source \"+s+\" the dist to all other\");\n print_dist(dist); \n print_path(parent,dist,s); \n \n }", "private int caclSteps(float g, float h, float i) {\n\t\tint steps = 0;\n\t\tfloat currSpeed = i;\n\t\tfloat f = 0;\n\t\twhile(f<g){\n\t\t\tf +=currSpeed;\n\t\t\tcurrSpeed+=h;\n\t\t\tsteps++;\n\t\t\t\n\t\t}\n\t\treturn steps;\n\t}", "@Override\n public boolean onRecurse(DefaultGraph graph, int cycleStart,\n int cycleSecond, int lastVertex, int current, int currentFaces,\n int edgesLeft, int edgesInCurrentCycle)\n {\n int girth = graph.getGirth();\n \n /* Minimum number of edges needed to finnish current cycle. */\n int neededInCurrent;\n if(edgesInCurrentCycle >= girth) {\n if(graph.hasEdge(current, cycleStart))\n neededInCurrent = 1;\n else\n neededInCurrent = 2;\n } else {\n neededInCurrent = girth - edgesInCurrentCycle;\n }\n \n /* Simple bounding based on edges left/current number of faces. The\n * +1 is the cycle we're currently working on. */\n int estimate = currentFaces + 1 + (edgesLeft - neededInCurrent) / girth;\n \n /* If we are not going to get higher than our previous result, we can\n * bound. Note that we add 1 to our previous result, this is because\n * either all results will be even, or all results will be odd. */\n if(estimate <= previousResult + 1) {\n return false;\n }\n \n /*float depth = (float) edgesLeft / (float) graph.getNumberOfEdges();\n if(previousResult >= 0 && current < 0 &&\n estimate * 0.8f <= previousResult && depth >= 0.3f) {\n if(graph.estimate() <= previousResult) {\n return false;\n }\n }*/\n \n return true;\n }", "public void cyclePort() throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_CyclePort(ftHandle));\n }", "public int[] findMinimunPathBF(int src, int[][] graph) {\r\n\t\t// The distance from the src to each vertices.\r\n\t\tint[] dist = new int[graph.length];\r\n\t\t// Maximizing the distance of the sre to all the vertices.\r\n\t\tfor (int i = 0; i < dist.length; i++) {\r\n\t\t\tdist[i] = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tdist[src] = 0;\r\n\r\n\t\t// Loop |v|-1 times, For each edge in the graph.\r\n\t\tfor (int k = 0; k < graph.length - 1; k++) {\r\n\t\t\t// For each edge in the graph. \r\n\t\t\tfor (int i = 0; i < graph.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < graph.length; j++) {\r\n\t\t\t\t\t// Relax edge(i, j).\r\n\t\t\t\t\tif (graph[i][j] != 0) {\r\n\t\t\t\t\t\tif (dist[i] != Integer.MAX_VALUE\r\n\t\t\t\t\t\t\t\t&& dist[j] > dist[i] + graph[i][j]) {\r\n\t\t\t\t\t\t\tdist[j] = dist[i] + graph[i][j];\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\t// Check if there is a negative cycle, loop the edges.\r\n\t\tfor (int i = 0; i < graph.length; i++) {\r\n\t\t\t// For each edge in the graph.\r\n\t\t\tfor (int j = 0; j < graph.length; j++) {\r\n\t\t\t\tif (graph[i][j] != 0) {\r\n\t\t\t\t\t// Still can relax the edges?.\r\n\t\t\t\t\tif (dist[i] != Integer.MAX_VALUE\r\n\t\t\t\t\t\t\t&& dist[j] > dist[i] + graph[i][j]) {\r\n\t\t\t\t\t\t// Put a sign of having a negative cycle.\r\n\t\t\t\t\t\tdist[0] = Integer.MIN_VALUE;\r\n\t\t\t\t\t\treturn dist;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dist;\r\n\t}", "PythonAbstractCycleSlipDetector(double dt, int n) {\n super(dt, n);\n }", "private static Point findFarthestState(Cells[][] wallBoard, int column, int row)\n\t{\n\t\tint tries = 100;\n\t\tint farthest = 0;\n\t\tint farthestX = 0;\n\t\tint farthestY = 0;\n\t\tPoint farthestPos = new Point();\n\n\t\t_DF = new DeadlocksFinder(wallBoard);\n\n\t\tint[][] staticDLMap = _DF.getStaticDLMap();\n\n\t\tdo\n\t\t{\n\t\t\tint i = rn.nextInt(rows);\n\t\t\tint j = rn.nextInt(columns);\n\n\t\t\tif(board[i][j]==Cells.FLOOR && staticDLMap[i][j]!=1 && canStillReachEveryCrates(wallBoard, j, i))\n\t\t\t{\n\t\t\t\tArrayList<Point> path = _PF.findAReversedWay(column, row, j, i);\n\t\t\t\tint distance = path.size();\n\n\t\t\t\tif(distance==0)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tPoint ppos = new Point((int)path.get(path.size()-1).getX(), (int)path.get(path.size()-1).getY());\n\n\t\t\t\tif(distance > farthest)\n\t\t\t\t{\n\t\t\t\t\tfarthestX=j;\n\t\t\t\t\tfarthestY=i;\n\t\t\t\t\tfarthest=distance;\n\t\t\t\t\tfarthestPos=ppos;\n\t\t\t\t}\n\t\t\t}\n\t\t} while(tries-->0);\n\t\t\t\t\n\n\n\t\t/*for(int i=0; i<rows; i++)\n\t\t{\n\t\t\tfor(int j=0; j<columns; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR && staticDLMap[i][j]!=1)// && canStillReachEveryCrates(wallBoard, j, i))\n\t\t\t\t{\n\t\t\t\t\tArrayList<Point> path = _PF.findAReversedWay(column, row, j, i);\n\t\t\t\t\tint distance = path.size();\n\n\t\t\t\t\tif(distance==0)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tPoint ppos = new Point((int)path.get(path.size()-1).getX(), (int)path.get(path.size()-1).getY());\n\n\t\t\t\t\tif(distance > farthest)\n\t\t\t\t\t{\n\t\t\t\t\t\tfarthestX=j;\n\t\t\t\t\t\tfarthestY=i;\n\t\t\t\t\t\tfarthest=distance;\n\t\t\t\t\t\tfarthestPos=ppos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\n\t\tplayerPos.add(farthestPos);\n\t\treturn new Point(farthestX, farthestY);\n\t}", "int hasCycle(Node head) {\n\t// If list is null\n\tif(head == null) {\n\t\t// No cycle\n\t\treturn 0;\n\t}\n\n\tSet<Node> visitedNodes = new HashSet<Node>();\n\t\n\tNode current = head;\n\n\t// Loop through the list\n\twhile(current != null) {\n\t\t// If we have seen this node befor\n\t\tif(visitedNodes.contains(current)) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Add it to the set\n\t\tvisitedNodes.add(current);\n\n\t\t// Update current\n\t\tcurrent = current.next;\n\t}\n\n\t// If we get here, there are no cycles\n\treturn 0;\n}", "public interface CycleInGraph<V> {\n boolean hasCycle(Graph<V> graph) ;\n}", "int DFS(int i, int j) {\n if (dp[i][j] != 0)\n return dp[i][j];\n\n int steps = 0;\n int trial = 0;\n if (i < dp.length - 1 && matrix[i][j] < matrix[i+1][j]) {\n trial = DFS(i + 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (i > 0 && matrix[i][j] < matrix[i-1][j]) {\n trial = DFS(i - 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (j < dp[0].length - 1 && matrix[i][j] < matrix[i][j+1]) {\n trial = DFS(i, j + 1);\n if (trial > steps)\n steps = trial;\n }\n if (j > 0 && matrix[i][j] < matrix[i][j-1]) {\n trial = DFS(i, j - 1);\n if (trial > steps)\n steps = trial;\n }\n\n dp[i][j] = steps + 1;\n return dp[i][j];\n }", "public static Integer[] findC4 (Graph<Integer,String> g) {\n\t\tInteger[] cycle = new Integer[4];\r\n\t\tfor (Integer a : g.getVertices()) {\r\n\t\t\tif (IsA.Simplicial(g, a)) continue; // can't be in a C4.\r\n\t\t\tfor (Integer b : g.getNeighbors(a)) {\r\n\t\t\t\tfor (Integer c : g.getNeighbors(b)) {\r\n\t\t\t\t\tif (c == a || g.isNeighbor(a, c)) continue;\r\n\t\t\t\t\tfor (Integer d : g.getNeighbors(c)) {\r\n\t\t\t\t\t\tif (d==b || g.isNeighbor(b, d)) continue;\r\n\t\t\t\t\t\tif (g.isNeighbor(a, d)) {\r\n\t\t\t\t\t\t\tcycle[0]=a; cycle[1]=b; cycle[2]=c; cycle[3]=d;\r\n\t\t\t\t\t\t\treturn cycle;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null; // if no C4s are left\r\n\t}", "protected abstract void calculateNextFactor();", "public static int findPath(int currentTime[],int tLeave[], int timeStation[][], int transferTime[][], int totalStations) {\n\t\tint numofLines = currentTime.length;\n\t\tif(numofLines != 2){\n\t\t\tSystem.err.println(\"Only two assembly line supported\");\n\t\t\treturn -1;\n\t\t}\n\t\t//Cost function array\n\t\tint f[][] = new int[numofLines][totalStations];\n\t\t//Station index back track array\n\t\tint i[][] = new int[numofLines][totalStations];\n\t\t\n\t\t//Final Cost and Final Station\n\t\tint finalCost = 0;\n\t\tint lastStation = 0;\n\t\t\n\t\t//Time for first station\n\t\tf[0][0] = currentTime[0]+timeStation[0][0];\n\t\tf[1][0] = currentTime[1]+timeStation[1][0];\n\t\t\n\t\t\n\t\tfor (int j = 1; j < totalStations; j++) {\n\t\t\t\n\t\t\t\n\t\t\tif((f[0][j-1] + timeStation[0][j]) <= (f[1][j-1]+ transferTime[1][j-1]+timeStation[0][j])){\n\t\t\t\tf[0][j]= f[0][j-1]+ timeStation[0][j];\n\t\t\t\ti[0][j] = 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tf[0][j]= f[1][j-1]+ transferTime[1][j-1]+timeStation[0][j];\n\t\t\t\ti[0][j]=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(f[1][j-1] + timeStation[1][j] <= f[0][j-1]+ transferTime[0][j-1]+timeStation[1][j]){\n\t\t\t\tf[1][j]= f[1][j-1]+ timeStation[1][j];\n\t\t\t\ti[1][j] = 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tf[1][j]= f[0][j-1]+ transferTime[0][j-1]+timeStation[1][j];\n\t\t\t\ti[1][j] = 0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tif((f[0][totalStations-1]+tLeave[0]) <= (f[1][totalStations-1]+tLeave[1] )){\n\t\t\tfinalCost = f[0][totalStations-1]+tLeave[0];\n\t\t\tlastStation = 0;\n\t\t}\n\t\telse{\n\t\t\tfinalCost = f[1][totalStations-1]+tLeave[1] ;\n\t\t\tlastStation = 1;\n\t\t}\t\n\t\n\t\tprintStation(lastStation,finalCost, i, totalStations);\n\t\treturn finalCost;\n\t}", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "public void removeGraphCycles() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tint[] cycleCount = new int[map.size()];\r\n\t\tforComplexMotion = new boolean[map.size()];\r\n\t\t//count cycles\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(i != j) {\r\n\t\t\t\t\tif(graph[i][j] && graph[j][i]) {\r\n\t\t\t\t\t\tcycleCount[i]++;\r\n\t\t\t\t\t\tcycleCount[j]++;\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//remove fobjects from linear motion planning\r\n\t\tboolean hasCycles = true;\r\n\t\twhile(hasCycles) {\r\n\t\t\tint max = 0;\r\n\t\t\tint maxIndex = -1;\r\n\t\t\tfor(int i = 0; i < cycleCount.length; i++) {\r\n\t\t\t\tif(cycleCount[i] > max) {\r\n\t\t\t\t\tmax = cycleCount[i];\r\n\t\t\t\t\tmaxIndex = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(maxIndex == -1) {\r\n\t\t\t\thasCycles = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcycleCount[maxIndex] = 0;\r\n\t\t\t\tforComplexMotion[maxIndex] = true;\r\n\t\t\t\tfor(int i = 0; i < cycleCount.length; i++) {\r\n\t\t\t\t\tgraph[maxIndex][i] = false;\r\n\t\t\t\t\tgraph[i][maxIndex] = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean isFirstCycle() {\n return cycle == 0;\n }", "public void recalculateDistanceFunction()\r\n {\n findBoundaryGivenPhi();\r\n \r\n active.removeAllElements();\r\n\tfor(int i=0; i<pixelsWide; i++)\r\n\t\tfor(int j=0; j<pixelsHigh; j++)\r\n\t\t\t{\r\n if(!boundary.contains(new Int2d(i,j))) phi[i][j] = phiStart;\r\n //else System.out.println(\"Boundary point at i,j = \" + i + \", \" + j + \" with phi = \" + phi[i][j]);\r\n\t\t\t}\r\n \r\n //System.out.println(\"Building Initial Band\");\r\n\tbuildInitialBand(); \r\n \r\n //System.out.println(active.size());\r\n \r\n //System.out.println(\"Running Algorithm\");\r\n\twhile(active.size()>0)\r\n\t\t{\r\n\t\trunAlgorithmStep();\r\n\t\t}\r\n\t\r\n //System.out.println(\"Distance function calculated\");\r\n\t//maxPhi = findMaxPhi();\r\n }", "public DirectedCycle(Digraph G) {\n onStack = new boolean[G.V()];\n marked = new boolean[G.V()];\n edgeTo = new int[G.V()];\n\n //Cycle through each vertex to see if it is in a cycle\n for (int v = 0; v < G.V(); v++) {\n if (marked[v] == false) {\n dfs(G, v);\n }\n }\n }", "@Test public void testPublic13() {\n Graph<Integer> graph= TestGraphs.testGraph4();\n int i;\n\n for (i= 0; i < 4; i++)\n assertTrue(graph.isInCycle(i));\n\n assertFalse(graph.isInCycle(4));\n }", "void calc_closure(){\r\n\t\tint [] queue = new int[maxn];\r\n\t\tint head,tail,i,j,k;\r\n\t\tfor (i=0; i<state; ++i){\r\n\t\t\tfor (j=0; j<state; ++j)\r\n\t\t\t\tclosure[i][j]=false;\r\n\t\t\t\r\n\t\t\t//Breadth First Search\r\n\t\t\thead=-1;\r\n\t\t\ttail=0;\r\n\t\t\tqueue[0]=i;\r\n\t\t\tclosure[i][i]=true;\r\n\t\t\twhile (head<tail){\r\n\t\t\t\tj=queue[++head];\r\n\t\t\t\t//search along epsilon edge\r\n\t\t\t\tfor (k=0; k<state; ++k)\r\n\t\t\t\t\tif ((!closure[i][k])&&(g[j][symbol][k]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue[++tail]=k;\r\n\t\t\t\t\t\tclosure[i][k]=true;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "double cyclicValue(double x, double period) {\n return .5*(Math.cos(x / period * 2*Math.PI) + 1.);\n }", "double cyclicValue(double x, double period) {\n return .5*(Math.cos(x / period * 2*Math.PI) + 1.);\n }", "static void BellmanFord(int[][] edges, int src) {\n int V = edges[0].length;\n int dist[] = new int[V];\n\n // Step 1: Initialize distances from src to all other\n // vertices as INFINITE\n for (int i = 0; i < V; i++)\n dist[i] = Integer.MAX_VALUE;\n dist[src] = 0;\n\n // Step 2: Relax all edges |V| - 1 times. A simple\n // shortest path from src to any other vertex can\n // have at-most |V| - 1 edges\n // var++ is the value of the variable before incrementing, whereas the result returned by ++var is the value of the variable after the increment is applied.\n for (int i = 1; i < V; i++) {\n for (int j = 0; j < V; j++) {\n for (int k = 0; k < V; k++) {\n if (j != k && edges[j][k] != Integer.MAX_VALUE) {\n int weight = edges[j][k];\n if (dist[j] != Integer.MAX_VALUE && dist[j] + weight < dist[k])\n dist[k] = dist[j] + weight;\n }\n }\n }\n }\n\n // Step 3: check for negative-weight cycles. The above\n // step guarantees shortest distances if graph doesn't\n // contain negative weight cycle. If we get a shorter\n // path, then there is a cycle.\n for (int j = 0; j < V; j++) {\n for (int k = 0; k < V; k++) {\n if (j != k && edges[j][k] != Integer.MAX_VALUE) {\n int weight = edges[j][k];\n if (dist[j] != Integer.MAX_VALUE && dist[j] + weight < dist[k])\n System.out.println(\"Graph contains negative weight cycle\");\n }\n }\n }\n System.out.println();\n }", "static boolean hasCycle(Node head) {\n\t\t\n\t\tif(head == null) return false;\n\t\t\n\t\t//Using the concept of one pointer moving faster than another, since at some point both will meet \n\t\t//at the same point and close a cycle (if any).\n\t\tNode slowPointerNode = head;\n\t\tNode fastPointerNode = head.getNext();\n\t\t\n\t\twhile(fastPointerNode != null && fastPointerNode.getNext() != null) {\n\t\t\tif(slowPointerNode == fastPointerNode) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tslowPointerNode = slowPointerNode.getNext();\n\t\t\tfastPointerNode = fastPointerNode.getNext().getNext();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean hasSelfLoops();", "boolean detectCycledirected(ArrayList<Integer> G[]) {\n\t\tint[] vis = new int[G.length];\n\t\tint[] ancestor = new int[G.length];\n\t\tfor (int i = 0; i < G.length; i++) {\n\t\t\tif (vis[i] == 0) {\n\t\t\t\tif (detectCycleUtil(G, i, vis, ancestor))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n Map<Integer, List<Node>> map = new HashMap<>();\n for (int[] flight : flights) {\n if (map.containsKey(flight[0])) {\n map.get(flight[0]).add(new Node(flight[1], flight[2]));\n } else {\n List<Node> list = new ArrayList<>();\n list.add(new Node(flight[1], flight[2]));\n map.put(flight[0], list);\n }\n }\n\n\n boolean[] visited = new boolean[n];\n int[] cache = new int[n];\n dfs(map, src, dst, K, -1, 0, visited);\n return min == Integer.MAX_VALUE ? -1 : min;\n }" ]
[ "0.7159461", "0.61774886", "0.6028344", "0.6001418", "0.59922504", "0.5911578", "0.5722297", "0.5688768", "0.5676582", "0.5615768", "0.5614361", "0.5559715", "0.550222", "0.5501865", "0.54854393", "0.5430166", "0.5428", "0.5393668", "0.53751886", "0.53520954", "0.532241", "0.5311605", "0.5311184", "0.52961236", "0.52108777", "0.5209839", "0.51945734", "0.5114501", "0.5094366", "0.50623536", "0.50568044", "0.50264686", "0.5013189", "0.49943396", "0.49927163", "0.49875036", "0.49800953", "0.49752185", "0.495458", "0.49461797", "0.49241254", "0.49137732", "0.49107468", "0.49063003", "0.48981905", "0.48781964", "0.487023", "0.48424885", "0.4839529", "0.48350915", "0.48256874", "0.48190674", "0.48166886", "0.4814544", "0.48025736", "0.48006514", "0.47870028", "0.47817484", "0.47722065", "0.47719663", "0.47668672", "0.47650018", "0.47500175", "0.47461334", "0.47393057", "0.4732638", "0.47292638", "0.4723571", "0.47198778", "0.47178805", "0.47061107", "0.46957076", "0.4695288", "0.46952537", "0.46897215", "0.46882513", "0.4686579", "0.4685955", "0.4683836", "0.46766764", "0.46674335", "0.4664001", "0.46529037", "0.46527836", "0.46517873", "0.4648723", "0.4640597", "0.46353143", "0.463502", "0.46318632", "0.463159", "0.46290034", "0.46210778", "0.46184596", "0.46184596", "0.4611439", "0.46030092", "0.45640892", "0.45581928", "0.45565462" ]
0.7750297
0
Utility method to get a line of text from the input stream.
private String getTextLineFromStream( InputStream is ) throws IOException { StringBuffer buffer = new StringBuffer(); int b; while( (b = is.read()) != -1 && b != (int) '\n' ) { buffer.append( (char) b ); } return buffer.toString().trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}", "private String eatLine( InputStream 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 case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "String readLine() throws IOException\n\t{\n\t\tString line = null;\n\t\tif (haveStreams())\n\t\t\tline = m_in.readLine();\n\t\telse\n\t\t\tline = keyboardReadLine();\n\n\t\tsetCurrentLine(line);\n\t\treturn line;\n\t}", "public String readLine() throws ShellIOException;", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "private String readLine() {\r\n\t\ttry {\r\n\t\t\treturn input.readLine();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String readLine() {\n if(in.hasNextLine()) {\n return in.nextLine();\n } else {\n // remote host closed connection!\n cleanup();\n return null;\n }\n }", "private static String readLine() {\r\n String input=\"\";\r\n try {\r\n input = in.readLine();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return input;\r\n }", "public String readLine() throws IOException {\n\t\t// Punt on this and use BufferedReader routines.\n\t\tBufferedReader d = new BufferedReader(new InputStreamReader(this));\n\t\treturn d.readLine();\n\t}", "String getLine();", "public String readLine() throws IOException, ReadTimeoutException {\n\t\ttry {\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[0] = (byte) inputStream.read();\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[1] = (byte) inputStream.read();\n\t\t\tlineLength = 2;\n\t\t\twhile (lineBuffer[lineLength - 2] != (byte) 13\n\t\t\t\t|| lineBuffer[lineLength - 1] != (byte) 10) {\n\t\t\t\twaitForAvailable();\n\t\t\t\tlineBuffer[lineLength] = (byte) inputStream.read();\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\treturn new String(lineBuffer, 0, lineLength - 2);\n\t\t} catch (ArrayIndexOutOfBoundsException aioobe) {\n\t\t\tthrow new IOException(\"Line too long.\");\n\t\t}\n\t}", "private String readLine() {\n\t\ttry {\n\t\t\treturn reader.nextLine();\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getLine();", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "public String readLine(){\n\t\tString line;\n\t\ttry{\n\t\t\tline=scanner.nextLine();\n\t\t}catch (NoSuchElementException e){\n\t\t\tline=null;\n\t\t}\n\t\treturn line;\n\t}", "public String readLineOfText() \r\n\t{\r\n\t\tString lineOfText = null;\r\n\t\t\r\n\t\t// Read a line of text from the input file and convert it to upper case\r\n\t\ttry \r\n\t\t{\r\n\t\t\tlineOfText = inFile.readLine();\r\n\t\t} // try\r\n\t\tcatch (Exception Error) \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tthrow (Error);\r\n\t\t\t} // try\r\n\t\t\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\t// We are in real trouble if we get here.\r\n\t\t\t} // catch\r\n\r\n\t\t} // catch\r\n\r\n\t\treturn (lineOfText);\r\n\t}", "private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}", "private static String readFromStream(InputStream inputStream) {\n StringBuilder outputString = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n try {\n String line = reader.readLine();\n while (line != null) {\n outputString.append(line);\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error reading line from reader, readFromStream() block\", e);\n }\n }\n return outputString.toString();\n }", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "@Override\n public String readLine() {\n try {\n return this.bufferedReader.readLine();\n } catch (IOException e) {\n return \"\";\n }\n }", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "private String getResponseText(InputStream inStream) {\n return new Scanner(inStream).useDelimiter(\"\\\\A\").next();\n }", "public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }", "String getLine (int line);", "String getLine ();", "private String readStream(InputStream in) throws IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(in));\n\n StringBuilder sb = new StringBuilder();\n String line;\n\n // Reads every line and stores them in sb.\n while((line = r.readLine()) != null) {\n sb.append(line);\n }\n\n // Closes the input stream.\n in.close();\n\n return sb.toString();\n }", "public static String readString() {\n return in.nextLine();\n }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "public static String readNextLine() {\n return sc.nextLine();\n }", "private String getLine(final int index) {\n Element elem = TextUtils.getParagraphElement(document, index);\n if (elem == null) {\n return null;\n }\n int start = elem.getStartOffset();\n int length = elem.getEndOffset() - start;\n String result = null;\n try {\n result = document.getText(start, length);\n } catch (final BadLocationException e) {\n }\n return result;\n }", "public String getLine() {\r\n\t\treturn content;\r\n\t}", "public abstract String readLine() throws IOException, InterruptedException;", "public CharSequence getLineContents(int line) {\n getLock().getReadLock();\n try {\n return lines.getLineContents(line);\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public Line getLine(String targetLine);", "public String readLine() throws IOException\r\n\t{\r\n\t\treturn file.readLine();\r\n\t}", "public static String readLine(InputStream inputStream, String charset,\n boolean includeCR) throws IOException {\n byte[] line = readLine(inputStream, includeCR);\n return (null == line) ? null : new String(line, charset);\n }", "public String getMarkdownInputLine() {\n if (markdownReader == null) {\n return null;\n } else {\n return markdownReader.readLine();\n }\n }", "public String getLine ()\n {\n return line;\n }", "private String stringFromInputStream(InputStream instream) throws IOException {\n StringBuilder sb = new StringBuilder(\"\");\n if (instream == null) {\n logger.warn(\"Input stream is null.\");\n return sb.toString();\n }\n BufferedReader bufreader = new BufferedReader(new InputStreamReader(instream));\n String line = \"\";\n while ((line = bufreader.readLine()) != null) {\n sb.append(line);\n sb.append(LINE_SEPARATOR);\n }\n return sb.toString();\n }", "abstract public String readLine() throws TerminalException;", "public String getLineText(int lineNumber) {\n getLock().getReadLock();\n try {\n int start = getLineStartOffset(lineNumber);\n int end = getLineEndOffsetBeforeTerminator(lineNumber);\n return (start == end) ? \"\" : getTextBuffer().subSequence(start, end).toString();\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public static String getText(InputStream is) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n return getText(reader);\n }", "private String read(InputStream in) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(in), 1000);\n for (String line = r.readLine(); line != null; line = r.readLine()) {\n sb.append(line);\n }\n in.close();\n return sb.toString();\n }", "public static String readLine()\n {\n \tString ch=scanner.nextLine();\n \treturn ch;\n }", "public String readLine() {\n BufferedReader input;\n String str = null;\n \n if (file == null || line < 0) {\n return null;\n }\n try {\n input = new BufferedReader(new FileReader(file));\n for (int i = 0; i < line; i++) {\n str = input.readLine();\n }\n input.close();\n } catch (IOException e) {\n return null;\n }\n return str;\n }", "private static String readFromStream(InputStream inputStream) throws IOException {\n\n // Create a new empty string builder\n StringBuilder stringBuilder = new StringBuilder();\n\n // Create a bufferedReader that reads from the inputStream param\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream,\n Charset.forName(\"UTF-8\")));\n\n // Create a string that is one line of the buffered reader\n String line = bufferedReader.readLine();\n\n while (line != null) {\n // Add line to stringBuilder\n stringBuilder.append(line);\n\n // Set line to the next line in buffered reader\n line = bufferedReader.readLine();\n }\n\n // Return string builder as a string\n return stringBuilder.toString();\n }", "public final int getLine() {\n/* 377 */ return this.bufline[this.bufpos];\n/* */ }", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "private String getResponse(InputStream input) throws IOException {\n\t\ttry (BufferedReader buffer = new BufferedReader(new InputStreamReader(input))) {\n\t\t\treturn buffer.lines().collect(Collectors.joining(\"\\n\"));\n\t\t}\n\t}", "private static String read(InputStream in) throws IOException {\n StringBuilder builder = new StringBuilder();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String line = null;\n while ((line = reader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n }", "public synchronized String Readline() {\n\t return lines.poll();\n\t}", "public final String readNextLine() throws IOException {\r\n String str;\r\n if (buf_end-buf_pos <= 0) {\r\n if (fillBuffer() < 0) {\r\n throw new IOException(\"Error filling buffer!\");\r\n }\r\n }\r\n int lineEnd = -1;\r\n for (int i = buf_pos; i < buf_end; i++) {\r\n if (buffer[i] == '\\n') {\r\n lineEnd = i;\r\n break;\r\n }\r\n }\r\n if (lineEnd < 0) {\r\n StringBuilder input = new StringBuilder(256);\r\n int c;\r\n while (((c = read()) != -1) && (c != '\\n')) {\r\n input.append((char)c);\r\n }\r\n if ((c == -1) && (input.length() == 0)) {\r\n return null;\r\n }\r\n return input.toString();\r\n }\r\n\r\n if (lineEnd > 0 && buffer[lineEnd-1] == '\\r') {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos -1);\r\n }\r\n else {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos);\r\n }\r\n buf_pos = lineEnd +1;\r\n return str;\r\n }", "public String getLine() {\n\t\treturn line.toString();\n\t}", "private static String getStringFromInputStream(InputStream is) {\r\n\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n String line;\r\n try {\r\n\r\n br = new BufferedReader(new InputStreamReader(is));\r\n while ((line = br.readLine()) != null) {\r\n sb.append(line);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (br != null) {\r\n try {\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n\r\n return sb.toString();\r\n\r\n }", "public static String readAsciiLine(InputStream in) throws IOException {\n\t\t// TODO: support UTF-8 here instead\n\n\t\tStringBuilder result = new StringBuilder(80);\n\t\twhile (true) {\n\t\t\tint c = in.read();\n\t\t\tif (c == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t} else if (c == '\\n') {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tresult.append((char) c);\n\t\t}\n\t\tint length = result.length();\n\t\tif (length > 0 && result.charAt(length - 1) == '\\r') {\n\t\t\tresult.setLength(length - 1);\n\t\t}\n\t\treturn result.toString();\n\t}", "public String readLine() {\n\n String temp = null;\n\n try\n {\n assert this.isValid();\t\t\t//Test that we can read the file\n temp = br.readLine();\t\t\t//Read the next line and store it as temp\n }\n\n\t\t//Catch possible exceptions\n catch(java.io.IOException e) {\n System.out.println(\"Error reading file: \" + e );\n }\n\n return temp;\n }", "public int getLine();", "public int getLine();", "public int getLine();", "public String readLine() throws IOException {\n/* 176 */ String line = this.currentFilePart.readLine();\n/* 177 */ while (line == null) {\n/* 178 */ this.currentFilePart = this.currentFilePart.rollOver();\n/* 179 */ if (this.currentFilePart != null) {\n/* 180 */ line = this.currentFilePart.readLine();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 188 */ if (\"\".equals(line) && !this.trailingNewlineOfFileSkipped) {\n/* 189 */ this.trailingNewlineOfFileSkipped = true;\n/* 190 */ line = readLine();\n/* */ } \n/* */ \n/* 193 */ return line;\n/* */ }", "public String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n } finally {\n try {\n br.close();\n } catch (Exception e) {\n }\n br = null;\n return sb.toString();\n }\n }", "public abstract String getLine(int lineNumber);", "public final String readASCIILine() throws IOException\n {\n char buf[] = lineBuffer;\n\n if (buf == null)\n {\n buf = lineBuffer = new char[128];\n }\n\n int room = buf.length;\n int offset = 0;\n int c;\n\n loop: while (true)\n {\n switch (c = in.read())\n {\n case -1:\n case '\\n':\n break loop;\n\n case '\\r':\n int c2 = in.read();\n if ((c2 != '\\n') && (c2 != -1))\n {\n if (!(in instanceof PushbackInputStream))\n {\n in = new PushbackInputStream(in);\n }\n ((PushbackInputStream) in).unread(c2);\n }\n break loop;\n\n default:\n if (--room < 0)\n {\n buf = new char[offset + 128];\n room = buf.length - offset - 1;\n System.arraycopy(lineBuffer, 0, buf, 0, offset);\n lineBuffer = buf;\n }\n buf[offset++] = (char) c;\n break;\n }\n }\n if ((c == -1) && (offset == 0))\n {\n return null;\n }\n return String.copyValueOf(buf, 0, offset);\n }", "public synchronized String readLineFromFile(){\n\t\tString line = null;\n\t\t\n\t\ttry{\n\n\t\t\tif((line = bufferedInput.readLine()) != null){\n\t\t\t\treturn line;\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException ex) {\n \t\tSystem.err.println(\"File is Blank\");\t\t \n \t\tSystem.exit(1); \n\t\t}\n\t\tcatch(IOException ex) {\n System.err.println(\"Unable to read a line from file\");\t\t \n\t\t\tSystem.exit(1); \n }\n\n\t\treturn line;\n\t}", "private static String readFromStream(InputStream inputStream) throws IOException {\n StringBuilder output = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n output.append(line);\n line = reader.readLine();\n }\n }\n return output.toString();\n }", "public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }", "public String nextLine()\n\t{\t\t\n\t\t\n\t\treturn this.getIn().nextLine();\n\t}", "@Override\n public String readLine() throws IOException {\n checkBuffer(-1);\n this.randomAccessFile.seek(this.fileOffset + this.bufferPointer.bufferOffset);\n String line = this.randomAccessFile.readLine();\n this.fileOffset = this.randomAccessFile.getFilePointer();\n this.bufferPointer.invalidate();\n return line;\n }", "public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }", "@Override\n public String readLine() throws IOException {\n\n String line = null;\n\n while (true) {\n\n line = super.readLine();\n\n if (line == null) {\n\n return null;\n }\n\n // Get rid of comments\n\n // VT: FIXME: not handling the escaped comments\n\n int hash = line.indexOf(\"#\");\n\n if (hash != -1) {\n\n // Check if the '#' is escaped\n\n if (hash > 0 && line.indexOf(\"\\\\#\") == hash - 1) {\n\n // Yes, it is\n\n // System.err.println( \"Raw: '\"+line+\"'\" );\n line = line.substring(0, hash - 1) + line.substring(hash, line.length());\n // System.err.println( \"Unescaped: '\"+line+\"'\" );\n\n } else {\n\n line = line.substring(0, hash);\n }\n }\n\n // Trim it\n\n line = line.trim();\n\n if (line.length() != 0) {\n\n return line;\n }\n }\n }", "public String getLine() {\n return this.line;\n }", "public String readFirstLine() {\n if ( scanner.hasNextLine() ) {\n return scanner.nextLine();\n }\n return \"\";\n }", "public String readStream(InputStream in) {\n BufferedReader reader = null;\n StringBuffer data = new StringBuffer(\"\");\n try {\n reader = new BufferedReader(new InputStreamReader(in));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n data.append(line);\n }\n } catch (IOException e) {\n Log.e(\"Log\", \"IOException\");\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return data.toString();\n }", "static String slurp(InputStream stream) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line).append(System.lineSeparator());\n }\n br.close();\n return sb.toString();\n }", "int getLine();", "public static String readInput() {\r\n return SCANNER.nextLine();\r\n }", "private void readLine() throws IOException {\n line = reader.readLine(); // null at the end of the source\n currentPos = -1;\n\n if (line != null) {\n lineNum++;\n }\n\n if (line != null) {\n sendMessage(new Message(MessageType.SOURCE_LINE, new Object[]{lineNum, line}));\n }\n }", "@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}", "public static String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "public String getCurrentInputString() { return line; }", "public String next() {\n try {\n String result = fNextLine;\n if (fNextLine != null) {\n fNextLine = fIn.readLine();\n if (fNextLine == null) {\n fIn.close();\n }\n }\n\n return result;\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }", "public abstract String getFirstLine();", "public CommandLine getLine() {\n return line;\n }", "private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }", "public String getSourceLine (int line);", "private String read() {\n\n String s = \"\";\n\n try {\n // Check if there are bytes available\n if (inStream.available() > 0) {\n\n // Read bytes into a buffer\n byte[] inBuffer = new byte[1024];\n int bytesRead = inStream.read(inBuffer);\n\n // Convert read bytes into a string\n s = new String(inBuffer, \"ASCII\");\n s = s.substring(0, bytesRead);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Read failed!\", e);\n }\n\n return s;\n }", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "public static String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(stream));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n }", "public Line getLine()\n {\n return line;\n }", "public String read() throws IOException {\n return reader.readLine();\n }", "private static String stringFromInputStream(InputStream inIS) {\n\n if (inIS == null) {\n return null;\n }\n StringBuffer outBuffer = new StringBuffer();\n InputStreamReader isr = null;\n BufferedReader input = null;\n try {\n String line = null;\n isr = new InputStreamReader(inIS);\n input = new BufferedReader(isr);\n while ((line = input.readLine()) != null) {\n if (line.indexOf(\"//\") == -1) {\n outBuffer.append(line);\n outBuffer.append(System.getProperty(\"line.separator\"));\n }\n }\n } catch (IOException ioe) {\n log.error(\"Unable to read from InputStream or write to output buffer\");\n ioe.printStackTrace();\n outBuffer = null;\n }\n try {\n isr.close();\n input.close();\n inIS.close();\n } catch (IOException ioe) {\n log.error(\"InputStream could not be closed\");\n ioe.printStackTrace();\n }\n if (outBuffer == null) {\n return null;\n } else {\n return outBuffer.toString();\n }\n\n }", "public MInOutLine getLine()\n\t{\n\t\tif (m_line == null)\n\t\t\tm_line = new MInOutLine (getCtx(), getM_InOutLine_ID(), get_TrxName());\n\t\treturn m_line;\n\t}", "@Test\n public void testNextLineText() {\n System.out.println(\"nextLineText\");\n System.out.println(\"nextLineText@no line terminators in the file.\");\n for(TypeOfStream stype: TypeOfStream.values()) {\n InputStream stream = getInputStream(stype, TypeOfContent.BYTE_10, cs_UTF_8);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs_UTF_8.newDecoder(), 10);\n assertEquals(0, instance.position());\n String expResult = TypeOfContent.BYTE_10.getContent();\n String result = instance.nextLineText();\n assertEquals(expResult, result);\n assertEquals(11, instance.position());\n }\n }", "protected String inputLine(String message) {\n System.out.println(\"\\n\\n\" + message + \" \");\n return new Scanner(System.in).nextLine();\n }", "public static String GetStringFromInputStream(InputStream is) {\n\t\tString line;\n\t\tStringBuilder total = new StringBuilder();\n\n\t\t// Wrap a BufferedReader around the InputStream\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\n\t\t// Read response until the end\n\t\ttry {\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\ttotal.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tUtilities\n\t\t\t\t\t\t.LogWarning(\"GetStringFromInputStream - could not close stream\");\n\t\t\t}\n\t\t}\n\n\t\t// Return full string\n\t\treturn total.toString();\n\t}", "@Override\n\tpublic String read() \n\t{\n\t\tString res = \"\";\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tif (scan.hasNextLine())\n\t\t\tres = scan.nextLine();\n\t\t\n\t\treturn res;\n\t\t\n\n\t}", "@Override\n\tpublic String readLine() throws IOException {\n\t\tString line = super.readLine();\n\t\n\t\tif(line==null){\n\t\t\treturn null;\n\t\t}\t\n\t\tline = count+\" \"+line;\n\t\tcount++;\n\t\treturn line;\n\t}", "private String nextLine() {\n if (console) {\n return con.nextLine();\n }\n return scan.nextLine();\n\n }", "private String readIt(InputStream stream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream, \"iso-8859-1\"), 128);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n return sb.toString();\n }" ]
[ "0.6959577", "0.6895817", "0.6860428", "0.67538166", "0.67384624", "0.67347336", "0.6731782", "0.6688857", "0.6643913", "0.6638361", "0.66290677", "0.66007227", "0.6578163", "0.6576571", "0.6557449", "0.64928395", "0.64566714", "0.63662", "0.6337461", "0.6326932", "0.6302925", "0.6294726", "0.6285024", "0.62842757", "0.626975", "0.6257404", "0.6253277", "0.6204485", "0.6196949", "0.6173282", "0.6162057", "0.6158819", "0.6156843", "0.6145152", "0.6143698", "0.61284006", "0.6128226", "0.61223435", "0.6112062", "0.6112034", "0.6111939", "0.6105485", "0.6101617", "0.6093697", "0.6079831", "0.60277396", "0.60195565", "0.6002423", "0.5994397", "0.5991965", "0.59894216", "0.59861237", "0.5979613", "0.59786004", "0.59745574", "0.5950651", "0.5925045", "0.5925045", "0.5925045", "0.5924908", "0.5911456", "0.59043384", "0.5898168", "0.5872877", "0.5870097", "0.5869359", "0.5861855", "0.58409214", "0.5838968", "0.58234113", "0.5823243", "0.582149", "0.58193135", "0.5818385", "0.58029", "0.5770945", "0.5761416", "0.5753874", "0.5750348", "0.5747531", "0.5745698", "0.57280016", "0.57059544", "0.56755626", "0.5668114", "0.5664087", "0.5660912", "0.5657178", "0.56497127", "0.5633527", "0.5627112", "0.5608811", "0.5604011", "0.56028646", "0.55946183", "0.5588212", "0.5575415", "0.5574456", "0.55679643", "0.556212" ]
0.7716359
0
Set a name/value pair, null values will be treated as an empty String
public void set(String name, String value) { envMap.put(name,name+"="+StringUtil.nonNull(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(String name, Object value) {\n }", "void setValue(java.lang.String value);", "public void setValue(String name, Object value) {\n\t\tif (this.fields == null)\n\t\t\tthis.fields = new HashMap<String, Object>();\n\t\tif (name != null)\n\t\t\tthis.fields.put(name, value);\n\t}", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "void setValue(String value);", "void setValue(String value);", "public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }", "public void setString(String parName, String parVal) throws HibException;", "void setValue(final String value);", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "void set(String key, Object value);", "public void setValue (String Value);", "public void setValue(final String name, final Object value) {\r\n this.params.put(name, value);\r\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }", "public void setValue(String value)\n {\n this.value = value;\n }", "void put(String name, Object value);", "public void put(String key, String value) {\n if (key != null && value != null) {\n \tmStringParams.put(key, value);\n }\n }", "protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }", "public void set(String key, String value) {\n if (key.indexOf('=') != -1 || key.indexOf(';') != -1) {\n Log.e(TAG, \"Key \\\"\" + key + \"\\\" contains invalid character (= or ;)\");\n return;\n }\n if (value.indexOf('=') != -1 || value.indexOf(';') != -1) {\n Log.e(TAG, \"Value \\\"\" + value + \"\\\" contains invalid character (= or ;)\");\n return;\n }\n\n mMap.put(key, value);\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setString(String key, String value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value);\n\t\telse\n\t\t\tinternal.remove(key);\n\t}", "@Override\n public void setAttribute(String name, Object value) {\n if (name == null)\n throw new IllegalArgumentException(\"standardSession.setAttribute.namenull\");\n // Null value is the same as removeAttribute()\n if (value == null) {\n removeAttribute(name);\n return;\n }\n if (!valid)\n return;\n attributes.put(name, value);\n }", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(final String value)\n {\n this.value = value;\n }", "public void setParameter(String name, String value) throws IOException {\r\n boundary();\r\n writeName(name);\r\n newline();\r\n newline();\r\n writeln(value);\r\n }", "public void set(String s);", "public void setValue(String value) {\n set (value);\n }", "public void set(String key, Object value) {\n set(key, value, 0);\n }", "final void set(String key, String value) {\n set(key, value, false);\n }", "public void setString(String name, String value)\n/* */ {\n/* 1119 */ XMLAttribute attr = findAttribute(name);\n/* 1120 */ if (attr == null) {\n/* 1121 */ attr = new XMLAttribute(name, name, null, value, \"CDATA\");\n/* 1122 */ this.attributes.addElement(attr);\n/* */ } else {\n/* 1124 */ attr.setValue(value);\n/* */ }\n/* */ }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "private void setValue(String name, Object value, OptionMap map) {\n if (name.contains(\"_\")) {\n String pcs[] = name.split(\"\\\\_\", 2);\n name = pcs[0];\n OptionMap submap = (OptionMap) map.get(name);\n\n if (submap == null) {\n submap = new OptionMap();\n }\n\n setValue(pcs[1], value, submap);\n map.put(name, submap);\n } else {\n map.put(name, value);\n }\n }", "public void testSetString() {\n ValueString vs = new ValueString();\n\n vs.setString(null);\n assertNull(vs.getString());\n vs.setString(\"\");\n assertEquals(\"\", vs.getString());\n vs.setString(\"Boden\");\n assertEquals(\"Boden\", vs.getString());\n }", "void setTemp(String name, Object value);", "public void setValue(java.lang.String value) {\n this.value = value;\n }", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "final <T> void set(String key, T value) {\n set(key, value, false);\n }", "public void setValue(String value) {\n this.value = value == null ? null : value.trim();\n }", "public void setValue(String value) {\n this.value = value == null ? null : value.trim();\n }", "public void setValue(String value) {\n this.value = value == null ? null : value.trim();\n }", "@Override\n public Object put(String name, Object value) {\n this.request.setAttribute(name, value);\n return super.put(name, value);\n }", "public void setName(@Nullable String value) {\n getElement().setName(value);\n }", "void setMetadataValue(String name, String value) throws IOException;", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setValue(final String value) {\n this.value = value;\n }", "public final void set(final String key, final Object value) {\n try {\n synchronized (jo) {\n if (value == null) {\n jo.remove(key);\n } else {\n jo.put(key, value);\n }\n }\n } catch (JSONException e) {\n }\n }", "void setParameter(String name, String value);", "void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }", "void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }", "public void setPersistentString(String key, String value);", "void putValue(String key, Object data);", "public void setPropertyValue(String name, String value)\n {\n // Property name must not be empty.\n if (name.equals(EMPTY_STRING))\n {\n return;\n } \n \n // Store the property.\n this.properties.put(name, value);\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "boolean setValue(String type, String key, String value);", "protected void set(String name, String value) {\n\t\tParameter param = new Parameter(name, value);\n\t\t_parameters.set(param);\n\t}", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "void setValueString(org.hl7.fhir.String valueString);", "public boolean setString(String key, String value) {\r\n return keyvaluepairs.put(key.toLowerCase(), value) == null ? true : false;\r\n }", "private void setNewName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newName_ = value;\n }", "void setParameter(String name, Object value);", "public void setValueNm(String valueNm) {\n this.valueNm = valueNm;\n }", "void setString(String attributeValue);", "public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setValue(String value)\n {\n _value = setNonEmptyValueAttribute(value);\n }", "public void setAttribute(String name, Object value);", "final <T> void set(String key, T value, boolean commit) {\n if ( value == null ) {\n remove(key, commit);\n }\n else {\n set(key, value.toString(), commit);\n }\n }", "private void addMetadataByString(Metadata metadata, String name, String value) {\n if (value != null) {\n metadata.add(name, value);\n }\n }", "public void put(String key, String value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}", "void setOption(String name, Object value);", "public void setValue(String value) {\n\t\tmValue = value;\n\t}", "public void setProperty( String key, Object value );", "void setValue(String name,BudaBubble bbl)\n{\n if (name != null) value_map.put(name,bbl);\n}", "public void setConfigurationValue(String name, String value);", "public void setPropertyString(String name, String value) {\n\t\tsetProperty(name, toObject(value, name));\n\t}" ]
[ "0.729679", "0.6892235", "0.6888401", "0.68790805", "0.68790805", "0.68790805", "0.68790805", "0.67631596", "0.67631596", "0.6754204", "0.67205924", "0.67173725", "0.67150116", "0.6711361", "0.670817", "0.6635316", "0.66092306", "0.66092306", "0.66092306", "0.66034627", "0.6523429", "0.6520029", "0.64846253", "0.6454208", "0.6452642", "0.6402613", "0.6390744", "0.63726145", "0.63726145", "0.63726145", "0.63726145", "0.63726145", "0.6346689", "0.6328225", "0.632461", "0.6303506", "0.6303506", "0.6303506", "0.6303506", "0.6303506", "0.6269782", "0.62614", "0.62434685", "0.62416154", "0.6237937", "0.6234003", "0.62117404", "0.6200868", "0.61996704", "0.619244", "0.619244", "0.6154068", "0.6144379", "0.6137613", "0.61349857", "0.6131264", "0.6125536", "0.61225146", "0.61225146", "0.61225146", "0.6117284", "0.6110588", "0.6109661", "0.6094445", "0.6094445", "0.6094445", "0.6094445", "0.60901856", "0.6083253", "0.60745513", "0.60704726", "0.6062966", "0.6062966", "0.6043156", "0.6036442", "0.60144156", "0.60061884", "0.5996572", "0.59943277", "0.59827965", "0.59827965", "0.5980921", "0.5979316", "0.59791905", "0.5956063", "0.5955229", "0.5953547", "0.5951668", "0.5951031", "0.5949342", "0.59428537", "0.5917132", "0.5908059", "0.5892684", "0.5888632", "0.5872809", "0.58698434", "0.5868852", "0.58685535", "0.5866315" ]
0.6643196
15
Get representation suitable for passing to exec.
public String[] getEnvArray() { return (String[])envMap.values().toArray(new String[envMap.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOutput();", "String getOutput();", "public abstract String serialise();", "public String f() {\n StringWriter stringWriter = new StringWriter();\n dump(\"\", null, new PrintWriter(stringWriter), null);\n return stringWriter.toString();\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(ThmProcessUtil.isaActProc + \" \" + name);\n\t\t\n\t\tif (!param.isEmpty()) {\n\t\t\tsb.append (\" = \\n\");\n\t\t\tfor (String s : param) {\n\t\t\t\tsb.append(s + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tsb.append(ThmProcessUtil.isaProcBegin + \"\\n\" + \n\t\t\t\t body + \"\\n\" + ThmProcessUtil.isaProcEnd);\n\n\t\treturn sb.toString();\n\t}", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }", "public String getEvaluatorDescriptorString() {\n final String descriptorString =\n Utilities.getEvaluatorDescriptorString(jallocatedEvaluator.getEvaluatorDescriptor());\n LOG.log(Level.INFO, \"allocated evaluator - serialized evaluator descriptor: \" + descriptorString);\n return descriptorString;\n }", "public String toProgram()\n\t{\n\t\tString prog = \"\";\n\t\tif(this.type == nodetype.root)\n\t\t{\n\t\t\tfor(ParseTreeNode node:this.children)\n\t\t\t{\n\t\t\t\tprog+= node.toProgram()+\"+\";\n\t\t\t}\n\t\t\tif(prog.length() > 0)\n\t\t\t{\n\t\t\t\tprog = prog.substring(0,prog.length()-1);\n\t\t\t}\n\t\t}\n\t\telse if(this.type == nodetype.segment)\n\t\t{\n\t\t\tif(this.children.size()==0)\n\t\t\t{\n\t\t\t\tprog = this.value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprog = String.format(\"substr(value,%s,%s)\", this.children.get(0).value,this.children.get(1).value);\n\t\t\t}\n\t\t}\n\t\treturn prog;\n\t}", "@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }", "public String getOutput() {\n return output.toString();\n }", "public String represent();", "public String toClassicRepresentation(){\n try {\n return LegacyMarshaller.getInstance().marshal(getComponents()).toString();\n } catch (ServiceException exception) {\n throw new RuntimeServiceException(exception);\n }\n }", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public String toString() {\r\n\r\n StringBuffer sb = new StringBuffer();\r\n sb.append('(');\r\n for (int i = 0; i < parameterCount; i++) {\r\n if (i != 0)\r\n sb.append(\", \");\r\n\r\n if (returnType == null) {\r\n // This is a PROCEDURE. We only want to print the\r\n // parameter mode (ex. \"IN\", \"OUT\", \"INOUT\") for procedures--\r\n // we don't do it for functions since use of the \"IN\" keyword\r\n // is not part of the FUNCTION syntax.\r\n sb.append(parameterMode(parameterModes[i]));\r\n sb.append(' ');\r\n }\r\n if (parameterNames[i] != null) {\r\n sb.append(parameterNames[i]);\r\n sb.append(' ');\r\n }\r\n sb.append(parameterTypes[i].getSQLstring());\r\n }\r\n sb.append(')');\r\n\r\n if (returnType != null) {\r\n // this a FUNCTION, so syntax requires us to append the return type.\r\n sb.append(\" RETURNS \" + returnType.getSQLstring());\r\n }\r\n\r\n sb.append(\" LANGUAGE \");\r\n sb.append(language);\r\n\r\n if (parameterStyle != null) {\r\n sb.append(\" PARAMETER STYLE \" );\r\n sb.append(parameterStyle);\r\n }\r\n \r\n if (deterministic) { \r\n sb.append(\" DETERMINISTIC \"); \r\n }\r\n\r\n if (definersRights) { \r\n sb.append(\" EXTERNAL SECURITY DEFINER\"); \r\n }\r\n\r\n if (sqlAllowed != null) {\r\n sb.append(\" \");\r\n sb.append(sqlAllowed.getSQL());\r\n }\r\n if ((returnType == null) &&\r\n (dynamicResultSets != 0)) {\r\n // Only print dynamic result sets if this is a PROCEDURE\r\n // because it's not valid syntax for FUNCTIONs.\r\n sb.append(\" DYNAMIC RESULT SETS \");\r\n sb.append(dynamicResultSets);\r\n }\r\n\r\n if (returnType != null) {\r\n // this a FUNCTION, so append the syntax telling what to\r\n // do with a null parameter.\r\n sb.append(calledOnNullInput ? \" CALLED \" : \" RETURNS NULL \");\r\n sb.append(\"ON NULL INPUT\");\r\n }\r\n \r\n return sb.toString();\r\n }", "public String toString() { return stringify(this, true); }", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}", "String serialize();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getVersion() != null)\n sb.append(\"version: \").append(getVersion()).append(\",\");\n if (getResource() != null)\n sb.append(\"resource: \").append(getResource()).append(\",\");\n if (getPath() != null)\n sb.append(\"path: \").append(getPath()).append(\",\");\n if (getHttpMethod() != null)\n sb.append(\"httpMethod: \").append(getHttpMethod()).append(\",\");\n if (getHeaders() != null)\n sb.append(\"headers: \").append(getHeaders().toString()).append(\",\");\n if (getMultiValueHeaders() != null)\n sb.append(\"multiValueHeaders: \").append(getMultiValueHeaders().toString()).append(\",\");\n if (getQueryStringParameters() != null)\n sb.append(\"queryStringParameters: \").append(getQueryStringParameters().toString()).append(\",\");\n if (getMultiValueQueryStringParameters() != null)\n sb.append(\"multiValueQueryStringParameters: \").append(getMultiValueQueryStringParameters().toString()).append(\",\");\n if (getPathParameters() != null)\n sb.append(\"pathParameters: \").append(getPathParameters().toString()).append(\",\");\n if (getStageVariables() != null)\n sb.append(\"stageVariables: \").append(getStageVariables().toString()).append(\",\");\n if (getRequestContext() != null)\n sb.append(\"requestContext: \").append(getRequestContext().toString()).append(\",\");\n if (getBody() != null)\n sb.append(\"body: \").append(getBody()).append(\",\");\n if (getIsBase64Encoded() != null)\n sb.append(\"isBase64Encoded: \").append(getIsBase64Encoded());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getRepresentation();", "@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder();\n\n if(argsIsSet) {\n for(String arg : args) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(arg);\n }\n }\n else {\n\n // first the options\n if(options.size() > 0) {\n sb.append(DefaultOptionSet.toString(options));\n }\n // operand: <files>\n if(filesIsSet) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(\"--\").append(\"files\");\n sb.append(\" \").append(toString(getFiles()));\n }\n // operand: <paths>\n if(pathsIsSet) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(\"--\").append(\"paths\");\n sb.append(\" \").append(toString(getPaths()));\n }\n // operand: <args>\n if(argsIsSet) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(\"--\").append(\"args\");\n sb.append(\" \").append(toString(getArgs()));\n }\n }\n\n return sb.toString();\n }", "public String toString(){\n\t\tString out=\"\";\n\t\tif (type == \"op\"){\n\t\t\treturn out + operand;\n\t\t}\n\t\telse{\n\t\t\treturn out + value ;\n\t\t}\n\t}", "java.lang.String getResult();", "public String toString()\n\t\t{\n\t\t\tif (computedToString == null)\n\t\t\t{\n\t\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t\t{\n\t\t\t\t\tcomputedToString = new StringBuilder().append(indent()).append(\"<OR>\\n\").append(super.toString()).append(indent()).append(\"</OR>\\n\").toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn computedToString;\n\t\t}", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getExecutionInfo() != null) sb.append(\"ExecutionInfo: \" + getExecutionInfo() + \",\");\n if (getExecutionConfiguration() != null) sb.append(\"ExecutionConfiguration: \" + getExecutionConfiguration() + \",\");\n if (getOpenCounts() != null) sb.append(\"OpenCounts: \" + getOpenCounts() + \",\");\n if (getLatestActivityTaskTimestamp() != null) sb.append(\"LatestActivityTaskTimestamp: \" + getLatestActivityTaskTimestamp() + \",\");\n if (getLatestExecutionContext() != null) sb.append(\"LatestExecutionContext: \" + getLatestExecutionContext() );\n sb.append(\"}\");\n return sb.toString();\n }", "public String getReadableSolution() {\n StringBuilder solution = new StringBuilder();\n\n solution.append(\"WORKFLOW_IN:{\");\n int i = 0;\n for (TypeNode workflowInput : this.workflowInputTypeStates) {\n solution.append(workflowInput.toString());\n if (++i < this.workflowInputTypeStates.size()) {\n solution.append(\", \");\n }\n }\n solution.append(\"} |\");\n\n for (ModuleNode currTool : this.moduleNodes) {\n solution.append(\" IN:{\");\n i = 0;\n for (TypeNode toolInput : currTool.getInputTypes()) {\n if (!toolInput.isEmpty()) {\n if (i++ > 1) {\n solution.append(\", \");\n }\n solution.append(toolInput.toString());\n }\n }\n solution.append(\"} \").append(currTool.toString());\n solution.append(\" OUT:{\");\n i = 0;\n for (TypeNode toolOutput : currTool.getOutputTypes()) {\n if (!toolOutput.isEmpty()) {\n if (i++ > 1) {\n solution.append(\", \");\n }\n solution.append(toolOutput.toString());\n }\n }\n solution.append(\"} |\");\n }\n i = 0;\n solution.append(\"WORKFLOW_OUT:{\");\n for (TypeNode workflowOutput : this.workflowOutputTypeStates) {\n solution.append(workflowOutput.toString());\n if (++i < this.workflowOutputTypeStates.size()) {\n solution.append(\", \");\n }\n }\n solution.append(\"}\");\n\n return solution.toString();\n }", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "public abstract String rawGraphToString();", "public String getExecId() {\n Object ref = execId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n }\n }", "public String roundTrip();", "public String getExecId() {\n Object ref = execId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "protected abstract String[] getExecString();", "public String toString() {\n String s = \"\";\n\n if (FormEditor.compress) {\n if (domNode.getNodeName().equals(\"concept\")) {\n // s = \"ConceptName\";\n org.w3c.dom.Node name = domNode.getFirstChild();\n\n while ((name != null) && !name.getNodeName().equals(\"name\")) {\n name = name.getNextSibling();\n }\n\n if (name == null) {\n s += \"ConceptName\";\n } else {\n AdapterNode adpNode = new AdapterNode(name);\n s += adpNode.content();\n }\n } else if (domNode.getNodeName().equals(\"conceptList\")) {\n // s = \"ConceptName\";\n org.w3c.dom.Node name = domNode.getFirstChild();\n\n while ((name != null) && !name.getNodeName().equals(\"name\")) {\n name = name.getNextSibling();\n }\n\n if (name == null) {\n s += \"ConceptList\";\n } else {\n AdapterNode adpNode = new AdapterNode(name);\n s += adpNode.content();\n }\n } else if (domNode.getNodeName().equals(\"attribute\")) {\n org.w3c.dom.NamedNodeMap attributeList =\n domNode.getAttributes();\n org.w3c.dom.Node name = attributeList.getNamedItem(\"name\");\n s = name.getNodeValue();\n } else {\n String nodeName = domNode.getNodeName();\n\n if (!nodeName.startsWith(\"#\")) {\n s = nodeName;\n } else {\n s = typeName[domNode.getNodeType()];\n }\n }\n\n return s;\n }\n\n s = typeName[domNode.getNodeType()];\n\n String nodeName = domNode.getNodeName();\n\n if (!nodeName.startsWith(\"#\")) {\n s += (\": \" + nodeName);\n }\n\n if (domNode.getNodeValue() != null) {\n if (s.startsWith(\"ProcInstr\")) {\n s += \", \";\n } else {\n s += \": \";\n }\n\n // Trim the value to get rid of NL's at the front\n String t = domNode.getNodeValue().trim();\n int x = t.indexOf(\"\\n\");\n\n if (x >= 0) {\n t = t.substring(0, x);\n }\n\n s += t;\n }\n\n return s;\n }", "public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}", "public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return ((Float)o).toString();\n\n case DOUBLE:\n return ((Double)o).toString();\n\n case DATETIME:\n return ((DateTime)o).toString();\n\n case BYTEARRAY:\n return ((DataByteArray)o).toString();\n\n case CHARARRAY:\n return ((String)o);\n\n case BIGINTEGER:\n return ((BigInteger)o).toString();\n\n case BIGDECIMAL:\n return ((BigDecimal)o).toString();\n\n case NULL:\n return null;\n\n case BOOLEAN:\n return ((Boolean)o).toString();\n\n case BYTE:\n return ((Byte)o).toString();\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a String\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to String.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "public String toString()\n {\n return Native.getNumeralString(getContext().nCtx(), getNativeObject());\n }", "public String toString() {\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"target('\").append(id.toString()).append(\"') {\\n\");\n buffer.append(\" action ('\").append(id.getActionName()).append(\"')\\n\");\n buffer.append(\" method ('\").append(id.getMethodName()).append(\"')\\n\");\n buffer.append(\" factory ('\").append(actionFactory.getName()).append(\"')\\n\");\n buffer.append(\" stub ('\").append(stubMethod.getName()).append(\"')\\n\");\n buffer.append(\" url pattern ('\").append(this.getJspUrlPattern()).append(\"')\\n\");\n buffer.append(\" domain ('\").append(domain).append(\"')\\n\");\n buffer.append(\" javaclass ('\").append(action.getCanonicalName()).append(\"')\\n\");\n if (!results.isEmpty()) {\n buffer.append(\" results {\\n\");\n for (Entry<String, Result> result : results.entrySet()) {\n buffer.append(\" result ('\").append(result.getKey()).append(\"') { \\n\");\n buffer.append(\" renderer ('\").append(result.getValue().getRendererId()).append(\"')\\n\");\n buffer.append(\" data ('\").append(result.getValue().getData()).append(\"')\\n\");\n buffer.append(\" }\\n\");\n }\n buffer.append(\" }\\n\");\n }\n buffer.append(\"}\\n\");\n return buffer.toString();\n }", "@SuppressWarnings(\"rawtypes\")\n\tprotected static String asString(Object o){\n\t\tif(o == null)\n\t\t\treturn \"null\";\n\t\tif(o instanceof Integer)\n\t\t\treturn ((Integer)o).toString() + \" [Java]\";\n\t\tif(o instanceof String)\n\t\t\treturn ((String)o) + \" [Java]\";\n\t\tif(o instanceof IValue)\n\t\t\treturn ((IValue) o).toString() +\" [IValue]\";\n\t\tif(o instanceof Type)\n\t\t\treturn ((Type) o).toString() + \" [Type]\";\n\t\tif(o instanceof Object[]){\n\t\t\tStringBuilder w = new StringBuilder();\n\t\t\tObject[] lst = (Object[]) o;\n\t\t\tw.append(\"[\");\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(asString(lst[i]));\n\t\t\t\tif(i < lst.length - 1)\n\t\t\t\t\t\tw.append(\", \");\n\t\t\t}\n\t\t\tw.append(\"]\");\n\t\t\treturn w.toString() + \" [Object[]]\";\n\t\t}\n\t\tif(o instanceof Coroutine){\n\t\t\tif(((Coroutine)o).frame != null && ((Coroutine)o).frame.function != null){\n\t\t\t\treturn \"Coroutine[\" + ((Coroutine)o).frame.function.getName() + \"]\";\n\t\t\t} else {\n\t\t\t\treturn \"Coroutine[**no name**]\";\n\t\t\t}\n\t\t}\n\t\tif(o instanceof Function){\n\t\t\treturn \"Function[\" + ((Function)o).getName() + \"]\";\n\t\t}\n\t\tif(o instanceof FunctionInstance){\n\t\t\treturn \"Function[\" + ((FunctionInstance)o).function.getName() + \"]\";\n\t\t}\n\t\tif(o instanceof OverloadedFunctionInstance) {\n\t\t\treturn ((OverloadedFunctionInstance) o).toString();\n\t\t}\n\t\tif(o instanceof Reference){\n\t\t\tReference ref = (Reference) o;\n\t\t\treturn ref.toString(); //\"Reference[\" + ref.stack + \", \" + ref.pos + \"]\";\n\t\t}\n\t\tif(o instanceof IListWriter){\n\t\t\treturn \"ListWriter[\" + ((IListWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof ISetWriter){\n\t\t\treturn \"SetWriter[\" + ((ISetWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof IMapWriter){\n\t\t\treturn \"MapWriter[\" + ((IMapWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Matcher){\n\t\t\treturn \"Matcher[\" + ((Matcher) o).pattern() + \"]\";\n\t\t}\n\t\tif(o instanceof Thrown) {\n\t\t\treturn \"THROWN[ \" + asString(((Thrown) o).getValue()) + \" ]\";\n\t\t}\n\t\t\n\t\tif(o instanceof StringBuilder){\n\t\t\treturn \"StringBuilder[\" + ((StringBuilder) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof HashSet){\n\t\t\treturn \"HashSet[\" + ((HashSet<?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Map){\n\t\t\treturn \"Map[\" + ((Map<?, ?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof HashMap){\n\t\t\treturn \"HashMap[\" + ((HashMap<?, ?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Map.Entry){\n\t\t\treturn \"Map.Entry[\" + ((Map.Entry) o).toString() + \"]\";\n\t\t}\n\t\t\n\t\treturn o.getClass().getName();\n\t\n\t\t//throw new CompilerError(\"asString cannot convert: \" + o);\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getId() != null)\n sb.append(\"Id: \").append(getId()).append(\",\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getCode() != null)\n sb.append(\"Code: \").append(getCode()).append(\",\");\n if (getExecutionRoleArn() != null)\n sb.append(\"ExecutionRoleArn: \").append(getExecutionRoleArn()).append(\",\");\n if (getSchedule() != null)\n sb.append(\"Schedule: \").append(getSchedule()).append(\",\");\n if (getRunConfig() != null)\n sb.append(\"RunConfig: \").append(getRunConfig()).append(\",\");\n if (getSuccessRetentionPeriodInDays() != null)\n sb.append(\"SuccessRetentionPeriodInDays: \").append(getSuccessRetentionPeriodInDays()).append(\",\");\n if (getFailureRetentionPeriodInDays() != null)\n sb.append(\"FailureRetentionPeriodInDays: \").append(getFailureRetentionPeriodInDays()).append(\",\");\n if (getStatus() != null)\n sb.append(\"Status: \").append(getStatus()).append(\",\");\n if (getTimeline() != null)\n sb.append(\"Timeline: \").append(getTimeline()).append(\",\");\n if (getArtifactS3Location() != null)\n sb.append(\"ArtifactS3Location: \").append(getArtifactS3Location()).append(\",\");\n if (getEngineArn() != null)\n sb.append(\"EngineArn: \").append(getEngineArn()).append(\",\");\n if (getRuntimeVersion() != null)\n sb.append(\"RuntimeVersion: \").append(getRuntimeVersion()).append(\",\");\n if (getVpcConfig() != null)\n sb.append(\"VpcConfig: \").append(getVpcConfig()).append(\",\");\n if (getVisualReference() != null)\n sb.append(\"VisualReference: \").append(getVisualReference()).append(\",\");\n if (getTags() != null)\n sb.append(\"Tags: \").append(getTags()).append(\",\");\n if (getArtifactConfig() != null)\n sb.append(\"ArtifactConfig: \").append(getArtifactConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString() {\r\n\t\treturn result;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }", "public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }", "public native String toString();", "public String toString() {\n String ret = null;\n ContentIOSession session = getIOSession();\n try {\n ret = \"{\" + session.getId() + \", \" + session.getType() + \"}\";\n } finally {\n session.close();\n }\n return ret;\n\n }", "public String getOutput() {\n return output;\n }", "public String toString () {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"[RelevantObjectsCommand in context \");\n stringBuffer.append(relevantStateVariables.toString());\n stringBuffer.append(\" with respect to \");\n stringBuffer.append(relevancyRelationship.cyclify());\n stringBuffer.append(\" output state variable: \");\n stringBuffer.append(relevantObjects.toString());\n stringBuffer.append(\"]\");\n return stringBuffer.toString();\n }", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public abstract Object getOutput ();", "@Override\n\tpublic String toString()\n\t{\n\t\tString result = \"\";\n\t\tfor(String c : commands)\n\t\t\tresult += c + '\\n';\n\t\treturn result;\n\t}", "public String toString()\n\t\t{\n\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t{\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\ttoStringIndent++;\n\t\t\t\tif (rules == null) sb.append(indent()).append(\"null\\n\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor (ExecutionPolicy ep: rules) sb.append(ep.toString());\n\t\t\t\t}\n\t\t\t\ttoStringIndent--;\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t}", "public String build();" ]
[ "0.62558335", "0.6085807", "0.5876201", "0.58365667", "0.57008195", "0.568986", "0.5685377", "0.56544733", "0.5651125", "0.56224126", "0.56093085", "0.56028956", "0.5590328", "0.5561807", "0.55575556", "0.5545128", "0.5544243", "0.55264413", "0.5489212", "0.5452132", "0.5431188", "0.542257", "0.54224056", "0.54169375", "0.54039985", "0.54002017", "0.538348", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5378384", "0.5360134", "0.5358695", "0.5357319", "0.5344757", "0.5343649", "0.5337075", "0.5327708", "0.53181356", "0.5309397", "0.53091836", "0.53056675", "0.5290725", "0.528752", "0.5264926", "0.52629447", "0.52564824", "0.5255723", "0.5255675", "0.5255356", "0.5243047", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.52280325", "0.5217612", "0.52155805", "0.5213077", "0.5195769" ]
0.0
-1
User: nik Date: 2/19/13 Time: 1:15 AM
public interface AnotherService { String getAnotherExample(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getUserCreated();", "@Override\n public String toString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'@'HH:mm:ss\");\n String userInformation = new String();\n Date date = new Date();\n userInformation = \"[\" + username + \" - \" +\n socket.getInetAddress().getHostAddress() +\n \":\" + socket.getPort() + \" - \" + formatter.format(date)\n + \"]: \";\n return userInformation;\n }", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}", "long getLoginAt();", "@Override\r\n public String toString() {\r\n return timeStamp + username + \": \" + message;\r\n }", "private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}", "@Override\n\tpublic String getTimeAndDate() throws RemoteException {\n\tDate date = new Date();\n\tSystem.out.println(date.toString());\n\treturn date.toString();\n\t}", "private void getUserInfo() {\n\t}", "public Date getGmtLogin() {\n return gmtLogin;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"[\" + this.getTimestamp() + \"] \" + this.getOwnerName() + \" -> \" + this.getText();\n\t}", "Date getLastLogin();", "public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }", "public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}", "public int getUserTime() {\n\t\treturn this.userTime;\n\t}", "public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "@Override\n public String toString() {\n return getUserName() + \" on \" + getDate() + \"\\n\" + message + \"\\nType: \" + getType();\n }", "@Override\n public String toString() {\n return this.getTimestamp().atZone(ZoneId.of(\"Europe/Vienna\")).format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy HH:mm\"))\n + \" \" + this.getFirstName()\n + \" \" + this.getLastName().substring(0,1) + \".\"\n //+ \", \" + this.getTelephoneNo()\n //+ \" (\" + this.getEmail() + \")\"\n ;\n }", "@Override\r\n\tpublic Date getLoginDate() {\n\t\treturn null;\r\n\t}", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "@Override\n public void setUserTimestamp(Date date) {\n }", "public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}", "public static String getUserPassDate(String username) {\n if (username.equals(\"\")) return \"\";\n String s = dateMap.get(username);\n return (s != null) ? s : \"\";\n }", "public static String getUserPassDate() {\n return getUserPassDate(user);\n }", "private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}", "public String getUsername()\r\n/* 11: */ {\r\n/* 12:30 */ return this.username;\r\n/* 13: */ }", "public long getTimeLogged(){\r\n\t\treturn timeLogged;\r\n\t}", "public java.lang.String getUserCreated() {\n\t\treturn _tempNoTiceShipMessage.getUserCreated();\n\t}", "public String getDataNastereString(){\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString sd = df.format(new Date(data_nastere.getTime()));\n\t\treturn sd;\n\t\t\n\t}", "int getSignOnTime();", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }", "public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}", "private void logUser() {\n }", "String timeCreated();", "@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}", "UserInfo getUserInfo();", "Date getDateCreated();", "public static void main(String[] args) {\n\t String str = String.format(\"%tc\", new Date());\r\n\t System.out.printf(str);\r\n\t \r\n//\t // display time and date\r\n//\t System.out.printf(\" Today is : %1$s %2$tB %2$td, %2$tY\", \"Due date : \", new Date());\r\n//\r\n\r\n\t System.out.println( new SimpleDateFormat(\"E yyyy.MM.dd 'at' hh:mm:ss a zzz\").format(new Date()));\r\n\t System.out.println( new SimpleDateFormat(\"EEEE, MMMM d, yyyy\").format(new Date()));\r\n\t}", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "public static void main(String[] args) {\n\t\t\n\t\tDate d=new Date();\n\t\tSystem.out.println(d.toString());\n\t\t\n\t\t/**\n\t\t * mm/dd/yyyy format or HH:MM:SS format\n\t\t */\n\t\t//SimpleDateFormat sdf=new SimpleDateFormat(\"M/d/yyyy\");\n\t\t\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"M/d/yyyy hh:mm:ss\");\n\t\t\n\t\tSystem.out.println(sdf.format(d));\n\t\t\n\n\t}", "private String getCurrentTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "public String getVisitorendtime() {\n return visitorendtime;\n }", "@Override\r\n\tpublic void date() {\n\t\tSystem.out.println(\"10/19/21\");\r\n\t}", "public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}", "public static void main(String[] args) {\n\n\t\tDate d=new Date();\n\t\tSimpleDateFormat sdf= new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tSimpleDateFormat hms= new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\tSystem.out.println(sdf.format(d));\n\t\tSystem.out.println(hms.format(d));\n\t\tSystem.out.println(d.toString());\n\t}", "public GETINFO(int time, String userName) {\n\t\tsuper(Operation.GETINFO);\n\t\tusername = userName;\n\t\tthis.time = time;\n\t\t //this.operation = Operation.GETINFO;\n\t}", "public static void main(String[] args) {\n DateFormat df=new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss a\");\n \n //Get the date today using calender object.\n Date today=Calendar.getInstance().getTime();\n //using DateFormat format method we can create a string\n //representation of a date with the defined format.\n String reportDate=df.format(today);\n //print what date is today!\n System.out.println(\"Current Date: \"+reportDate);\n }", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}", "private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public java.sql.Timestamp getLogdate()\n {\n return logdate; \n }", "String getCreated_at();", "private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}", "private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "public Date getLoginAt() {\n return loginAt;\n }", "public Timestamp getDateAcct();", "public Timestamp getDateAcct();", "public Date getDateCreated(){return DATE_CREATED;}", "@Override\n\tpublic java.util.Date getCheckpoint() {\n\t\treturn _userSync.getCheckpoint();\n\t}", "public String[] getUserDate() {\n\t\treturn this.userDate;\n\t}", "public Date getCreationTime()\n {\n return created;\n }", "void setUserCreated(final Long userCreated);", "@Override\n public String toString() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"[\" + super.getType() + \"]\" + super.toString() + \" (by: \" + df.format(this.date) + \")\";\n }", "private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }", "private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }", "public DateTime getCreationTime() {\n return created;\n }", "@Override\n\tpublic String getNaam(){\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getName();\n\t\treturn w;\n\t}", "public static void main(String[] args) throws Exception{\n\t\t\t Date currentTime = new Date(95,7,6);\n\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MMM/YYYY\");\n\t\t\t String dateString = formatter.format(currentTime);\n\t\t\t System.out.println(dateString);\n\t\t\t \n\t\t}", "Date getAccessTime();", "java.lang.String getUser();", "private void formatTime() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat ft = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tm_timeSent = ft.format(date).toString();\r\n\t}", "@Override\n\tpublic String getTimestamp()\n\t{\n\t\treturn new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\").format(new Date());\n\t}", "Date getLastLoginDate();", "public long getCreatedByUser();", "public DateTime getCreationTime() { return creationTime; }", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "private String getCurrentDate() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Calendar cal = Calendar.getInstance();\n return dateFormat.format(cal.getTime());\n }", "@Override\r\n public String toString() {\r\n return pontosTimeMandante + \" x \" + pontosTimeVisitante + \" - \" + (isFinalizado() ? \"Finalizado\" : \"Em andamento\");\r\n }", "public void Print_date()\n {\n \n System.out.println(\"Date: \" + date);\n }", "private String getCurrentTimestamp() {\n\n String mytime = java.text.DateFormat.getTimeInstance().format(Calendar.getInstance().getTime());\n String mydate =java.text.DateFormat.getDateTimeInstance().format(Calendar.getInstance().getTime());\n return mytime;\n }", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public String Get_date() \n {\n \n return date;\n }", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }", "Date getLastAccessDate();", "public static String fn_GetCurrentTimeStamp() {\n\t\tDate dte = new Date();\n\t\tDateFormat df = DateFormat.getDateTimeInstance();\n\t\tString strdte = df.format(dte);\n\t\tstrdte = strdte.replaceAll(\":\", \"_\");\n\t\treturn strdte;\n\t}", "public String getInsYmd() {\n return insYmd;\n }", "public static void main(String[] args) {\n\t\tDate today = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy:MM:dd hh:MM:ss\");\n\t\tString s= sdf.format(today);\n\t\tSystem.out.println(s);\n\t}", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "@NonNull\n public String toString(){\n return this.hora+\":\"+this.minutos+\" \"+this.segundos+\" Sec \"+this.dia+\"/\"+this.mes+\"/\"+this.anno;\n }" ]
[ "0.59372973", "0.5732233", "0.57106996", "0.57077956", "0.56233543", "0.5596609", "0.5575027", "0.55626726", "0.555096", "0.5536494", "0.55318606", "0.5527076", "0.55230564", "0.5508546", "0.54987526", "0.5495293", "0.54829574", "0.545832", "0.5457568", "0.5454447", "0.54459953", "0.54452795", "0.5437512", "0.54334617", "0.5426638", "0.54250896", "0.5419741", "0.54074425", "0.5406511", "0.5383891", "0.53822505", "0.53803307", "0.5378917", "0.53694004", "0.53691345", "0.53614444", "0.5361037", "0.5361037", "0.5360311", "0.5358282", "0.53580844", "0.5350333", "0.53400195", "0.5337524", "0.5328078", "0.53182137", "0.53174585", "0.5315978", "0.5313425", "0.53121066", "0.5301304", "0.5298202", "0.5294735", "0.52878046", "0.5286584", "0.5283578", "0.5274826", "0.5266683", "0.5264289", "0.5257591", "0.5255777", "0.52525926", "0.52452093", "0.5238483", "0.5238483", "0.52299803", "0.52271706", "0.52212954", "0.5215116", "0.5211073", "0.5208255", "0.5206154", "0.52023023", "0.52013886", "0.51960903", "0.51960623", "0.51943755", "0.5193695", "0.51905257", "0.5189104", "0.5186726", "0.51822364", "0.5176874", "0.51733845", "0.5160808", "0.51521945", "0.51485384", "0.5146546", "0.5146254", "0.5146099", "0.51455075", "0.5140048", "0.51272994", "0.51243067", "0.51191247", "0.51168644", "0.51124716", "0.51123583", "0.51123583", "0.51123583", "0.51106554" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_duel, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
method to load the data from the clients file
public static int leerClientes(String[] nombres,String[] apellidos, String[]ruts,String[]contraseñas,double[]saldos) throws IOException{ File file = new File("clientes.txt"); Scanner arch = new Scanner(file); int i = 0; while ( arch.hasNextLine()){ String linea = arch.nextLine(); String [] partes = linea.split(","); nombres[i] = partes[0]; apellidos[i] = partes[1]; ruts[i] = partes[2]; contraseñas[i] = partes[3] ; saldos[i] = Double.parseDouble(partes[4]); i ++; } arch.close(); return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}", "public void loadClients(String path) throws StorageException {\r\n // Get the lines in the file\r\n String[] lines = readFile(path);\r\n // Parse and save clients to database\r\n parseClients(lines);\r\n }", "public ClientData() {\n\n this.name = \"\";\n this.key = \"\";\n this.serverIpString = \"\";\n this.serverPort = 0;\n this.clientListenPort = 0;\n this.clientsSocketPort = 0;\n this.clientsLocalHostName = \"\";\n this.clientsLocalhostAddressStr = \"\";\n\n this.socket = new Socket();\n\n try {\n this.socket.bind(null);\n } catch (IOException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n \n try {\n this.clientsLocalHostName = InetAddress.getLocalHost().getHostName();\n this.clientsLocalhostAddressStr = InetAddress.getLocalHost().getHostAddress();\n } catch (UnknownHostException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n this.clientsSocketPort = socket.getLocalPort();\n\n parseClientConfigFile();\n\n //Initialize ServerSocket and bind to specific port.\n try {\n serverS = new ServerSocket(clientListenPort);\n } catch (IOException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n }", "public void loadClients(InputStream stream) throws StorageException {\r\n // Get the lines in the file\r\n String[] lines = readFile(stream);\r\n // Parse and save the clients to the database\r\n parseClients(lines);\r\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "protected abstract void loadData();", "protected void loadData()\n {\n }", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}", "public abstract void loadData();", "public abstract void loadData();", "void loadData();", "void loadData();", "private static void readFileOnClient(FileStore.Client client) throws SystemException, TException {\n String fileName = \"sample.txt\";\n NodeID nodeId = client.findSucc(getSHA(fileName));\n TTransport transport = new TSocket(nodeId.getIp(), nodeId.getPort());\n transport.open();\n\n TProtocol protocol = new TBinaryProtocol(transport);\n FileStore.Client readFileClient = new FileStore.Client(protocol);\n\n RFile rFile = readFileClient.readFile(fileName);\n System.out.println(\"Filename - \" + rFile.getMeta().getFilename());\n System.out.println(\"Version Number - \" + rFile.getMeta().getVersion());\n System.out.println(\"Content - \" + rFile.getContent());\n transport.close();\n }", "private ClientInfo getClientInfo(String clientID){\n\n ClientInfo clientInfo = new ClientInfo((clientID));\n\n String clientFile_name = clientID +\".txt\";\n\n File clientFile = new File(ServerInfoDir.CLIENTS_INFO_DIR, clientFile_name);\n\n try{\n //Create object of FileReader\n FileReader inputFile = new FileReader(clientFile);\n\n //Instantiate the BufferedReader Class\n BufferedReader bufferReader = new BufferedReader(inputFile);\n\n //Variable to hold the one line data\n String line = null, groupID = null, postname = null;\n String parts[], posts[];\n\n while ((line = bufferReader.readLine()) != null) {\n parts = line.split(\":\");\n\n clientInfo.subscribe(parts[0]);\n\n if(parts.length > 1) {\n posts = parts[1].split(\",\"); /*Get what the client has read in a group*/\n\n for (String str : posts)\n clientInfo.readPost(parts[0], str);\n }\n\n }\n\n bufferReader.close();\n }catch(Exception e){\n System.out.println(\"Error while reading file:\" + e.getMessage());\n }\n\n\n return clientInfo;\n }", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }", "public static void readClientfile(String filepath) throws FileNotFoundException {\r\n Scanner sc = new Scanner(new FileInputStream(filepath));\r\n String [] clientData;\r\n Client client;\r\n while (sc.hasNextLine()) {\r\n clientData = sc.nextLine().split(\",\");\r\n // csv file: LastName, FirstName, Address, Email, Card#, Expire Date\r\n // client object parameter: lastname, firstname, address,Email card, expire date.\r\n client = new Client(clientData[0], clientData[1], clientData[2], clientData[3], \r\n clientData[4], clientData[5]);\r\n addClient(client);\r\n }\r\n sc.close();\r\n }", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "private Agent loadFromFile(String _login)\n {\n Agent agent = new Agent();\n File file = new File(_login + \".csv\");\n FileReader fr;\n BufferedReader br;\n String line;\n try {\n fr = new FileReader(file);\n br = new BufferedReader(fr);\n\n line = br.readLine();\n\n int numCients;\n { // to restrain the scope of csvData\n String[] csvData = line.split(\",\");\n agent.setID(Integer.parseInt(csvData[0]));\n agent.setName(csvData[1]);\n agent.setSalary(Double.parseDouble(csvData[2]));\n agent.setSalesBalance(Double.parseDouble(csvData[3]));\n\n numCients = Integer.parseInt(csvData[4]);\n }\n\n for(int i = 0; i<numCients; i++) {\n line = br.readLine();\n\n Client client = new Client();\n int numProp;\n\n {\n String[] csvData = line.split(\",\");\n client.setID(Integer.parseInt(csvData[0]));\n client.setName(csvData[1]);\n client.setIncome(Double.parseDouble(csvData[2]));\n\n numProp = Integer.parseInt(csvData[3]);\n }\n\n for(int j=0; j<numProp; j++)\n {\n line = br.readLine();\n\n String[] csvData = line.split(\",\");\n\n if(csvData[0].equals(\"house\")) {\n House property = new House();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasGarden(Boolean.parseBoolean(csvData[6]));\n property.setHasPool(Boolean.parseBoolean(csvData[7]));\n\n client.addProperty(property);\n }\n else if(csvData[0].equals(\"apt\"))\n {\n Apartment property = new Apartment();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasTerrace(Boolean.parseBoolean(csvData[6]));\n property.setHasElevator(Boolean.parseBoolean(csvData[7]));\n property.setFloor(Integer.parseInt(csvData[8]));\n property.setNumber(Integer.parseInt(csvData[9]));\n\n client.addProperty(property);\n }\n }\n\n agent.addClient(client);\n }\n fr.close();\n br.close();\n return agent;\n }\n catch (NumberFormatException nfEx) {\n JOptionPane.showMessageDialog(null, \"There was a problem when retrieving \" +\n \"the agent's data.\\n Please try again\");\n return null;\n }\n catch (IOException ioEx) {\n JOptionPane.showMessageDialog(null, \"This user doesn't exist....\");\n return null;\n }\n }", "public void loadState() throws IOException, ClassNotFoundException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// load client state from file\n\t\tObjectInputStream is = new ObjectInputStream(new FileInputStream(f));\n\t\tTrackerDaemon client = (TrackerDaemon) is.readObject();\n\t\tis.close();\n\t\t\n\t\t// copy attributes\n\t\tthis.peerRecord = client.peerRecord();\n\t\t\n\t}", "private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadDataFromFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // load data for new users after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // load data for existing users after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "@Override\n void load(String data) {\n }", "@SuppressWarnings(\"unchecked\")\n public static void load() {\n\n System.out.print(\"Loading team data from file...\");\n\n try {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n\n FileInputStream fil = new FileInputStream(team_fil);\n ObjectInputStream in = new ObjectInputStream(fil);\n\n team_list = (ConcurrentHashMap<Integer, Team>) in.readObject();\n cleanTeams();\n\n fil.close();\n in.close();\n\n //Gå gjennom alle lagene og registrer medlemmene i team_members.\n Iterator<Team> lag = team_list.values().iterator();\n\n while (lag.hasNext()) {\n\n Team laget = lag.next();\n\n Iterator<TeamMember> medlemmer = laget.getTeamMembers();\n while (medlemmer.hasNext()) {\n registerMember(medlemmer.next().getCharacterID(), laget.getTeamID());\n }\n\n }\n\n System.out.println(\"OK! \" + team_list.size() + \" teams loaded.\");\n\n } catch (Exception e) {\n System.out.println(\"Error loading team data from file.\");\n }\n\n }", "public static List<ClientWorker> LoadServer(String fileName) throws FileNotFoundException, IOException{\n List<ClientWorker> connection = new LinkedList<ClientWorker>();\n \n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n connection.add(new ClientWorker(line));\n // System.out.println(line);\n }\n bufferedReader.close();\n \n return connection;\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "void load_from_file(){\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a file\", FileDialog.LOAD);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"load path: \" + file_withpath);\t\n\t\t\n\t\t\t \n\t\t\t /**\n\t\t\t * read object from file \n\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file_withpath));\n\n\t\t\t\t\tKey_Lists = Key_Lists.copy((key_lists) in.readObject());\n\n\t\t\t\t\tkeys_area.setText(Key_Lists.arraylist_tostring());\t\t\n\t\t\t\t\t\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\tinfo_label.setForeground(green);\n\t\t\t\t\tinfo_label.setText(\"file loaded :D\");\n\t\t\t\t\t\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tinfo_label.setForeground(white);\n\t\t\t\t\tinfo_label.setText(\"wrong file format\");\n\t\t\t\t\tSystem.out.println(\"io exception\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\n\t}", "public static void main(String[] args) {\n\t\t// se crean atributos necesarios para la lectura del archivo.\n\n\t\tString infoClientes=null;\n\t\tString cantidadServidores=null;\n\t\tString tamanioBuffer=null;\n\t\tString[]msjs=null;\n\t\tFileReader fw;\n\t\t//se crea un flujo de lectura\n\t\ttry {\n\t\t\tfw = new FileReader(\"data/datos.txt\");\n\n\t\t\tBufferedReader bw = new BufferedReader(fw);\n\t\t\tinfoClientes=bw.readLine();\n\t\t\tcantidadServidores=bw.readLine();\n\t\t\ttamanioBuffer=bw.readLine();\n\t\t\tmsjs=infoClientes.split(\":\")[1].split(\",\");\n\n\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t//se crea el buffer con los datos obtenidos del buffer\n\t\tBuffer buffer=new Buffer(msjs.length,Integer.parseInt(cantidadServidores.split(\":\")[1]),Integer.parseInt(tamanioBuffer.split(\":\")[1]));\n\t\t//System.out.println(msjs.length+\" \"+Integer.parseInt(cantidadServidores.split(\":\")[1])+\" \"+Integer.parseInt(tamanioBuffer.split(\":\")[1]));\n\t\t//se crea el numero de clientes y de seridores que llega por parametro y se arranca cada uno de ellos\n\t\tfor(int i=0;i<msjs.length;i++){\n\t\t\tCliente cliente=new Cliente(Integer.parseInt(msjs[i]),buffer);\n\t\t\tbuffer.clientes[i]=cliente;\n\t\t\tbuffer.clientes[i].start();\n\t\t}\n\n\t\tfor(int i=0;i<buffer.numServidores;i++){\n\t\t\tServidor servidor=new Servidor(buffer);\n\t\t\tbuffer.servidores[i]=servidor;\n\t\t\tbuffer.servidores[i].start();\n\t\t}\n\n\t}", "public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}", "void getDataFromServer();", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n protected byte[] getClientData() {\n return (clientData + \" individual\").getBytes(StandardCharsets.UTF_8);\n }", "public void load() ;", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "public void readFromFile() {\n\n\t}", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "public static void load(Client client) throws ClassNotFoundException, SQLException, RecordNotFoundException {\r\n \r\n \tif (connection == null || connection.isClosed()) \r\n \t\tconnection = DataSourceManager.getConnection();\r\n \r\n \tstatement = connection.prepareStatement(LOAD);\r\n \tstatement.setInt(1, client.id);\r\n resultset = statement.executeQuery();\r\n \r\n if (!resultset.next())\r\n \tthrow new RecordNotFoundException(\"Unable to find a match for client: \" + client.id + \".\");\r\n \r\n // Creating the Group object.\r\n Group group = new Group();\r\n group.id = resultset.getInt(\"gr_id\");\r\n group.name = resultset.getString(\"gr_name\");\r\n group.keyword = resultset.getString(\"gr_keyword\");\r\n group.level = resultset.getInt(\"gr_level\");\r\n \r\n // Storing the client data.\r\n client.group = group;\r\n client.name = resultset.getString(\"cl_name\");\r\n client.connections = resultset.getInt(\"cl_connections\");\r\n client.ip = resultset.getString(\"cl_ip\");\r\n client.guid = resultset.getString(\"cl_guid\");\r\n client.auth = resultset.getString(\"cl_auth\");\r\n client.time_add = new Date(resultset.getLong(\"cl_time_add\"));\r\n client.time_edit = new Date(resultset.getLong(\"cl_time_edit\"));\r\n \r\n resultset.close();\r\n statement.close();\r\n \r\n }", "public void retrieveData(){\n\t\tloaderImage.loadingStart();\n\t\tJsonClient js = new JsonClient();\n\t\tjs.retrieveData(JSON_URL, this);\n\t}", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "protected void loadDataFromFile() throws IOException {\n \t\tInputStream is = null;\n \n \t\ttry {\n \t\t\tis = new BufferedInputStream(new GZIPInputStream(\n \t\t\t\t\tnew FileInputStream(this.dataFile)));\n \n \t\t\tint dataOffset = 0;\n \t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n \n \t\t\twhile (true) {\n \t\t\t\tint b = is.read();\n \n \t\t\t\tif (b == 0) {\n \t\t\t\t\t// field separator reached.\n \t\t\t\t\tif (this.componentId == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \t\t\t\t\t\tcomponentId = new String(URLEncoding.decode(encoded),\n \t\t\t\t\t\t\t\t\"UTF-8\");\n \t\t\t\t\t} else if (this.query == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tString queryXml = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \n \t\t\t\t\t\t\t// parse the query.\n \t\t\t\t\t\t\tSAXReader reader = new SAXReader();\n \t\t\t\t\t\t\tElement root = reader.read(\n \t\t\t\t\t\t\t\t\tnew StringReader(queryXml))\n \t\t\t\t\t\t\t\t\t.getRootElement();\n \t\t\t\t\t\t\tthis.query = root.getText();\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tthrow new IOException(\n \t\t\t\t\t\t\t\t\t\"Cannot unmarshall cached query.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t} else if (this.optionalParams == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\tif (encoded.length > 0) {\n \t\t\t\t\t\t\tMap optionalParams = new HashMap();\n \t\t\t\t\t\t\tString urlEncoded = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \t\t\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(\n\t\t\t\t\t\t\t\t\turlEncoded, \"&\", false);\n \n \t\t\t\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n String param = tokenizer.nextToken();\n\t\t\t\t\t\t\t\tString key = param.substring(0, param.indexOf('='));\n\t\t\t\t\t\t\t\tString value = param.substring(param.indexOf('=')+1);\n \t\t\t\t\t\t\t\toptionalParams.put(key, value);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tthis.optionalParams = optionalParams;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tthis.optionalParams = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tthis.dataOffset = dataOffset;\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \n \t\t\t\t\tos.reset();\n \t\t\t\t} else if (b == -1) {\n \t\t\t\t\tthrow new IOException(\"Premature end of cached file.\");\n \t\t\t\t} else {\n \t\t\t\t\tos.write(b);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tlog.error(\"Cannot close input cache file: \"\n \t\t\t\t\t\t\t+ this.dataFile.getAbsolutePath());\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void getDataFromFile() throws SQLException{\n \n //SQL database\n getGuestDate_DB();\n getHotelRoomData_DB();\n updateRoomChanges_DB();\n \n //this.displayAll();\n //this.displayAllRooms();\n \n }", "public void setReaderToArray(){\n try{\n String client, number = null;\n\n File reader = new File(\"clientFile/clientInfo.txt\");\n\n Scanner scn = new Scanner(reader);\n scn.useDelimiter(\",\");\n\n while(scn.hasNext()){\n number = scn.next();\n client = scn.next();\n\n clientList.add(client + \" - \" + number);\n }\n scn.close();\n }catch (FileNotFoundException exception){\n System.out.println(\"An error occurred.\");\n }\n }", "private void getData() {\r\n Properties config = new Properties();\r\n\tFileInputStream input = null;\r\n\ttry {\r\n input = new FileInputStream(\"src/signupsigninserver/config/connection.properties\");\r\n config.load(input);\r\n port=Integer.parseInt(config.getProperty(\"port\"));\r\n maxThreads=Integer.parseInt(config.getProperty(\"max_threads\"));\r\n \r\n } catch (FileNotFoundException ex) {\r\n LOGGER.info(\"No encuentra archivo\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ILogicImplementation.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (input != null)\r\n\t\ttry {\r\n input.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ILogicImplementation.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n\t}\r\n }", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "@Override\r\n\tpublic void loadCrewData(Path p) throws DataLoadingException {\r\n\t\ttry {\r\n\t\t\t// open a file\r\n\t\t\tBufferedReader br = Files.newBufferedReader(p);\r\n\t\t\tString json = \"\";\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tjson = json + line;\r\n\t\t\t}\r\n\t\t\tJSONObject root = new JSONObject(json);\r\n\t\t\tJSONArray pilotsArray = root.getJSONArray(\"pilots\");\r\n\t\t\tfor (int i = 0; i < pilotsArray.length(); i++) {\r\n\t\t\t\tPilot singlePilot = new Pilot();\r\n\t\t\t\tJSONObject pilot = pilotsArray.getJSONObject(i);\r\n\t\t\t\tsinglePilot.setForename(pilot.getString(\"forename\"));\r\n\t\t\t\tsinglePilot.setSurname(pilot.getString(\"surname\"));\r\n\t\t\t\tsinglePilot.setHomeBase(pilot.getString(\"home_airport\"));\r\n\t\t\t\tsinglePilot.setRank(Pilot.Rank.valueOf(pilot.getString(\"rank\")));\r\n\t\t\t\tJSONArray type = pilot.getJSONArray(\"type_ratings\");\r\n\t\t\t\tfor (int k = 0; k < type.length(); k++) {\r\n\t\t\t\t\tsinglePilot.setQualifiedFor(type.getString(k));\r\n\t\t\t\t}\r\n\t\t\t\tpilots.add(singlePilot);\r\n\t\t\t}\r\n\r\n\t\t\tJSONArray cabinCrewArray = root.getJSONArray(\"cabincrew\");\r\n\t\t\tfor (int j = 0; j < cabinCrewArray.length(); j++) {\r\n\t\t\t\tCabinCrew crew = new CabinCrew();\r\n\t\t\t\tJSONObject cabinCrewObject = cabinCrewArray.getJSONObject(j);\r\n\t\t\t\tcrew.setForename(cabinCrewObject.getString(\"forename\"));\r\n\t\t\t\tcrew.setSurname(cabinCrewObject.getString(\"surname\"));\r\n\t\t\t\tcrew.setHomeBase(cabinCrewObject.getString(\"home_airport\"));\r\n\t\t\t\tJSONArray type = cabinCrewObject.getJSONArray(\"type_ratings\");\r\n\t\t\t\tfor (int t = 0; t < type.length(); t++) {\r\n\t\t\t\t\tcrew.setQualifiedFor(type.getString(t));\r\n\t\t\t\t}\r\n\t\t\t\tcabinCrew.add(crew);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tthrow new DataLoadingException(e);\r\n\t\t}\r\n\r\n\t}", "public void loadJobDataFromFile(File file) {\n try {\n\n JAXBContext context = JAXBContext.newInstance(JobListWrapper.class);\n Unmarshaller um = context.createUnmarshaller();\n\n // Reading XML from the file and unmarshalling.\n JobListWrapper wrapper = (JobListWrapper) um.unmarshal(file);\n\n jobData.clear();\n jobData.addAll(wrapper.getJobs());\n\n // Save the file path to the registry.\n setJobFilePath(file);\n\n } catch (Exception e) { // catches ANY exception\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Could not load data\");\n alert.setContentText(\"Could not load data from file:\\n\" + file.getPath());\n\n alert.showAndWait();\n }\n }", "public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}", "@Override\n public void load() {\n File file = new File(path + \"/\" + \"rooms.txt\"); //Hold file of the riddles. riddles.txt should be placed in the root folder.\n Scanner scanner = null; //if the scanner can't load the file.\n\n try {\n scanner = new Scanner(file); // scanner for the file\n } catch (FileNotFoundException ex) {\n try {\n //if not such file exists create it.\n file.createNewFile();\n } catch (IOException ex1) {\n Logger.getLogger(LoadRooms.class.getName()).log(Level.SEVERE, null, ex1);\n return;\n }\n }\n while (scanner.hasNextLine()) { //if scanner har fundt next line of text in the file\n switch (scanner.nextLine()) {\n case \"[Room]:\": //if scanner fundt \"[Room]:\" case, get rooms attributes\n state = LOAD_ATTRIBUTES;\n break;\n case \"[Connections]:\"://if scanner fundt \"[Connections]:\" case, get connections from file\n state = LOAD_CONNECTIONS;\n break;\n\n default:\n break;\n }\n switch (state) {\n case LOAD_ATTRIBUTES: //case, that get rooms attributes and add them to room_list\n String name = scanner.nextLine();\n int timeToTravel = Integer.parseInt(scanner.nextLine());\n boolean isLocked = Boolean.parseBoolean(scanner.nextLine());\n boolean isTransportRoom = Boolean.parseBoolean(scanner.nextLine());\n Room newRoom = new Room(name, timeToTravel, isLocked, isTransportRoom);\n if (newRoom.isTransportRoom()) {\n newRoom.setExit(\"exit\", newRoom);\n newRoom.setExitDir(\"west\", newRoom);\n }\n rooms_list.add(newRoom);\n break;\n case LOAD_CONNECTIONS: //case that get connections betweem rooms in game\n while (scanner.hasNextLine()) {\n String[] string = scanner.nextLine().split(\",\");\n Room room = this.getRoomByName(string[0]);\n room.setExit(string[1], this.getRoomByName(string[1]));\n if (!this.getRoomByName(string[1]).isTransportRoom() && !room.isTransportRoom()) {\n room.setExitDir(string[2], getRoomByName(string[1]));\n }\n }\n break;\n default:\n break;\n }\n }\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void parseClientConfigFile(){\n\n boolean isClientFile = false; //states if the config-file is a clients file\n String line = \"\";\n\n try{\n buffReader = new BufferedReader(new FileReader (new File(logFileName) ));\n\n while( buffReader.ready()) {\n line = buffReader.readLine().trim();\n //check to see if <client> tag exists\n if (line.startsWith(\"<client>\")){\n isClientFile = true;\n }\n \n if (isClientFile){\n if (line.startsWith(\"<name>\")){\n this.name = line.substring(6, line.length()-7);\n } else if (line.startsWith(\"<key>\")){\n this.key = line.substring(5, line.length()-6);\n } else if (line.startsWith(\"<serverip>\")){\n this.serverIpString = line.substring(10, line.length()-11);\n } else if (line.startsWith(\"<serverport>\")){\n this.serverPort = Integer.valueOf(line.substring(12, line.length()-13));\n } else if (line.startsWith(\"<clientListenPort>\")){\n clientListenPort = Integer.valueOf(line.substring(18, line.length()-19));\n }\n else\n continue;\n } else\n initializeNA();\n }\n\n } catch (FileNotFoundException fnfEx){\n ClientInterface.getjTextArea1().append(\"Could not FIND client's Configuration File.\");\n initializeNA();\n } catch (IOException ioEx){\n ClientInterface.getjTextArea1().append(\"Could not OPEN client's Configuration File.\");\n initializeNA();\n }\n }", "public static void adminUploadClient(String filePath) throws FileNotFoundException {\r\n Scanner sc = new Scanner(new FileInputStream(filePath));\r\n String[] clientData;\r\n Client client;\r\n while (sc.hasNextLine()) {\r\n clientData = sc.nextLine().split(\",\");\r\n // Last Name, First Names, Email, Address, Credit card number, Expiry Date\r\n client = new Client(clientData[0], clientData[1], clientData[2], clientData[3],\r\n clientData[4], clientData[5]);\r\n\r\n // Get the ClientMap\r\n Map<String, Client> tempClientMap = getClientMap();\r\n\r\n // If tempClientMap contains the above client's email, then update the\r\n // information of this client\r\n if (tempClientMap.containsKey(client.getEmail())) {\r\n // Get the client that exists and update the client info as needed\r\n // Index 2 is skipped over because the email is the key in the client map\r\n // The index matches the constructor of Flight object\r\n tempClientMap.get(client.getEmail()).setLastName(clientData[0]);\r\n tempClientMap.get(client.getEmail()).setFirstName(clientData[1]);\r\n tempClientMap.get(client.getEmail()).setAddress(clientData[3]);\r\n tempClientMap.get(client.getEmail()).setCreditCardNumber(clientData[4]);\r\n tempClientMap.get(client.getEmail()).setExpiryDate(clientData[5]);\r\n } else { // If there isn't such an email, add the client into the client map\r\n addClient(client);\r\n }\r\n }\r\n sc.close();\r\n }", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public static void loadDatabase(){\n\t\ttry(BufferedReader reader = new BufferedReader(new FileReader(filePath))){\n\t\t\tfor(String line; (line = reader.readLine()) != null; ){\n\t\t\t\tString[] info = line.split(Pattern.quote(\"|\"));\n\t\t\t\tString path = info[0].trim();\n\t\t\t\tString fileID = info[1];\n\t\t\t\tInteger nOfChunks = Integer.parseInt(info[2]);\n\t\t\t\tPair<FileID, Integer> pair = new Pair<FileID, Integer>(new FileID(fileID), nOfChunks);\n\t\t\t\tPeer.fileList.put(path, pair);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\t * LOAD THE CHUNK LIST\n\t\t */\n\t\ttry(BufferedReader reader = new BufferedReader(new FileReader(chunkPath))){\n\t\t\tfor(String line; (line = reader.readLine()) != null; ){\n\t\t\t\tString[] info = line.split(Pattern.quote(\"|\"));\n\t\t\t\tString fileID = info[0].trim();\n\t\t\t\tInteger chunkNo = Integer.parseInt(info[1]);\n\t\t\t\tInteger drd = Integer.parseInt(info[2]);\n\t\t\t\tInteger ard = Integer.parseInt(info[3]);\n\t\t\t\tChunkInfo ci = new ChunkInfo(fileID,chunkNo,drd,ard);\n\t\t\t\tPeer.chunks.add(ci);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void readFromFile(){\n\t\t\n\t\ttry {\n\t\t\tFile file=new File(\"controller.txt\");\n\t\t\tFileInputStream fin;\n\t\t\tfin = new FileInputStream(file);\n\t\t\tDataInputStream din=new DataInputStream(fin);\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(din));\n\t\t\t\n\t\t\tfor(int i=0; i<2; i++){\n\t\t\t\tif(i==0)\n\t\t\t\t\tcodedUserName=br.readLine();\n\t\t\t\telse \n\t\t\t\t\tcodedPassword=br.readLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void load();", "public void load();", "public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}", "public void load() {\n\t}", "@PostConstruct\n public void loaddata() throws IOException {\n File file = ResourceUtils.getFile(configProvider.getFilePath());\n Reader in = new FileReader(file.getPath());\n Iterable<CSVRecord> records = CSVFormat.RFC4180.withHeader(\n \"locationid\", \"Applicant\", \"FacilityType\", \"cnn\", \"LocationDescription\", \"Address\", \"blocklot\", \"block\", \"lot\",\n \"permit\", \"Status\", \"FoodItems\", \"X\", \"Y\", \"Latitude\", \"Longitude\", \"Schedule\",\n \"dayshours\", \"NOISent\", \"Approved\", \"Received\", \"PriorPermit\", \"ExpirationDate\",\n \"Location\", \"Fire Prevention Districts\", \"Police Districts\",\n \"Supervisor Districts\", \"Zip Codes\", \"Neighborhoods (old)\"\n ).parse(in);\n\n Iterator<CSVRecord> iterator = records.iterator();\n iterator.next();\n // use our own ids because of how atomic integers work, we can't have a 0 for an id, so can't rely on outside sources.\n int i = 0;\n while (iterator.hasNext()) {\n CSVRecord record = iterator.next();\n FoodTruck truck = new FoodTruck(Float.parseFloat(record.get(\"Latitude\")), Float.parseFloat(record.get(\"Longitude\")),\n record.get(\"Address\"), record.get(\"FoodItems\"), ++i);\n //add food truck to datastore\n truckDataStore.addTruck(truck.getId(), truck);\n\n final Rectangle rect = new Rectangle(truck.getLat(), truck.getLon(),\n truck.getLat(), truck.getLon());\n //add food truck location + id to location data store.\n locationDataStore.getSpatialIndex().add(rect, truck.getId());\n }\n }", "public void load() {\n }", "public void loadVehicles() throws IOException {\n File veFile = new File(VE_FILE);\n\n //Checks is file created\n if (!veFile.exists()) {\n veFile.createNewFile(); //If not, creates new file\n System.out.print(\"The data file vehicles.txt is not exits. \" +\n \"Creating new data file vehicles.txt... \" +\n \"Done!\");\n this.numberOfVehicle = 0; //New data file with the number of Vehicle is 0\n } else {\n //If file is existed, so loading this data file\n System.out.print(\"The data file vehicles.txt is found. \" +\n \"Data of vehicles is loading...\");\n\n //Loads text file into buffer\n try (BufferedReader br = new BufferedReader(new FileReader(VE_FILE))) {\n String line, contractId, type, licensePlate, chassisId, enginesId;\n\n //Reads number of vehicles\n line = br.readLine();\n if (line == null) return;\n this.numberOfVehicle = Integer.parseInt(line);\n\n for (int i = 0; i < this.numberOfVehicle; i++) {\n //Reads Vehicle's information\n contractId = br.readLine();\n type = br.readLine();\n licensePlate = br.readLine();\n chassisId = br.readLine();\n enginesId = br.readLine();\n\n\n //Create new instance of Vehicle and adds to Vehicle bank\n this.vehicles.add(new Vehicle(Integer.parseInt(contractId), type, licensePlate, chassisId, enginesId));\n }\n }\n System.out.print(\"Done!\");\n }\n }", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "private void reloadData() {\n if (DataFile == null)\n DataFile = new File(dataFolder, DATAFILENAME);\n Data = YamlConfiguration.loadConfiguration(DataFile);\n }", "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 public void load() {\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public List<Result> loadResults(Client client) {\n List<Result> results = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n results = dbb.loadResults(client);\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return results;\n }", "void massiveModeLoading( File dataPath );", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "@Override\n void loadData() {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n // Attempt to read the config in the config file.\n langConfig = YamlConfiguration.loadConfiguration(langConfigFile);\n // If the config file is null (due to the config file being invalid or not there) create a new one.\n // If the file doesnt exist, populate it from the template.\n if (!langConfigFile.exists()) {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n langConfig = YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource(\"messages.yml\")));\n saveData();\n }\n }", "public static void loadClientTable()\n {\n final String QUERY = \"SELECT * FROM Clients\";\n \n DefaultTableModel dtm = (DefaultTableModel) new ClientDatabase().selectTable(QUERY);\n clientTable.setModel(dtm);\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "String [][] importData (String path);", "public abstract void load();", "private void loadData () {\n try {\n File f = new File(\"arpabet.txt\");\n BufferedReader br = new BufferedReader(new FileReader(f));\n vowels = new HashMap<String, String>();\n consonants = new HashMap<String, String>();\n phonemes = new ArrayList<String>();\n String[] data = new String[3];\n for (String line; (line = br.readLine()) != null; ) {\n if (line.startsWith(\";\")) {\n continue;\n }\n data = line.split(\",\");\n phonemes.add(data[0]);\n if (data[1].compareTo(\"v\") == 0) {\n vowels.put(data[0], data[2]);\n } else {\n consonants.put(data[0], data[2]);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ArrayList<Client> toReadJobsFaileds(File fichero) throws Exception{\n \n ControlDateJobs controlDateJobs = ControlDateJobs.getInstance();\n \n ArrayList<Client> clients = new ArrayList();\n int i;\n boolean isNewClient;\n String clientName = null;\n String saveSetName = null;\n String groupStartTime = null;\n String saveType = null;\n String level = null;\n \n try{\n Scanner sc=new Scanner(fichero);\n String line=sc.nextLine();\n while(line.indexOf(\"Client Name,\")==-1){\n line=sc.nextLine();\n }\n while(sc.hasNextLine()){\n line=sc.nextLine();\n \n i=line.indexOf(\",\");\n clientName=line.substring(0, i);\n line=line.substring(i+1); \n\n i=line.indexOf(\",\");\n saveSetName=line.substring(0, i);\n line=line.substring(i+2);\n\n i=line.indexOf(\",\");\n groupStartTime =line.substring(0, i);\n line=line.substring(i+1);\n\n i=line.indexOf(\",\");\n saveType=line.substring(0, i);\n line=line.substring(i+1);\n\n i=line.indexOf(\",\");\n level =line.substring(0, i);\n\n isNewClient = true;\n \n i=0;\n \n while(i < clients.size() && isNewClient){\n if(clients.get(i).getName().equals(clientName)){\n ReportErrors reportError = new ReportErrors(saveSetName, groupStartTime, saveType, level, \"failed\");\n clients.get(i).addReportError(reportError);\n controlDateJobs.eventUpdateDateLastDayJobsExecuted(groupStartTime);\n isNewClient = false;\n }else{\n ++i;\n }\n }\n if(isNewClient == true){\n Client client = new Client(clientName);\n clients.add(client);\n ReportErrors reportError = new ReportErrors(saveSetName, groupStartTime, saveType, level, \"failed\");\n clients.get(i).addReportError(reportError);\n controlDateJobs.eventUpdateDateLastDayJobsExecuted(groupStartTime);\n }\n } \n }catch(FileNotFoundException e){\n throw new Exception(\"Error de lectura\");\n } \n return clients;\n }", "public void setClientList(String filePath) throws FileNotFoundException {\n Scanner scan = new Scanner(new File(filePath));\n while (scan.hasNextLine()) { // while there's another line in the file\n String line = scan.nextLine();\n if (line == \"\") { // if the next line is empty, stop the loop\n break;\n }\n int i = 0; // to keep track of the iterator placement in the line\n int n = 0; // to keep track of information in store\n String email = new String();\n String[] newInformation = new String[5];\n while (i < line.length()) { // checks every character in the line\n String store = \"\";\n while (i < line.length() && line.charAt(i) != ',') {\n store += line.charAt(i);\n i++;\n }\n i++;\n n++;\n switch (n) { // stores area into appropriate place for user\n case 1:\n newInformation[0] = store;\n break;\n case 2:\n newInformation[1] = store;\n break;\n case 3:\n email = store;\n break;\n case 4:\n newInformation[2] = store;\n break;\n case 5:\n newInformation[3] = store;\n break;\n case 6:\n newInformation[4] = store;\n break;\n }\n }\n boolean b = false;\n for (Client c: this.clientList) {\n if (c.getEmail().equals(email)) {\n b = true;\n c.setLastName(newInformation[0]);\n c.setFirstNames(newInformation[1]);\n c.setAddress(newInformation[2]);\n c.setCreditCardNumber(newInformation[3]);\n c.setExpiryDate(newInformation[4]);\n }\n }\n if (!b) {\n this.clientList.add(new Client(email, newInformation[0], newInformation[1], newInformation[2], newInformation[3], newInformation[4]));\n }\n }\n scan.close();\n flightSystem.setClientList(this.clientList); // updates FlightSystem\n setChanged();\n notifyObservers(clientList);\n }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "public static void reloadClientScripts() {\n clientizenScripts.clear();\n for (File file : CoreUtilities.listDScriptFiles(clientizenFolder)) {\n String name = CoreUtilities.toLowerCase(file.getName());\n if (clientizenScripts.containsKey(name)) {\n Debug.echoError(\"Multiple script files named '\" + name + \"' found in client-scripts folder!\");\n continue;\n }\n try (FileInputStream stream = new FileInputStream(file)) {\n // TODO: clear comments server-side\n clientizenScripts.put(name, ScriptHelper.convertStreamToString(stream));\n if (CoreConfiguration.debugLoadingInfo) {\n Debug.log(\"Loaded client script: \" + name);\n }\n }\n catch (Exception e) {\n Debug.echoError(\"Failed to load client script file '\" + name + \"', see below stack trace:\");\n Debug.echoError(e);\n }\n }\n scriptsPacket = new SetScriptsPacketOut(clientizenScripts);\n }", "public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}", "private void loadData(){\n\n fileName = EditedFiles.getActiveFacilityFile();\n getFacilities().clear();\n\n try {\n getFacilities().addAll(ReaderThreadRunner.startReader(fileName));\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n\n observableList = FXCollections.observableList(getFacilities());\n facilitiesView.setItems(observableList);\n }", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "@Override\n public void run() {\n load_remote_data();\n }", "public void read() {\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"studentData.dat\");\n\n\t\t\tObjectInputStream ois;\n\t\t\ttry {\n\t\t\t\tois = new ObjectInputStream(fis);\n\t\t\t\ttry {\n\t\t\t\t\tstudentList = (ArrayList<Student>) ois.readObject();\n\t\t\t\t} catch (ClassNotFoundException 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\tois.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\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "private void loadCommunications() {\n\t\tif (arduinoClientModel != null) {\n\t\t\tSystem.out.println(\"==============================================\");\n\t\t\tSystem.out.println(arduinoClientModel.getArduinoWrappedData());\n\t\t\tSystem.out.println(\"==============================================\");\n\t\t\tCommunicationModel communicationModel = arduinoClientModel.getCommunication();\n\t\t\tArrayList<String> connectedSensors = new ArrayList<String>();\n\t\t\tfor (ComponentModel component : arduinoClientModel.getComponents()) {\n\t\t\t\tconnectedSensors.add(component.getName());\n\t\t\t\ttransferData.put(component.getName(), new TransferData(component.getName(), \"0\", -1));\n\t\t\t}\n\t\t\tif (communicationModel.getName().equals(\"ethernet\")) {\n\t\t\t\tEthernetCommunication ethernetCommunication = new EthernetCommunication(communicationModel.getAddress(),\n\t\t\t\t\t\tcommunicationModel.getPort(), connectedSensors, \n\t\t\t\t\t\tarduinoClientModel.getArduinoWrappedData(),\n\t\t\t\t\t\ttransferData);\n\t\t\t\tlistCommunication.add(ethernetCommunication);\n\t\t\t}\n\t\t}\n\t}", "public void loadObjectData(String datafile) {\n\t\tProperties databaseAddData = new Properties();\n\t\ttry {\n\t\t\tdatabaseAddData.load(new FileInputStream(langFile));\n\t\t} catch (Exception e) {}\n\t\t//put values from the properties file into hashmap\n\t\tthis.properties.put(\"PROPERTY\", databaseAddData.getProperty(\"PROPERTY\"));\n\t}", "public ClientLogic(String host, String file) {\n\t\t\thostName = host;\n\t\t\tfileName = file;\n\t\t}", "private ObservableList<Saucer> loadSaucers(){\r\n try {\r\n File file = new File(\"src/data/saucers.txt\");\r\n FileInputStream fis = new FileInputStream(file);\r\n ObjectInputStream input = new ObjectInputStream(fis);\r\n List<Saucer> list = (List<Saucer>) input.readObject();\r\n ObservableList<Saucer> saucers = FXCollections.observableArrayList(list);\r\n\r\n return saucers;\r\n } catch (Exception ex){\r\n ex.printStackTrace();\r\n\r\n return null;\r\n }\r\n }", "public void readFromHotelRoomListFile()\r\n {\r\n try(ObjectInputStream fromHotelRoomListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/hotelRoomlist.dta\")))\r\n {\r\n hotelRoomList = (HotelRoomList) fromHotelRoomListFile.readObject();\r\n hotelRoomList.getSavedStaticPrice(fromHotelRoomListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av hotelrom \"\r\n + \"objektene.\\nOppretter ny liste for \"\r\n + \"hotelrommene.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter ny liste for hotelrommene.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter ny liste for hotelrommene.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "public void readFromConferenceRoomListFile()\r\n {\r\n try(ObjectInputStream fromConferenceRoomListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/conferenceroomlist.dta\")))\r\n {\r\n conferenceRoomList = (ConferenceRoomList) fromConferenceRoomListFile.readObject();\r\n conferenceRoomList.getSavedStaticPrice(fromConferenceRoomListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n conferenceRoomList = new ConferenceRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av konferanserom \"\r\n + \"objektene.\\nOppretter ny liste for \"\r\n + \"konferanserommene.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n conferenceRoomList = new ConferenceRoomList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter ny liste for konferanserommene.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n conferenceRoomList = new ConferenceRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter ny liste for konferanserommene.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }" ]
[ "0.73321664", "0.7162854", "0.69025487", "0.68528473", "0.67634046", "0.66887504", "0.6616218", "0.66011053", "0.6520648", "0.6520648", "0.6514105", "0.6514105", "0.6500783", "0.64663243", "0.6444984", "0.6442898", "0.6423962", "0.6370332", "0.626647", "0.62486583", "0.62406784", "0.62362254", "0.62280595", "0.61837876", "0.61370605", "0.61329454", "0.6109906", "0.60702676", "0.6026067", "0.5997754", "0.5982968", "0.59568477", "0.5940558", "0.5936584", "0.5923726", "0.5898157", "0.5898059", "0.58895", "0.58802426", "0.5879999", "0.58749795", "0.5871489", "0.5868937", "0.5860241", "0.5859217", "0.58591455", "0.58514625", "0.58505553", "0.58267146", "0.58069664", "0.58038324", "0.5796924", "0.57794034", "0.5762316", "0.57568336", "0.5749265", "0.57489383", "0.5745093", "0.5732137", "0.5726637", "0.57218874", "0.57218874", "0.5717046", "0.57026255", "0.5701047", "0.5695673", "0.569534", "0.5678478", "0.56754285", "0.5671837", "0.5669947", "0.5669031", "0.56656593", "0.5661878", "0.56586367", "0.5641971", "0.56418896", "0.56371856", "0.56370217", "0.5627759", "0.56276107", "0.5624398", "0.5624275", "0.56222403", "0.56188774", "0.5613938", "0.561229", "0.56052184", "0.5602808", "0.55997735", "0.55997115", "0.5597313", "0.5595197", "0.5594391", "0.5592903", "0.55910075", "0.55880445", "0.55866665", "0.5573102", "0.5573049", "0.55697924" ]
0.0
-1
method to load the data from the status file
public static int leerStatus( String[]ruts,String[]estadoPase, int numClientes) throws IOException{ File file = new File("status.txt"); Scanner arch1 = new Scanner(file); int i = 0; while ( arch1.hasNextLine()){ String linea = arch1.nextLine(); String [] partes = linea.split(","); String rut = partes[0]; //hacer el for para luego ir comparando con el vector ruts de clientes for(int j = 0; j<numClientes;j++){ //si son iguales entonces agrega el estado en dicha posision if(ruts[j].equals(rut)){ estadoPase[j] = partes[1]; } } i ++; } arch1.close(); return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadStatus (){\n\t}", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "private void loadFromFile() {\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(FILENAME);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\tString line = in.readLine();\n\t\t\tGson gson = new Gson();\n\t\t\twhile (line != null) {\n\t\t\t\tCounterModel counter = gson.fromJson(line, CounterModel.class);\n\t\t\t\tif (counterModel.getCounterName().equals(counter.getCounterName())) {\n\t\t\t\t\tcounterListModel.addCounterToList(counterModel);\n\t\t\t\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t\t\t\t} else {\n\t\t\t\t\tcounterListModel.addCounterToList(counter);\n\t\t\t\t}\n\t\t\t\tline = in.readLine();\n\t\t\t} \n\t\t\tfis.close();\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}\n\t}", "private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "protected abstract void loadData();", "protected void loadData()\n {\n }", "public void loadState() throws IOException, ClassNotFoundException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// load client state from file\n\t\tObjectInputStream is = new ObjectInputStream(new FileInputStream(f));\n\t\tTrackerDaemon client = (TrackerDaemon) is.readObject();\n\t\tis.close();\n\t\t\n\t\t// copy attributes\n\t\tthis.peerRecord = client.peerRecord();\n\t\t\n\t}", "void loadData();", "void loadData();", "private void populateStatus() {\n\t\t\n\t\tstatusList.add(new Status(MainActivity.profileUrls[1], \"Mohamed\", \"14 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[4], \"Ahmed Adel\", \"10 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[0], \"Manar\", \"Yesterday, 5:08 PM\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[5], \"Ramadan\", \"Today, 10:30 AM\"));\n\t\t\n\t}", "public void readFromFile() {\n\n\t}", "public void load() ;", "public void load() {\n notification = \"Hi \" + reader.getusername() + \"!\"\n + \"\\n\\n Latest nofitications:\\n\" + reader.notificationsToString();\n label.setText(notification);\n }", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}", "public abstract void loadData();", "public abstract void loadData();", "public String readStatus(String path) throws Exception {\n\t\treturn getObject(path + STATUS);\n\t}", "@Override\n void load(String data) {\n }", "String loadFromFile () throws Exception {\n\n Reader reader = new Reader(new FileReader(file));\n String line;\n\n// reads all lines of the file\n while ((line = reader.readLine()) != null) {\n\n// depending on the object tag [element], it reads relevant parameters and creates the Element\n if (line.contains(\"[timeline]\"))\n timelines.add(new Timeline(reader.getStringArgument()));\n\n else if (line.contains(\"[event]\")) {\n String timelineName = reader.getStringArgument();\n for (Timeline timeline : timelines) {\n if (timelineName.equals(timeline.name)) {\n timeline.addEvent(\n reader.getStringArgument(),\n reader.getDateArgument(),\n reader.getDateArgument(),\n reader.getIntArgument() != 0,\n reader.getNotesArgument());\n break;\n }\n }\n }\n }\n reader.close();\n return (\"Data loaded successfully\");\n }", "@SuppressWarnings(\"unchecked\")\n public static void load() {\n\n System.out.print(\"Loading team data from file...\");\n\n try {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n\n FileInputStream fil = new FileInputStream(team_fil);\n ObjectInputStream in = new ObjectInputStream(fil);\n\n team_list = (ConcurrentHashMap<Integer, Team>) in.readObject();\n cleanTeams();\n\n fil.close();\n in.close();\n\n //Gå gjennom alle lagene og registrer medlemmene i team_members.\n Iterator<Team> lag = team_list.values().iterator();\n\n while (lag.hasNext()) {\n\n Team laget = lag.next();\n\n Iterator<TeamMember> medlemmer = laget.getTeamMembers();\n while (medlemmer.hasNext()) {\n registerMember(medlemmer.next().getCharacterID(), laget.getTeamID());\n }\n\n }\n\n System.out.println(\"OK! \" + team_list.size() + \" teams loaded.\");\n\n } catch (Exception e) {\n System.out.println(\"Error loading team data from file.\");\n }\n\n }", "@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\tgetData();\n\t\t\n\t}", "@Override\n void loadData() {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n // Attempt to read the config in the config file.\n langConfig = YamlConfiguration.loadConfiguration(langConfigFile);\n // If the config file is null (due to the config file being invalid or not there) create a new one.\n // If the file doesnt exist, populate it from the template.\n if (!langConfigFile.exists()) {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n langConfig = YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource(\"messages.yml\")));\n saveData();\n }\n }", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load() {\n }", "public void loadStatus() {\r\n\r\n\t\ttry {\r\n\t\t\tRemoteOffice objRemoteOffice = Application.UNITY_CLIENT_APPLICATION.getreRemoteOffice();\r\n\t\t\tif (objRemoteOffice != null) {\r\n\t\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"Going to load the status of the components from broadworks.\");\r\n\r\n\t\t\t\tboolean isActive = objRemoteOffice.isActive();\r\n\t\t\t\tString phnumber = objRemoteOffice.getPhoneNumber();\r\n\t\t\t\tobjRemoteOfficeEnableJCheckBox.setSelected(isActive);\r\n\t\t\t\tobjRemoteOfficeJTextField.setText(phnumber);\r\n\r\n\t\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(true);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(false);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"component status loaded successfully\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"component status not loaded successfully\");\r\n\t\t}\r\n\t}", "public void read(LVValue fileName) throws LRException\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew LDBReader(background.getClient(),fileName.getStringValue());\n\t\t}\n\t\tcatch (SAXException e) { setStatus(new LDBException(e)); }\n\t\tcatch (IOException e) { setStatus(new LDBException(e)); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void load() {\n\t}", "private void loadDataFromFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // load data for new users after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // load data for existing users after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private void loadDataFromFile(File file) {\n\t\tString fileName = file.getName();\n\t\tQuickParser test = new QuickParser();\n\n\t\tif(fileName.trim().toUpperCase().startsWith(\"INV\")) {\n\t\t\tfileType = FileType.INVENTORY;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInventoryData.clear();\n\t\t\tmasterInventoryData = test.Parse(file, fileType);\n\t\t\tpresentationInventoryData.clear();\n\t\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End if statement\n\t\telse if(fileName.toUpperCase().startsWith(\"INI\")) {\n\t\t\tfileType = FileType.INITIAL;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInitialData.clear();\n\t\t\tmasterInitialData = test.Parse(file, fileType);\n\t\t\tpresentationInitialData.clear();\n\t\t\tpresentationInitialData.addAll(masterInitialData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End else if statement \n\t\telse {\n\t\t\tfileType = FileType.UNASSIGNED;\n\t\t} // End else statement\n\t\tchangeToScanTable();\n\t}", "private void reloadData() {\n if (DataFile == null)\n DataFile = new File(dataFolder, DATAFILENAME);\n Data = YamlConfiguration.loadConfiguration(DataFile);\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "public Load(String[] args) {\n\n\t\ttry {\n\t\t\tRandomAccessFile raf = new RandomAccessFile(new File(args[0]), \"rw\");\n\t\t\tthis.sfMap = raf.getChannel();\n\t\t\tthis.stataFile = sfMap.map(FileChannel.MapMode.READ_WRITE, 0, sfMap.size());\n\t\t\tthis.fileHeader = checkVersion(this.stataFile);\n\t\t\tif (this.release >= 113 && this.release <= 115) {\n\t\t\t\tthis.headerData = OldFormats.readHeader(stataFile, fileHeader);\n\t\t\t} else {\n\t\t\t\tthis.headerData = NewFormats.readHeader(stataFile, fileHeader);\n\t\t\t}\n\t\t\tparseHeader();\n\t\t\tif (this.release == 118) {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Long) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t} else {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Integer) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t}\n\t\t} catch (IOException | DtaCorrupt e) {\n\t\t\tSystem.out.println(String.valueOf(e));\n\t\t}\n\n\t}", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "public void readDataFromFile(){\n try {\n weatherNow.clear();\n // Open File\n Scanner scan = new Scanner(context.openFileInput(fileSaveLoc));\n\n // Find all To Do items\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n\n // if line is not empty it is data, add item.\n if (!line.isEmpty()) {\n // first is the item name and then the item status.\n String[] readList = line.split(\",\");\n String city = readList[0];\n String countryCode = readList[1];\n double temp = Double.parseDouble(readList[2]);\n String id = readList[3];\n String description = readList[4];\n\n weatherNow.add(new WeatherNow(city,countryCode, temp, id, description));\n }\n }\n\n // done\n scan.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load();", "public void load();", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }", "public void ReadFromBinary() throws IOException\n\t {\n\t \t\n\t \tDataInputStream Input = new DataInputStream(new FileInputStream(\"GameProgress.dat\"));\n\t \t\n\t \t\tpl.xCoord = Input.read(); \n\t \t\tpl.xCoord = Input.read(); \n\t\t\t\tpl.NumRockets = Input.read(); \n\t\t\t\tpl.NumBullets = Input.read();\n\t\t\t\tpl.Health =Input.read();\n\t\t\t\tDestroyedEnemies =Input.read();\n\t\t\t\tRunAwayEnemies =Input.read();\n\t\t\t\t\n\t\t\t\tint x, y = 0; \n\t\t\t\t\n\t\t\t\tfor (int i = 0 ; i < EnemyList.size(); i++ )\n\t\t\t\t{\n\t\t\t\t\tx = Input.read();\n\t\t\t\t\ty = Input.read();\n\t\t\t\t\teh = new Enemy(x,y);\n\t\t\t\t\tEnemyList.add(eh);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tInput.close(); \n\t }", "private void loadHistory(VssFile vssFile) {\r\n \tif(config.useComApi)\r\n {\r\n \t\tgetVss().getComApiFileHistory(vssFile);\r\n }\r\n \telse\r\n \t{\r\n File historyFile = getVss().getFileHistory(vssFile);\r\n VssHistoryParser p = new VssHistoryParser(config);\r\n p.parseFileHistory(historyFile, vssFile);\r\n \t}\r\n }", "public abstract void load() throws IOException;", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "private static void load(String filename, Stats stats) throws IOException {\n System.out.println(\"Analysing file: \" + filename);\n getConsole().println(\"Analysing file: \" + filename.substring(0, Integer.min(filename.length(), 60)) + (filename.length() > 60 ? \"...\" : \"\"));\n\n String line;\n long numOfKeys = 0,\n actualKey = 0,\n actualLineNumber = 0,\n startFileTime = System.nanoTime();\n try (BufferedReader reader = new BufferedReader(new FileReader(filename))) {\n while ((line = reader.readLine()) != null) {\n String[] tuple = line.split(\":\", 2);\n if (tuple.length == 2 && tuple[0].equals(\"PRIV\")) {\n numOfKeys++;\n }\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n return;\n }\n\n try (BufferedReader reader = new BufferedReader(new FileReader(filename))) {\n lastStatusMessageTime = System.nanoTime();\n Params params = null;\n while ((line = reader.readLine()) != null) {\n actualLineNumber++;\n String[] tuple = line.split(\";\", 2);\n if (tuple[0].equals(\"CPLC.ICSerialNumber\")) {\n stats.changeCard(tuple[1]);\n }\n\n tuple = line.split(\":\", 2);\n if (tuple.length != 2) {\n continue;\n }\n String value = tuple[1].replaceAll(\"\\\\s\", \"\");\n switch (tuple[0]) {\n case \"PUBL\":\n if (params != null) {\n throw new WrongKeyException(\"Loading public key on line \" + actualLineNumber + \" while another public key is loaded\");\n }\n params = Params.readPublicKeyFromTlv(value);\n break;\n case \"PRIV\":\n if (params == null) {\n throw new WrongKeyException(\"Loading private key on line \" + actualLineNumber + \" while public key not loaded\");\n }\n params.readPrivateKeyFromTlv(value);\n break;\n default:\n if (tuple[0].charAt(0) == '#') {\n if (params == null) {\n throw new WrongKeyException(\"Loading time on line \" + actualLineNumber + \" while public key not loaded\");\n }\n\n int time = (int) (Double.parseDouble(tuple[1]) * 1000.0);\n params.setTime(time);\n stats.process(params);\n\n params = null;\n actualKey++;\n showProgress(actualKey, numOfKeys, startFileTime);\n }\n }\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n } catch (WrongKeyException ex) {\n System.err.println(\"File '\" + filename + \"' is in wrong format.\\n\" + ex.getMessage());\n } finally {\n consoleDoneLine();\n }\n }", "String getDataStatus();", "void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );", "protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }", "public void load (File file) throws Exception;", "com.google.protobuf.ByteString getStatus();", "void massiveModeLoading( File dataPath );", "public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load() {\n handleLoad(false, false);\n }", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "@Override\n public void load() {\n }", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}", "void load(File file);", "public void load(File source);", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "void load();", "void load();", "public void readState() {\n FileInputStream stream;\n XmlPullParser parser;\n int type;\n int oldVersion = -1;\n synchronized (this.mFile) {\n synchronized (this) {\n try {\n stream = this.mFile.openRead();\n this.mUidStates.clear();\n try {\n parser = Xml.newPullParser();\n parser.setInput(stream, StandardCharsets.UTF_8.name());\n } catch (IllegalStateException e) {\n Slog.w(TAG, \"Failed parsing \" + e);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (NullPointerException e2) {\n Slog.w(TAG, \"Failed parsing \" + e2);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (NumberFormatException e3) {\n Slog.w(TAG, \"Failed parsing \" + e3);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (XmlPullParserException e4) {\n Slog.w(TAG, \"Failed parsing \" + e4);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (IOException e5) {\n Slog.w(TAG, \"Failed parsing \" + e5);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (IndexOutOfBoundsException e6) {\n Slog.w(TAG, \"Failed parsing \" + e6);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (Throwable th) {\n if (0 == 0) {\n this.mUidStates.clear();\n }\n try {\n stream.close();\n } catch (IOException e7) {\n }\n throw th;\n }\n } catch (FileNotFoundException e8) {\n Slog.i(TAG, \"No existing app ops \" + this.mFile.getBaseFile() + \"; starting empty\");\n return;\n }\n while (true) {\n type = parser.next();\n if (type == 2 || type == 1) {\n break;\n }\n }\n if (type == 2) {\n String versionString = parser.getAttributeValue(null, \"v\");\n if (versionString != null) {\n oldVersion = Integer.parseInt(versionString);\n }\n int outerDepth = parser.getDepth();\n while (true) {\n int type2 = parser.next();\n if (type2 == 1 || (type2 == 3 && parser.getDepth() <= outerDepth)) {\n break;\n } else if (type2 != 3) {\n if (type2 != 4) {\n String tagName = parser.getName();\n if (tagName.equals(\"pkg\")) {\n readPackage(parser);\n } else if (tagName.equals(WatchlistLoggingHandler.WatchlistEventKeys.UID)) {\n readUidOps(parser);\n } else {\n Slog.w(TAG, \"Unknown element under <app-ops>: \" + parser.getName());\n XmlUtils.skipCurrentTag(parser);\n }\n }\n }\n }\n if (1 == 0) {\n this.mUidStates.clear();\n }\n try {\n stream.close();\n } catch (IOException e9) {\n }\n } else {\n throw new IllegalStateException(\"no start tag found\");\n }\n }\n }\n synchronized (this) {\n upgradeLocked(oldVersion);\n }\n }", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public abstract void load();", "void setDataStatus(String dataStatus);", "public void loadData()\n\t{\n\t\tString fileName = \"YouthTobaccoUse.csv\"; //file to be read and loaded in\n\t\tScanner input = FileUtils.openToRead(fileName).useDelimiter(\",\");\n\t\tint count = 0;\n\t\tboolean isNewState = false;\n\t\tString state = \"\", measure = \"\", stateAbbr = \"\";\n\t\tdouble percent = 0.0;\n\t\tint stateDate = 0;\n\t\twhile(input.hasNext())\n\t\t{\n\t\t\tString line = input.nextLine();\n\t\t\tint tokenCount = 0;\n\t\t\ttokens[tokenCount] = \"\";\n\t\t\t//each line tokenized\n\t\t\tfor(int i = 0; i < line.length(); i++)\n\t\t\t{\n\t\t\t\tif(line.charAt(i) == ',')\n\t\t\t\t{\n\t\t\t\t\ttokenCount++;\n\t\t\t\t\ttokens[tokenCount] = \"\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttokens[tokenCount] += line.charAt(i);\n\t\t\t}\n\t\t\t//loads values into variables, converts String into integers and doubles\n\t\t\tString abbr = tokens[1];\n\t\t\tString name = tokens[2];\n\t\t\tString measureDesc = tokens[5];\n\t\t\tint date = convertInteger(tokens[0]);\n\t\t\tdouble percentage = 0.0;\n\t\t\tif(tokens[10].equals(\"\") == false)\n\t\t\t\tpercentage = convertDouble();\n\t\t\tif(abbr.equals(stateAbbr))\n\t\t\t{\n\t\t\t\tif(measureDesc.equals(\"Smoking Status\") \n\t\t\t\t\t\t\t\t\t|| measureDesc.equals(\"User Status\"))\n\t\t\t\t\tpercent += percentage;\n\t\t\t}\n\t\t\telse\n\t\t\t\tisNewState = true;\n\t\t\tif(isNewState)\n\t\t\t{\n\t\t\t\t//calculates the average values for each state, then adds to \n\t\t\t\t//array list, stored as fields\n\t\t\t\tpercent = (double)(percent/count);\n\t\t\t\tif(state.equals(\"Arizona\") && stateDate == 2017)\n\t\t\t\t\ttobacco.add(new StateTobacco(state, stateAbbr, 3.75, 2017));\n\t\t\t\telse if(state.equals(\"Guam\") == false && count != 0 && count != 1\n\t\t\t\t&& stateAbbr.equals(\"US\") == false)\n\t\t\t\t\ttobacco.add(new StateTobacco(state, stateAbbr, percent, stateDate));\n\t\t\t\tstate = name;\n\t\t\t\tstateAbbr = abbr; \n\t\t\t\tstateDate = date;\n\t\t\t\tisNewState = false;\n\t\t\t\tpercent = 0.0;\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t}", "@Override\n public void load() {\n }", "private void loadFromFile(String fileName) {\n try {\n InputStream inputStream = this.openFileInput(fileName);\n if (inputStream != null) {\n ObjectInputStream input = new ObjectInputStream(inputStream);\n boardManager = (BoardManager) input.readObject();\n inputStream.close();\n }\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n } catch (ClassNotFoundException e) {\n Log.e(\"login activity\", \"File contained unexpected data type: \" + e.toString());\n }\n }", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "private void loadApplication() throws Exception{\n\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(this.appfile));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"Date\")){\n\t\t\t\tline = br.readLine();\n\t\t\t\tsetDate(line);\n\t\t\t}\n\t\t\telse if (line.equals(\"GPA\")){\n\t\t\t\tline = br.readLine();\n\t\t\t\tdouble newGPA = Double.parseDouble(line);\n\t\t\t\tsetGPA(newGPA);\n\t\t\t}\n\t\t\telse if (line.equals(\"Education Level\")){\n\t\t\t\tline = br.readLine();\n\t\t\t\tsetEducationLevel(line);\n\t\t\t}\n\t\t\telse if (line.equals(\"Status\")){\n\t\t\t\tline = br.readLine();\n\t\t\t\tsetStatus(line);\n\t\t\t}\n\t\t\telse if (line.equals(\"Priority\")){\n\t\t\t\tline = br.readLine();\n\t\t\t\tint newPriority = Integer.parseInt(line);\n\t\t\t\tsetPriority(newPriority);\n\t\t\t}\n\t\t}\n\t\tbr.close();\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}", "public static void load(Context context) throws IOException {\n // read the file\n String raw = File.readFile(\"vaccine.txt\", context);\n\n // clear the map and load contents of file into the map\n map.clear();\n for (String line : raw.split(\"\\n\")) {\n if (line.equals(\"\")) {\n continue;\n }\n String[] data = line.split(\",\");\n if (data[0].equals(\"\") || data.length != 3) {\n continue;\n }\n map.put(data[0], Boolean.getBoolean(data[1]));\n dateMap.put(data[0], data[2]);\n }\n }", "@Override\n public void load() {\n File file = new File(path + \"/\" + \"rooms.txt\"); //Hold file of the riddles. riddles.txt should be placed in the root folder.\n Scanner scanner = null; //if the scanner can't load the file.\n\n try {\n scanner = new Scanner(file); // scanner for the file\n } catch (FileNotFoundException ex) {\n try {\n //if not such file exists create it.\n file.createNewFile();\n } catch (IOException ex1) {\n Logger.getLogger(LoadRooms.class.getName()).log(Level.SEVERE, null, ex1);\n return;\n }\n }\n while (scanner.hasNextLine()) { //if scanner har fundt next line of text in the file\n switch (scanner.nextLine()) {\n case \"[Room]:\": //if scanner fundt \"[Room]:\" case, get rooms attributes\n state = LOAD_ATTRIBUTES;\n break;\n case \"[Connections]:\"://if scanner fundt \"[Connections]:\" case, get connections from file\n state = LOAD_CONNECTIONS;\n break;\n\n default:\n break;\n }\n switch (state) {\n case LOAD_ATTRIBUTES: //case, that get rooms attributes and add them to room_list\n String name = scanner.nextLine();\n int timeToTravel = Integer.parseInt(scanner.nextLine());\n boolean isLocked = Boolean.parseBoolean(scanner.nextLine());\n boolean isTransportRoom = Boolean.parseBoolean(scanner.nextLine());\n Room newRoom = new Room(name, timeToTravel, isLocked, isTransportRoom);\n if (newRoom.isTransportRoom()) {\n newRoom.setExit(\"exit\", newRoom);\n newRoom.setExitDir(\"west\", newRoom);\n }\n rooms_list.add(newRoom);\n break;\n case LOAD_CONNECTIONS: //case that get connections betweem rooms in game\n while (scanner.hasNextLine()) {\n String[] string = scanner.nextLine().split(\",\");\n Room room = this.getRoomByName(string[0]);\n room.setExit(string[1], this.getRoomByName(string[1]));\n if (!this.getRoomByName(string[1]).isTransportRoom() && !room.isTransportRoom()) {\n room.setExitDir(string[2], getRoomByName(string[1]));\n }\n }\n break;\n default:\n break;\n }\n }\n }", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void readHistoryData()\n throws FileNotFoundException {\n File file = new File(HISTORY_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n StringBuilder message = new StringBuilder();\n int index = 1;\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n message.append(\"\\n\\t\" + index + \". \" + line);\n index++;\n }\n scanner.close();\n\n history = message.toString();\n }", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "public static void load() {\n }", "@Override\n \tpublic DataHolder loadFile(IMonitor mon) throws ScanFileHolderException {\n \t\tBufferedReader reader = null;\n \n \t\ttry {\n \t\t\treader = new BufferedReader(new FileReader(fileName));\n \t\t\tString dataStr;\n \t\t\tString previousHeaderLine = \"\";\n \t\t\tboolean readingHeader = true;\n \t\t\tboolean readingFooter = false;\n \t\t\tList<?>[] columnData = null;\n \t\t\twhile ((dataStr = reader.readLine()) != null) {\n \n \t\t\t\t// ignore blank\n \t\t\t\tif (dataStr.isEmpty()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// first block of commented out lines are the header\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && readingHeader) {\n \t\t\t\t\treadHeaderLine(dataStr);\n \t\t\t\t\tpreviousHeaderLine = dataStr;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\treadingHeader = false;\n \n \t\t\t\t// next block of commented out lines after any break in comments will be the footer\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && !readingHeader) {\n \t\t\t\t\treadingFooter = true;\n \t\t\t\t\treadFooterLine(dataStr);\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// if get here then its data\n \t\t\t\tif (readingFooter) {\n \t\t\t\t\t// should not get here after reading a block of commented out lines for a second time: invalid\n \t\t\t\t\t// format\n \t\t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\");\n \t\t\t\t}\n \n \t\t\t\t// the first time we get here, the previous line should have been the header\n \t\t\t\tif (columnData == null && datasetNames.size() == 0) {\n \t\t\t\t\tcolumnData = parseHeaderString(previousHeaderLine);\n \t\t\t\t}\n \n\t\t\t\tparseColumns(splitLine(dataStr.trim()), columnData);\n \t\t\t}\n \n \t\t\tString[] names = datasetNames.toArray(new String[]{});\n \t\t\tDataHolder result = new DataHolder();\n \t\t\ttry {\n \t\t\t\tconvertToDatasets(result, names, columnData, isStoreStringValues(), isUseImageLoaderForStrings(), (new File(this.fileName)).getParent());\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.warn(e.getMessage());\n \t\t\t}\n \n \t\t\treturn result;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ScanFileHolderException(\"XasAsciiLoader.loadFile exception loading \" + fileName, e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\", e);\n \t\t\t}\n \t\t}\n \t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "private void loadTimingInformation()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile loadFile = new File(\"asdasda.save\");\n\t\t\tif(loadFile.exists())\n\t\t\t{\n\t\t\t\tqueryList.clear();\n\t\t\t\tScanner textScanner = new Scanner(loadFile);\n\t\t\t\twhile(textScanner.hasNext())\n\t\t\t\t{\n\t\t\t\t\tString query = textScanner.nextLine();\n\t\t\t\t\tlong queryTime = Long.parseLong(textScanner.nextLine());\n\t\t\t\t\tqueryList.add(new QueryInfo(query, queryTime));\n\t\t\t\t}\n\t\t\t\ttextScanner.close();\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), queryList.size() + \" QueryInfo objects were loaded into the application\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), \"File not present. No QueryInfo objects loaded\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException currentError)\n\t\t{\n\t\t\tdataController.displayErrors(currentError);\n\t\t}\n\t}", "abstract public Entity[] getWorkDataFromFile(String filename)\n \tthrows IOException, InvalidStatusException;", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}", "void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}", "@Override\n public void load(String state, ConversationData conversationData) {\n }", "public static void readFile(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (Reader reader = new FileReader(filename)) {\n JSONObject jo = (JSONObject) jsonParser.parse(reader);\n\n SHORT_PERIOD = (int) (long) jo.get(\"shortPeriod\");\n LONG_PERIOD = (int) (long) jo.get(\"longPeriod\");\n AVG_AMOUNT_PERIOD = (int) (long) jo.get(\"avgAmountPeriod\");\n SESSION_INTERVAL = (int) (long) jo.get(\"sessionInterval\");\n\n\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.75374633", "0.649249", "0.6159862", "0.6015165", "0.5997316", "0.5995637", "0.59915054", "0.59690434", "0.59608924", "0.5943432", "0.5943432", "0.59282273", "0.5900355", "0.58984244", "0.5875288", "0.58671004", "0.58258563", "0.5809736", "0.5809736", "0.5794124", "0.5786455", "0.5774019", "0.5760547", "0.5745157", "0.57382894", "0.57378566", "0.5736766", "0.5708895", "0.56952876", "0.56735265", "0.56644464", "0.5659372", "0.5642195", "0.56301445", "0.5627126", "0.5613536", "0.559936", "0.55904704", "0.5588727", "0.5588727", "0.55819434", "0.557998", "0.5569866", "0.556347", "0.5553899", "0.5545128", "0.5543353", "0.5538676", "0.55378103", "0.5534067", "0.5530637", "0.5525128", "0.552454", "0.552348", "0.5522293", "0.5515477", "0.55086005", "0.5500933", "0.5488063", "0.5467952", "0.54633266", "0.5456441", "0.5454213", "0.54464674", "0.54437786", "0.54380125", "0.54380125", "0.54340637", "0.54278183", "0.5418183", "0.5417987", "0.5416111", "0.5415971", "0.5409305", "0.54085076", "0.5399488", "0.5397754", "0.53977394", "0.5396174", "0.5394982", "0.53918123", "0.5388847", "0.5381323", "0.5376135", "0.5375228", "0.53677493", "0.53668416", "0.53606796", "0.53595996", "0.53579986", "0.53552186", "0.53552186", "0.5342782", "0.5341658", "0.5337926", "0.5337926", "0.5337926", "0.5334644", "0.5327914", "0.53275394", "0.5326869" ]
0.0
-1
method to load the data from the movie file
public static int leerPeliculas(String[] peliculas,String[] tipoPeliculas,double[]recaudaciones,int [] salas,String [] funciones) throws IOException{ File file = new File("peliculas.txt"); Scanner arch2 = new Scanner(file); int i = 0; while ( arch2.hasNextLine()){ String linea = arch2.nextLine(); String [] partes = linea.split(","); String pelicula = partes[0]; String t = partes[1]; double rec = Double.parseDouble(partes[2]); for(int j = 3;j<partes.length;j+=2){ peliculas[i]= pelicula; tipoPeliculas[i] = t; recaudaciones[i] = rec; int n = Integer.parseInt(partes[j]); String f = partes[j+1]; salas[i] = n; funciones[i] = f; i++; } i ++; } arch2.close(); return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadPanoramaMovie(String filename) {\n\t\tfinal int driveMultFactor = 2;\n\t\tdouble[] vector = new double[3];\n\t\tdouble[] quaternion = new double[4];\n\t\t\n\t\tArrayList endpoints = new ArrayList();\n\t\ttry {\n\t\t\tFile movieFile = new File(filename);\n\t\t\tExcelCSVReader csvReader = new ExcelCSVReader(new FileReader(movieFile));\n\t\t\tString[] lineItems;\n\t\t\twhile ((lineItems = csvReader.readLine()) != null) {\n\t\t\t\tif (lineItems.length < 7) {\n\t\t\t\t\tthrow new Exception(\"Movie file line did not have enough entries.\");\n\t\t\t\t}\n\t\t\t\tif (!lineItems[0].trim().equalsIgnoreCase(\"endpoint\")) {\n\t\t\t\t\tthrow new Exception(\"Movie file line did not start with \\\"endpoint\\\".\");\n\t\t\t\t}\n\t\t\t\tPanMovieEndpoint endpoint = new PanMovieEndpoint();\n\t\t\t\tendpoint.spacecraftId = lineItems[1];\n\t\t\t\tendpoint.location = new LocationCounter(lineItems[2], lineItems[3]);\n\t\t\t\tendpoint.viewAz = Float.parseFloat(lineItems[4]);\n\t\t\t\tendpoint.viewEl = Float.parseFloat(lineItems[5]);\n\t\t\t\tendpoint.viewVFOV = Float.parseFloat(lineItems[6]);\n\t\t\t\tendpoint.frames = -1;\n\t\t\t\tendpoint.postFrames = -1;\n\t\t\t\tif (lineItems.length > 8) {\n\t\t\t\t\tint site = Integer.parseInt(lineItems[7]);\n\t\t\t\t\tint drive = Integer.parseInt(lineItems[8]);\n\t\t\t\t\tif (site >=0 && drive >= 0) {\n\t\t\t\t\t\tendpoint.roverModelLocation = new LocationCounter(lineItems[7], lineItems[8]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (lineItems.length > 9) {\n\t\t\t\t\tendpoint.frames = Integer.parseInt(lineItems[9]);\n\t\t\t\t}\n\t\t\t\tendpoints.add(endpoint);\n\t\t\t}\n\t\t\t// convert position endpoint to individual movie 'frames'\n\t\t\tArrayList frames = new ArrayList();\n\t\t\tPanMovieEndpoint endpoint;\n\t\t\tPanMovieEndpoint nextEndpoint;\n\t\t\t//int locationIndex;\n\t\t\t//int nextLocationIndex;\n\t\t\tfor (int n=0; n<endpoints.size()-1; n++) {\n\t\t\t\tendpoint = (PanMovieEndpoint) endpoints.get(n);\n\t\t\t\tnextEndpoint = (PanMovieEndpoint) endpoints.get(n+1);\n//\t\t\t\tlocationIndex = locationList.findIndexOfLocation(endpoint.location);\n//\t\t\t\tnextLocationIndex = locationList.findIndexOfLocation(nextEndpoint.location);\n\t\t\t\tfloat dAz = fixAzimuth(nextEndpoint.viewAz - endpoint.viewAz);\t\t\t\t\n\t\t\t\tfloat dEl = (nextEndpoint.viewEl - endpoint.viewEl);\n\t\t\t\tfloat dVFOV = (nextEndpoint.viewVFOV - endpoint.viewVFOV);\n\t\t\t\tint dDrive = LocationCounter.driveDiff(endpoint.location, nextEndpoint.location, allLocations);\n\t\t\t\tint dModelDrive = 0;\n\t\t\t\tif (endpoint.roverModelLocation != null && nextEndpoint.roverModelLocation != null) {\n\t\t\t\t\tdModelDrive = LocationCounter.driveDiff(endpoint.roverModelLocation, nextEndpoint.roverModelLocation, allLocations);\n\t\t\t\t}\n\t\t\t\tint numFrames = nextEndpoint.frames;\n\t\t\t\tif (numFrames < 0) {\n\t\t\t\t\tif (dModelDrive != 0) {\n\t\t\t\t\t\tnumFrames = Math.abs(dModelDrive) * driveMultFactor;\n\t\t\t\t\t}\n\t\t\t\t\telse if (dDrive != 0) {\n\t\t\t\t\t\tnumFrames = Math.abs(dDrive) * driveMultFactor;\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tnumFrames = (int) Math.sqrt(dAz*dAz + dEl*dEl + dVFOV*dVFOV) * 4;\n\t\t\t\t\t\tif (numFrames < 1) {\n\t\t\t\t\t\t\tnumFrames = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (dModelDrive != 0 && nextEndpoint.frames < 0) {\n\t\t\t\t\t// rover model drive; automatic length\n\t\t\t\t\tint frameNum = 0;\n\t\t\t\t\tint startIndex = Arrays.binarySearch(allLocations, endpoint.roverModelLocation);\n\t\t\t\t\tint endIndex = Arrays.binarySearch(allLocations, nextEndpoint.roverModelLocation);\n\t\t\t\t\tif (startIndex < 0 || endIndex < 0) {\n\t\t\t\t\t\tSystem.out.println(\"invalid rover model location\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint indexInc = startIndex < endIndex ? 1 : -1;\n\t\t\t\t\tfor (int i = startIndex; i != endIndex; i = i + indexInc) {\n\t\t\t\t\t\tLocationCounter modelLocation1 = allLocations[i];\n\t\t\t\t\t\tLocationCounter modelLocation2 = allLocations[i + indexInc];\n\t\t\t\t\t\tLocationMetadataEntry entry1 = workspace.getLocationMetadata().getEntry(selectedSpacecraftId, modelLocation1);\n\t\t\t\t\t\tLocationMetadataEntry entry2 = workspace.getLocationMetadata().getEntry(selectedSpacecraftId, modelLocation2);\n\t\t\t\t\t\t//System.out.println(\"entry1 \"+entry1.location.site+\" \"+entry1.location.drive);\n\t\t\t\t\t\t//System.out.println(\"entry2 \"+entry2.location.site+\" \"+entry2.location.drive);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!entry1.has_site_rover_origin_offset_vector || !entry2.has_site_rover_origin_offset_vector)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t//System.out.println(\"-- \"+entry1.rover_origin_offset_vector_a+\" \"+entry1.rover_origin_offset_vector_b+\" \"\n\t\t\t\t\t\t//\t\t+entry1.rover_origin_offset_vector_c+\" -> \"+entry2.rover_origin_offset_vector_a+\" \"\n\t\t\t\t\t\t//\t\t+entry2.rover_origin_offset_vector_b+\" \"+entry2.rover_origin_offset_vector_c);\n\t\t\t\t\t\tint delta = Math.abs(LocationCounter.driveDiff(modelLocation1, modelLocation2, allLocations)) * driveMultFactor;\n\t\t\t\t\t\tfor (int j=0; j < delta; j++) {\n\t\t\t\t\t\t\t// interpolate view location\n\t\t\t\t\t\t\tLocationCounter viewLocation = endpoint.location;\t\t\t\t\t\n\t\t\t\t\t\t\tif (dDrive > 0) {\n\t\t\t\t\t\t\t\tint driveAmount = frameNum * dDrive / numFrames;\n\t\t\t\t\t\t\t\tviewLocation = LocationCounter.driveAdd(viewLocation, driveAmount, allLocations);\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// viewLocation is resolved to existing view location at display time\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// new PanPosition\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPanPosition position = new PanPosition();\n\t\t\t\t\t\t\tposition.spacecraftId = endpoint.spacecraftId;\n\t\t\t\t\t\t\tposition.location = viewLocation;\n\t\t\t\t\t\t\tposition.viewAz = fixAzimuth((dAz * frameNum / numFrames) + endpoint.viewAz);\n\t\t\t\t\t\t\tposition.viewEl = (dEl * frameNum / numFrames) + endpoint.viewEl;\n\t\t\t\t\t\t\tposition.viewVFOV = (dVFOV * frameNum / numFrames) + endpoint.viewVFOV;\n\t\t\t\t\t\t\tposition.panMovieEndpoint = endpoint;\n\t\t\t\t\t\t\tposition.roverModelLocationMetadata = new LocationMetadataEntry(selectedSpacecraftId, entry1.location.site, entry1.location.drive);\n\t\t\t\t\t\t\tdouble ratio = ((double)j) / delta;\n\t\t\t\t\t\t\tdouble da = (entry2.rover_origin_offset_vector_a-entry1.rover_origin_offset_vector_a);\n\t\t\t\t\t\t\tdouble db = (entry2.rover_origin_offset_vector_b-entry1.rover_origin_offset_vector_b);\n\t\t\t\t\t\t\tdouble dc = (entry2.rover_origin_offset_vector_c-entry1.rover_origin_offset_vector_c);\n\t\t\t\t\t\t\tdouble dist = Math.sqrt((da*da)+(db*db)+(dc*dc));\n\t\t\t\t\t\t\tinterpolateVector(entry1.rover_origin_offset_vector_a, entry1.rover_origin_offset_vector_b, entry1.rover_origin_offset_vector_c, \n\t\t\t\t\t\t\t\t\tentry2.rover_origin_offset_vector_a, entry2.rover_origin_offset_vector_b, entry2.rover_origin_offset_vector_c, \n\t\t\t\t\t\t\t\t\tvector, ratio);\n\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_a = vector[0];\n\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_b = vector[1];\n\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_c = vector[2];\n\t\t\t\t\t\t\t//System.out.println(\"\"+vector[0]+\" \"+vector[1]+\" \"+vector[2]);\n\t\t\t\t\t\t\tif (dist < 1.0) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tinterpolateQuaternion(entry1.rover_origin_rotation_quaternian_a, entry1.rover_origin_rotation_quaternian_b, \n\t\t\t\t\t\t\t\t\t\tentry1.rover_origin_rotation_quaternian_c, entry1.rover_origin_rotation_quaternian_d,\n\t\t\t\t\t\t\t\t\t\tentry2.rover_origin_rotation_quaternian_a, entry2.rover_origin_rotation_quaternian_b,\n\t\t\t\t\t\t\t\t\t\tentry2.rover_origin_rotation_quaternian_c, entry2.rover_origin_rotation_quaternian_d,\n\t\t\t\t\t\t\t\t\t\tquaternion, ratio);\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.has_site_rover_origin_offset_vector = true;\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_a = quaternion[0];\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_b = quaternion[1];\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_c = quaternion[2];\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_d = quaternion[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.has_site_rover_origin_offset_vector = true;\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_a = entry2.rover_origin_rotation_quaternian_a;\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_b = entry2.rover_origin_rotation_quaternian_b;\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_c = entry2.rover_origin_rotation_quaternian_c;\n\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_d = entry2.rover_origin_rotation_quaternian_d;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tframes.add(position);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tframeNum++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// no rover model drive\n\t\t\t\t\tfor (int frameNum=0; frameNum<numFrames; frameNum++) {\n\t\t\t\t\t\t// interpolate view location\n\t\t\t\t\t\tLocationCounter viewLocation = endpoint.location;\t\t\t\t\t\n\t\t\t\t\t\tif (dDrive > 0) {\n\t\t\t\t\t\t\tint driveAmount = frameNum * dDrive / numFrames;\n\t\t\t\t\t\t\tviewLocation = LocationCounter.driveAdd(viewLocation, driveAmount, allLocations);\t\t\t\t\t\t\n\t\t\t\t\t\t\t// viewLocation is resolved to existing view location at display time\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// new PanPosition\n\t\t\t\t\t\tPanPosition position = new PanPosition();\n\t\t\t\t\t\tposition.spacecraftId = endpoint.spacecraftId;\n\t\t\t\t\t\tposition.location = viewLocation;\n\t\t\t\t\t\tposition.viewAz = fixAzimuth((dAz * frameNum / numFrames) + endpoint.viewAz);\n\t\t\t\t\t\tposition.viewEl = (dEl * frameNum / numFrames) + endpoint.viewEl;\n\t\t\t\t\t\tposition.viewVFOV = (dVFOV * frameNum / numFrames) + endpoint.viewVFOV;\n\t\t\t\t\t\tposition.panMovieEndpoint = endpoint;\n\t\t\t\t\t\tposition.roverModelLocation = endpoint.roverModelLocation;\t\t\t\t\t\t\n\t\t\t\t\t\t// interpolate model physical position\n\t\t\t\t\t\t// even the the rover model doesn't move here, the model may be shown, and \n\t\t\t\t\t\t// we still may need to interpolate\n\t\t\t\t\t\tif (endpoint.roverModelLocation != null && nextEndpoint.roverModelLocation != null) {\n\t\t\t\t\t\t\tposition.roverModelLocation = endpoint.roverModelLocation;\n\t\t\t\t\t\t\tif (dModelDrive > 0) {\n\t\t\t\t\t\t\t\tint driveAmount = frameNum * dModelDrive / numFrames;\n\t\t\t\t\t\t\t\tposition.roverModelLocation = LocationCounter.driveAdd(position.roverModelLocation, driveAmount, allLocations);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tint modelIndex = Arrays.binarySearch(allLocations, position.roverModelLocation);\n\t\t\t\t\t\t\tif (modelIndex >= 0) {\n\t\t\t\t\t\t\t\tLocationMetadataEntry entry = workspace.getLocationMetadata().getEntry(selectedSpacecraftId, allLocations[modelIndex]);\n\t\t\t\t\t\t\t\tif (entry != null && entry.has_site_rover_origin_offset_vector) {\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata = new LocationMetadataEntry(selectedSpacecraftId, position.roverModelLocation.site, position.roverModelLocation.drive);\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_a = entry.rover_origin_offset_vector_a;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_b = entry.rover_origin_offset_vector_b;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_c = entry.rover_origin_offset_vector_c;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.has_site_rover_origin_offset_vector = true;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_a = entry.rover_origin_rotation_quaternian_a;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_b = entry.rover_origin_rotation_quaternian_b;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_c = entry.rover_origin_rotation_quaternian_c;\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_d = entry.rover_origin_rotation_quaternian_d;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmodelIndex = -modelIndex -1;\n\t\t\t\t\t\t\t\tif (modelIndex > 0 && modelIndex < allLocations.length) {\n\t\t\t\t\t\t\t\t\tLocationCounter modelLocation1 = allLocations[modelIndex-1];\n\t\t\t\t\t\t\t\t\tLocationCounter modelLocation2 = allLocations[modelIndex];\n\t\t\t\t\t\t\t\t\tLocationMetadataEntry entry1 = workspace.getLocationMetadata().getEntry(selectedSpacecraftId, modelLocation1);\n\t\t\t\t\t\t\t\t\tLocationMetadataEntry entry2 = workspace.getLocationMetadata().getEntry(selectedSpacecraftId, modelLocation2);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata = new LocationMetadataEntry(selectedSpacecraftId, position.roverModelLocation.site, position.roverModelLocation.drive);\n\t\t\t\t\t\t\t\t\tint diff = LocationCounter.driveDiff(modelLocation1, position.roverModelLocation, allLocations);\n\t\t\t\t\t\t\t\t\tint diff2 = LocationCounter.driveDiff(modelLocation1, modelLocation2, allLocations);\n\t\t\t\t\t\t\t\t\tdouble ratio = ((double)diff) / diff2;\n\t\t\t\t\t\t\t\t\tdouble da = (entry2.rover_origin_offset_vector_a-entry1.rover_origin_offset_vector_a);\n\t\t\t\t\t\t\t\t\tdouble db = (entry2.rover_origin_offset_vector_b-entry1.rover_origin_offset_vector_b);\n\t\t\t\t\t\t\t\t\tdouble dc = (entry2.rover_origin_offset_vector_c-entry1.rover_origin_offset_vector_c);\n\t\t\t\t\t\t\t\t\tdouble dist = Math.sqrt((da*da)+(db*db)+(dc*dc));\n\t\t\t\t\t\t\t\t\tinterpolateVector(entry1.rover_origin_offset_vector_a, entry1.rover_origin_offset_vector_b, entry1.rover_origin_offset_vector_c, \n\t\t\t\t\t\t\t\t\t\t\tentry2.rover_origin_offset_vector_a, entry2.rover_origin_offset_vector_b, entry2.rover_origin_offset_vector_c, \n\t\t\t\t\t\t\t\t\t\t\tvector, ratio);\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_a = vector[0];\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_b = vector[1];\n\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_offset_vector_c = vector[2];\n\t\t\t\t\t\t\t\t\tif (dist < 1.0) {\n\t\t\t\t\t\t\t\t\t\tinterpolateQuaternion(entry1.rover_origin_rotation_quaternian_a, entry1.rover_origin_rotation_quaternian_b, \n\t\t\t\t\t\t\t\t\t\t\t\tentry1.rover_origin_rotation_quaternian_c, entry1.rover_origin_rotation_quaternian_d,\n\t\t\t\t\t\t\t\t\t\t\t\tentry2.rover_origin_rotation_quaternian_a, entry2.rover_origin_rotation_quaternian_b,\n\t\t\t\t\t\t\t\t\t\t\t\tentry2.rover_origin_rotation_quaternian_c, entry2.rover_origin_rotation_quaternian_d,\n\t\t\t\t\t\t\t\t\t\t\t\tquaternion, ratio);\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.has_site_rover_origin_offset_vector = true;\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_a = quaternion[0];\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_b = quaternion[1];\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_c = quaternion[2];\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_d = quaternion[3];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.has_site_rover_origin_offset_vector = true;\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_a = entry2.rover_origin_rotation_quaternian_a;\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_b = entry2.rover_origin_rotation_quaternian_b;\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_c = entry2.rover_origin_rotation_quaternian_c;\n\t\t\t\t\t\t\t\t\t\tposition.roverModelLocationMetadata.rover_origin_rotation_quaternian_d = entry2.rover_origin_rotation_quaternian_d;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tframes.add(position);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tPanPosition[] movieFrames = new PanPosition[frames.size()];\n\t\t\tthis.movieFrames = (PanPosition[]) frames.toArray(movieFrames);\n\t\t\tthis.movieFrameIndex = 0;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tUnknownExceptionDialog.openDialog(getShell(), \"Error reading movie file\", e);\n\t\t\tSystem.err.println(e.toString());\n\t\t}\n\t}", "void loadData();", "void loadData();", "public void load() ;", "void onLoadMovie(Movie movie);", "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "private void loadMoviesData()\n {\n showMoviesDataView();\n new FetchMovieData(this, new FetchMovieDataCompleteListener()).execute(MOVIE_DB_URL_POPULAR+API_Key);\n\n }", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "public Moment[] loadMomentsFile(){\n //Log.v(\"loadMain\", getApplicationContext().getFilesDir().getAbsolutePath());\n FileInputStream fin = null;\n Moment []pup = null;\n try {\n fin = openFileInput(MomentsFragment.MOMENTS_FILENAME);\n ObjectInputStream ois = new ObjectInputStream(fin);\n pup = (Moment [])ois.readObject();\n ois.close();\n fin.close();\n }catch (FileNotFoundException e) {\n //e.printStackTrace();\n Log.w(LOG_TAG, \"File not found, will be created once data is inserted\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (pup == null)\n return new Moment[0];\n return pup;\n }\n }", "protected abstract void loadData();", "public void read()\r\n\t{\r\n\t\tScanner input = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint i = 0;\r\n\r\n\t\t\tinput = new Scanner(new File(\"netflix.csv\")).useDelimiter(\"[,\\r\\n]\");\r\n\r\n\t\t\twhile (input.hasNext())\r\n\t\t\t{\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tString title = input.next();\r\n\r\n\t\t\t\tString rating = input.next();\r\n\r\n\t\t\t\tint year = Integer.parseInt(input.next());\r\n\r\n\t\t\t\tint score = Integer.parseInt(input.next());\r\n\t\t\t\tMovie a = new Movie(title, rating, year, score);\r\n\t\t\t\tdata[i] = a;\r\n\t\t\t\ti++;\r\n\t\t\t\tactualSize++;\r\n\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void load( String fileName ) {\n System.out.println( \"Loading: \" + fileName );\n this.name = fileName;\n Object obj = null;\n try {\n FileInputStream fis = new FileInputStream(fileName);\n ObjectInputStream oos = new ObjectInputStream( fis );\n obj = oos.readObject();\n dofs = (double[][]) obj;\n oos.close();\n fis.close();\n } catch ( Exception e ) {\n e.printStackTrace();\n } \n }", "public void load(String filename) {\n\t\tsetup();\n\t\tparseOBJ(getBufferedReader(filename));\n\t}", "public abstract void loadData();", "public abstract void loadData();", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "public void load() {\n\t\n\t\tdataTable = new HashMap();\n\t\t\n\t\tArrayList musicArrayList = null;\n\t\tStringTokenizer st = null;\n\n\t\tMusicRecording myRecording;\n\t\tString line = \"\";\n\n\t\tString artist, title;\n\t\tString category, imageName;\n\t\tint numberOfTracks;\n\t\tint basePrice;\n\t\tdouble price;\n\n\t\tTrack[] trackList;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tlog(\"Loading File: \" + FILE_NAME + \"...\");\n\t\t\tBufferedReader inputFromFile = new BufferedReader(new FileReader(FILE_NAME));\n\t\t\t\n\t\t\t// read until end-of-file\n\t\t\twhile ( (line = inputFromFile.readLine()) != null ) {\t\t\t\n\t\t\t\n\t\t\t\t// create a tokenizer for a comma delimited line\n\t\t\t\tst = new StringTokenizer(line, \",\");\n\t\t\n\t\t\t\t// Parse the info line to read following items formatted as\n\t\t\t\t// - the artist, title, category, imageName, number of tracks\n\t\t\t\t//\n\t\t\t\tartist = st.nextToken().trim();\n\t\t\t\ttitle = st.nextToken().trim();\n\t\t\t\tcategory = st.nextToken().trim();\n\t\t\t\timageName = st.nextToken().trim();\n\t\t\t\tnumberOfTracks = Integer.parseInt(st.nextToken().trim());\n\t\t\t\t\t\t\n\t\t\t\t// read all of the tracks in\n\t\t\t\ttrackList = readTracks(inputFromFile, numberOfTracks);\n\n\t\t\t\t// select a random price between 9.99 and 15.99\n\t\t\t\tbasePrice = 9 + (int) (Math.random() * 7);\n\t\t\t\tprice = basePrice + .99;\n\n\t\t\t\t// create the music recording\n\t\t\t\tmyRecording = new MusicRecording(artist, trackList, title, \n\t\t\t\t\t\t\t\t\t\t\t\t price, category, imageName);\n\n\t\t\t\t// check to see if we have information on this category\n\t\t\t\tif (dataTable.containsKey(category)) {\n\t\t\t\t\n\t\t\t\t\t// get the list of recordings for this category\n\t\t\t\t\tmusicArrayList = (ArrayList) dataTable.get(category); \t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\n\t\t\t\t\t// this is a new category. simply add the category\n\t\t\t\t\t// to our dataTable\n\t\t\t\t\tmusicArrayList = new ArrayList();\n\t\t\t\t\tdataTable.put(category, musicArrayList);\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// add the recording\n\t\t\t\tmusicArrayList.add(myRecording);\n\t\t\t\t\n\t\t\t\t// move ahead and consume the line separator\n\t\t\t\tline = inputFromFile.readLine();\n\t\t\t}\n\n\t\t\tinputFromFile.close();\n\t\t\tlog(\"File loaded successfully!\");\n\t\t\tlog(\"READY!\\n\");\n\n\t\t}\n\t\tcatch (FileNotFoundException exc) {\n\t\t\tlog(\"Could not find the file \\\"\" + FILE_NAME + \"\\\".\");\n\t\t\tlog(\"Make sure it is in the current directory.\");\n\t\t\tlog(\"========>>> PLEASE CONTACT THE INSTRUCTOR.\\n\\n\\n\");\n\t\t\tlog(exc);\n\t\t\t\n\t\t}\n\t\tcatch (IOException exc) {\n\t\t\tlog(\"IO error occurred while reading file: \" + FILE_NAME);\n\t\t\tlog(\"========>>> PLEASE CONTACT THE INSTRUCTOR.\\n\\n\\n\");\n\t\t\tlog(exc);\n\n\t\t}\n\t\n\t}", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void load(File file);", "public void load(File source);", "@Override\n public List<Movie> loadInBackground() {\n MovieDataExtractor movieDataExtractor = new MovieDataExtractor(getContext());\n List<Movie> movies = movieDataExtractor.extractFeatureFromJson();\n moviesList = movies;\n return moviesList;\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "public void load();", "public void load();", "void load() {\n String uri =\"/storage/sdcard0/Download/bbb_sunflower_1080p_30fps_normal.mp4\";\n //String uri = \"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov\";\n put(OPT_URI, sPref.getString(\"OPT_URI\", uri));\n put(OPT_RTSP_PROTOCOL,sPref.getString(\"OPT_RTSP_PROTOCOL\", \"tcp\"));\n put(OPT_PACKET_BUFFER_SIZE,sPref.getInt(\"OPT_PACKET_BUFFER_SIZE\", 10));\n put(OPT_IS_FLUSH,sPref.getBoolean(\"OPT_IS_FLUSH\", true));\n put(OPT_IS_MAX_FPS,sPref.getBoolean(\"OPT_IS_MAX_FPS\", true));\n put(OPT_IS_SKIP_PACKET, sPref.getBoolean(\"OPT_IS_SKIP_PACKET\", true));\n put(OPT_IS_LOOP_PLAYING, sPref.getBoolean(\"OPT_IS_LOOP_PLAYING\", true));\n put(OPT_IS_WINDOW_NATIVE, sPref.getBoolean(\"OPT_IS_WINDOW_NATIVE\", false));\n put(OPT_IS_WINDOW_GLES, sPref.getBoolean(\"OPT_IS_WINDOW_GLES\", true));\n put(OPT_IS_VIDEO_QUEUE, sPref.getBoolean(\"OPT_IS_VIDEO_QUEUE\", false));\n }", "void load();", "void load();", "public Music loadMusic(String fileName);", "public void\tload(String fileName) throws IOException;", "void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}", "private void parseMovie(String url) {\n\t\tBoolean is3D = false;\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(WOLFF + url).get();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\t\t\n\n\t\tString movietitle = doc.select(\"#wrapper_left h2\").first().text().trim();\n\t\tSystem.out.println(\"Movie: \" + movietitle);\n\t\t\n\t\t// check if it is 3D movie\n\t\tif(url.contains(\"-3d\")) {\n\t\t\tis3D = true;\n\t\t}\n\n\t\t//create resource movie with the type 'Movie' and data property 'title'\n\t\tResource movie = m.createResource(MOVIE + url.replace(\"/film/\", \"\"));\n\t\tmovie.addProperty(RDF.type, m.getProperty(NS + \"Movie\"))\n\t\t\t .addProperty(m.getProperty(NS + \"title\"), movietitle);\n\n\t\t//if it is 3D movie..\n\t\tif(is3D)\n\t\t\tmovie.addProperty(m.getProperty(NS + \"hasPresentation\"), m.getResource(NS + \"3D\"));\n\n\t\t// does it have corresponding dbpedia resource?\n\t\tString mResult;\n\t\tif((mResult = SparqlQuery.movieInDbpediaEn(movietitle)) != null) {\n\t\t\ttemp = ResourceFactory.createResource(mResult);\n\t\t\tmovie.addProperty(OWL.sameAs, temp);\n\t\t} //else if((mResult = SparqlQuery.movieInDbpediaNl(movietitle)) != null) {\n//\t\t\ttemp = ResourceFactory.createResource(mResult);\n//\t\t\tmovie.addProperty(OWL.sameAs, temp);\n//\t\t}else if((mResult = SparqlQuery.movieInDbpediaDe(movietitle)) != null) {\n//\t\t\ttemp = ResourceFactory.createResource(mResult);\n//\t\t\tmovie.addProperty(OWL.sameAs, temp);\n//\t\t}\n//\t\t\n\t\t//parse sidebar information\n\t\tElements sidebar = doc.select(\".sidebar_container\").get(1).select(\".table_view tr td\");\n\t\t\n\t\tfor (Element element:sidebar) {\n\t\t\tswitch (element.select(\"strong\").text()) {\n\t\t\t//get all actors\n\t\t\tcase \"Acteurs\":\n\t\t\t\tString[] actors = element.text().substring(8).split(\", \"); //Remove \"Acteurs\" from string\n\t\t\t\tfor(String actor : actors) {\n\t\t\t\t\tResource person = m.createResource(PERSON + actor.replace(\" \", \"_\"));\n\t\t\t\t\tperson.addProperty(RDF.type, m.getProperty(NS + \"Person\"))\n\t\t\t\t\t\t .addProperty(m.getProperty(NS + \"name\"), actor.trim());\n\t\t\t\t\tmovie.addProperty(m.getProperty(NS + \"hasActor\"), person);\n\t\t\t\t\t\n\t\t\t\t\t//check if the actor has dbpedia page. Describe as sameAs if true\n\t\t\t\t\tString qResult;\n\t\t\t\t\tif((qResult = SparqlQuery.personInDbpediaEn(actor)) != null) { // in dbpedia.org\n\t\t\t\t\t\ttemp = ResourceFactory.createResource(qResult);\n\t\t\t\t\t\tperson.addProperty(OWL.sameAs, temp);\n\t\t\t\t\t} //else if((qResult = SparqlQuery.personInDbpediaNl(actor)) != null) { // in nl.dbpedia.org\n//\t\t\t\t\t\ttemp = ResourceFactory.createResource(qResult);\n//\t\t\t\t\t\tperson.addProperty(OWL.sameAs, temp);\n//\t\t\t\t\t} else if((qResult = SparqlQuery.personInDbpediaDe(actor)) != null) { // in de.dbpedia.org\n//\t\t\t\t\t\ttemp = ResourceFactory.createResource(qResult);\n//\t\t\t\t\t\tperson.addProperty(OWL.sameAs, temp);\n//\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the director\n\t\t\tcase \"Regie\": //director\n\t\t\t\tString nameString = element.text().substring(6).toString().trim(); //Remove \"Regie\" from string\n\t\t\t\tResource person = m.createResource(PERSON + nameString.replace(\" \", \"_\"));\n\t\t\t\tperson.addProperty(m.getProperty(NS + \"name\"), nameString);\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"hasDirector\"), person);\n\t\t\t\t\n\t\t\t\t//check if the director has dbpedia page. Describe as sameAs if true \n\t\t\t\tString qResult;\n\t\t\t\tif((qResult = SparqlQuery.personInDbpediaEn(nameString)) != null) { // in dbpedia.org\n\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR + qResult);\n\t\t\t\t}// else if((qResult = SparqlQuery.personInDbpediaNl(nameString)) != null) { // in nl.dbpedia.org\n//\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR_NL + qResult);\n//\t\t\t\t} else if((qResult = SparqlQuery.personInDbpediaDe(nameString)) != null) { // in de.dbpedia.org\n//\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR_DE + qResult);\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// a little bit cheating for JJ Abrams\n\t\t\t\tif(nameString.equals(\"Jeffrey (J.J.) Abrams\")) {\n\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR + \"J._J._Abrams\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//get the duration\n\t\t\tcase \"Speelduur\":\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"duration\"), last(element).toString().trim().split(\" \")[0], XSDDatatype.XSDint);\n\t\t\t\tbreak;\n\n\t\t\t//get the genre\n\t\t\tcase \"Genre\":\n\t\t\t\tString[] genres = last(element).toString().toLowerCase().split(\", \");\n\t\t\t\tfor (String genreName:genres) {\n\t\t\t\t\tif(GENRE_MAP.containsKey(genreName))\n\t\t\t\t\t\tgenreName = GENRE_MAP.get(genreName);\n\t\t\t\t\telse { //unknown genre; report it and create new resource to acommodate\n\t\t\t\t\t\tSystem.out.println(\"*) another genre found: \" + genreName);\n\t\t\t\t\t\tm.createResource(GENRE + genreName)\n\t\t\t\t\t\t .addProperty(RDF.type, m.getProperty(NS + \"Genre\"));\n\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\tmovie.addProperty(m.getProperty(NS + \"hasGenre\"), m.getResource(GENRE + genreName));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the language presentation\n\t\t\tcase \"Taal\":\n\t\t\t\tString lang = last(element).toString().trim().toLowerCase();\n\t\t\t\tif(LANGUAGE.containsKey(lang)) {\n\t\t\t\t\tlang = LANGUAGE.get(lang);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"another language found: \" + lang);\n\t\t\t\t}\n\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"language\"), lang);\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the release date\n\t\t\tcase \"In de bioscoop sinds\":\n\t\t\t\tString[] releasedate = last(element).toString().trim().split(\" \");\n\t\t\t\tString day = releasedate[0];\n\t\t\t\tString month = String.valueOf((Arrays.asList(DUTCH_MONTH).indexOf(releasedate[1].toLowerCase()) + 1));\n\t\t\t\tString year = releasedate[2];\n\t\t\t\tString formatteddate = year + \"-\" + month + \"-\" + day + \"T00:00:00\";\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"releaseDate\"), formatteddate, XSDDatatype.XSDdateTime);\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the local distributor\n\t\t\tcase \"Distributeur\":\n\t\t\t\tNode distributorLink = (Node) last(element);\n\t\t\t\tResource distributorResource;\n\t\t\t\tif (distributorLink instanceof Element) {\n\t\t\t\t\tdistributorResource = m.createResource(COMPANY + ((Element) distributorLink).text().replace(\" \", \"_\"));\n\t\t\t\t\tdistributorResource.addProperty(m.getProperty(NS + \"companyURL\"), distributorLink.attr(\"href\"));\n\t\t\t\t\tdistributorResource.addProperty(m.getProperty(NS + \"companyName\"), ((Element) distributorLink).text());\n\t\t\t\t\tmovie.addProperty(m.getProperty(NS + \"isDistributedBy\"), distributorResource);\n\t\t\t\t} else {\n\t\t\t\t\tdistributorResource = m.createResource(COMPANY + distributorLink.toString().replace(\" \", \"_\"));\n\t\t\t\t\tdistributorResource.addProperty(m.getProperty(NS + \"companyName\"), distributorLink.toString());\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"isDistributedBy\"), distributorResource);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void load() {\n }", "protected void loadData()\n {\n }", "public static ArrayList<Movie> readMovie(String filename) throws IOException {\n\t\t// read String from text file\n\t\tArrayList<String> stringArray = (ArrayList)read(filename);\n\t\tArrayList<Movie> alr = new ArrayList<>() ;// to store Professors data\n\n for (int i = 0 ; i < stringArray.size() ; i++) {\n\t\t\t\tString st = (String)stringArray.get(i);\n\t\t\t\t// get individual 'fields' of the string separated by SEPARATOR\n\t\t\t\tStringTokenizer star = new StringTokenizer(st , SEPARATOR1);\t// pass in the string to the string tokenizer using delimiter \",\"\n while(star.hasMoreTokens()){\n int movieid = Integer.parseInt(star.nextToken().trim());\n\t\t\t\tString movietitle = star.nextToken().trim();\t// first token\n\t\t\t\tString type = star.nextToken().trim();\t// second token\n\t\t\t\tString rating = star.nextToken().trim();\t// third token\n\t\t\t\tString status = star.nextToken().trim();\t// fourth token\n\t\t\t\tString synopsis = star.nextToken().trim();\t// fifth token\n\t\t\t\tString director = star.nextToken().trim();\t// sixth token\n\t\t\t\tString cast = star.nextToken().trim();\t// seventh token\n\t\t\t\tString ticketSales = star.nextToken().trim();\t// eight token\n\t\t\t\tString totalRating = star.nextToken().trim();\t// ninth token\n\t\t\t\tString ratingNum = star.nextToken().trim();\t// seventh token\n\t\t\t\tString duration = star.nextToken().trim();\t// tenth token\n\t\t\t\t// create Professor object from file data\n\t\t\t\tMovie m = new Movie(movieid, movietitle, type, ratingNum, status, synopsis, director, cast, ticketSales\t, totalRating, ratingNum, duration);\n\t\t\t\t// add to Professors list\t\n\t\t\t\talr.add(m) ;\n }\n\t\t\t}\n\t\t\n\t\t\n\t\t\treturn alr ;\n\t\n\t}", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "private void loadGame(String fileName){\n\n }", "public abstract void load() throws IOException;", "void load_from_file(){\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a file\", FileDialog.LOAD);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"load path: \" + file_withpath);\t\n\t\t\n\t\t\t \n\t\t\t /**\n\t\t\t * read object from file \n\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file_withpath));\n\n\t\t\t\t\tKey_Lists = Key_Lists.copy((key_lists) in.readObject());\n\n\t\t\t\t\tkeys_area.setText(Key_Lists.arraylist_tostring());\t\t\n\t\t\t\t\t\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\tinfo_label.setForeground(green);\n\t\t\t\t\tinfo_label.setText(\"file loaded :D\");\n\t\t\t\t\t\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tinfo_label.setForeground(white);\n\t\t\t\t\tinfo_label.setText(\"wrong file format\");\n\t\t\t\t\tSystem.out.println(\"io exception\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\n\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load(String filePath){\r\n File loadFile = new File(filePath);\r\n if (!loadFile.exists()){\r\n System.out.println(\"I failed. There are no saved games.\");\r\n return;\r\n }\r\n FileInputStream fis = null;\r\n ObjectInputStream in = null;\r\n try {\r\n fis = new FileInputStream(filePath);\r\n in = new ObjectInputStream(fis);\r\n long versionUID = (long) in.readObject();\r\n if (versionUID != this.serialVersionUID) {\r\n throw new UnsupportedClassVersionError(\"Version mismatch for save game!\");\r\n }\r\n this.p = (Character) in.readObject();\r\n this.map = (SpecialRoom[][]) in.readObject();\r\n\r\n } catch (FileNotFoundException ex){\r\n System.out.println(\"The saved game was not found!\");\r\n ex.printStackTrace();\r\n } catch (IOException ex) {\r\n System.out.println(\"There was an error reading your save game :(\");\r\n ex.printStackTrace();\r\n System.out.println(\")\");\r\n } catch (ClassNotFoundException ex) {\r\n System.out.println(\"The version of the save game is not compatible with this game!\");\r\n ex.printStackTrace();\r\n } catch (UnsupportedClassVersionError ex) {\r\n System.out.println(ex.getMessage());\r\n ex.printStackTrace();\r\n } catch (Exception ex) {\r\n System.out.println(\"An unknown error occurred!\");\r\n }\r\n\r\n }", "@Override\n void load(String data) {\n }", "public void loadMusic(File f) {\n music = new MP3(f);\n }", "public void loadShow(File f) {\n \n }", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\t}", "@Override\r\n public void load(String[] arr) {\r\n\tString name = arr[arr.length - 1];\r\n\tString fileName = arr[arr.length - 2];\r\n\ttry {\r\n\t byte[] temp = new byte[4096];\r\n\t InputStream in = new MyDecompressorInputStream(new FileInputStream(fileName));\r\n\t int numOfBytes = in.read(temp);\r\n\t in.close();\r\n\t byte[] b = new byte[numOfBytes];\r\n\t for (int i = 0; i < b.length; i++) {\r\n\t\tb[i] = temp[i];\r\n\t }\r\n\t Maze3d maze = new Maze3d(b);\r\n\t hMaze.put(name, maze);\r\n\t setChanged();\r\n\t notifyObservers((\"load:\" + name).split(\":\"));\r\n\t} catch (FileNotFoundException e) {\r\n\t setChanged();\r\n\t notifyObservers(\"Error - the file was not found\");\r\n\t} catch (IOException e) {\r\n\t setChanged();\r\n\t notifyObservers(\"Error - IOException\");\r\n\t}\r\n }", "public abstract void load();", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\n\t}", "public void load (File file) throws Exception;", "@Override\n public D loadInBackground() {\n mData = SerializeUtils.readSerializableObject(mContext, mFilename);\n return mData;\n }", "void massiveModeLoading( File dataPath );", "private void loadDataFromFile(File file) {\n\t\tString fileName = file.getName();\n\t\tQuickParser test = new QuickParser();\n\n\t\tif(fileName.trim().toUpperCase().startsWith(\"INV\")) {\n\t\t\tfileType = FileType.INVENTORY;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInventoryData.clear();\n\t\t\tmasterInventoryData = test.Parse(file, fileType);\n\t\t\tpresentationInventoryData.clear();\n\t\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End if statement\n\t\telse if(fileName.toUpperCase().startsWith(\"INI\")) {\n\t\t\tfileType = FileType.INITIAL;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInitialData.clear();\n\t\t\tmasterInitialData = test.Parse(file, fileType);\n\t\t\tpresentationInitialData.clear();\n\t\t\tpresentationInitialData.addAll(masterInitialData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End else if statement \n\t\telse {\n\t\t\tfileType = FileType.UNASSIGNED;\n\t\t} // End else statement\n\t\tchangeToScanTable();\n\t}", "public void load() {\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream arg0)\n\t{\n\n\t}", "private void loadFromFile(String fileName) {\n try {\n InputStream inputStream = this.openFileInput(fileName);\n if (inputStream != null) {\n ObjectInputStream input = new ObjectInputStream(inputStream);\n boardManager = (BoardManager) input.readObject();\n inputStream.close();\n }\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n } catch (ClassNotFoundException e) {\n Log.e(\"login activity\", \"File contained unexpected data type: \" + e.toString());\n }\n }", "public void loadMaze(){\n try {\n byte savedMazeBytes[] = null;\n InputStream in = new MyDecompressorInputStream(new FileInputStream(\"savedMaze.maze\"));\n savedMazeBytes = new byte[1000012];\n in.read(savedMazeBytes);\n in.close();\n this.maze=new Maze(savedMazeBytes);\n isMazeGenerated=true;\n setChanged();\n notifyObservers();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void initLoadTable(){\n movies.clear();\n try {\n Connection conn = ConnectionFactory.getConnection();\n try (Statement stmt = conn.createStatement()) {\n String str=\"select title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,img from movies \";\n ResultSet rs= stmt.executeQuery(str);\n while(rs.next()){\n String title=rs.getString(\"title\");\n String director=rs.getString(\"director\");\n int prodYear=rs.getInt(\"prodYear\");\n boolean lent=rs.getBoolean(\"lent\"); \n int lentCount=rs.getInt(\"lentCount\");\n boolean original=rs.getBoolean(\"original\");\n String storageType=rs.getString(\"storageType\");\n int movieLength=rs.getInt(\"movieLength\");\n String mainCast=rs.getString(\"mainCast\");\n Blob blob = rs.getBlob(\"img\");\n InputStream inputStream = blob.getBinaryStream();\n OutputStream outputStream = new FileOutputStream(\"resources/\"+title+director+\".jpg\");\n int bytesRead = -1;\n byte[] buffer = new byte[1];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n inputStream.close();\n outputStream.close();\n System.out.println(\"File saved\"); \n File image = new File(\"resources/\"+title+director+\".jpg\");\n \n movies.add(new Movie(title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,image));\n }\n rs.close();\n stmt.close(); \n }\n conn.close();\n } catch (Exception ex) {\n System.err.println(ex.toString());\n } \n \n fireTableDataChanged();\n }", "@Override\n\tpublic void loadPlayerData(InputStream arg0) {\n\n\t}", "@Override\r\n\tpublic void loadAircraftData(Path p) throws DataLoadingException {\t\r\n\t\ttry {\r\n\t\t\t//open the file\r\n\t\t\tBufferedReader reader = Files.newBufferedReader(p);\r\n\t\t\t\r\n\t\t\t//read the file line by line\r\n\t\t\tString line = \"\";\r\n\t\t\t\r\n\t\t\t//skip the first line of the file - headers\r\n\t\t\treader.readLine();\r\n\t\t\t\r\n\t\t\twhile( (line = reader.readLine()) != null) {\r\n\t\t\t\t//each line has fields separated by commas, split into an array of fields\r\n\t\t\t\tString[] fields = line.split(\",\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Creating an Aircraft object\r\n\t\t\t\tAircraft loadingIn = new Aircraft();\r\n\t\t\t\t\r\n\t\t\t\t//put some of the fields into variables: check which fields are where atop the CSV file itself\r\n\t\t\t\tloadingIn.setTailCode(fields[0]);\r\n\t\t\t\tloadingIn.setTypeCode(fields[1]);\r\n\t\t\t\t//Checking the manufacturer and setting it\r\n\t\t\t\tManufacturer manufacturer = null;\r\n\t\t\t\tString mString = fields[2];\r\n\t\t\t\tif(mString.equals(\"Boeing\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.BOEING;\r\n\t\t\t\telse if(mString.equals(\"Airbus\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.AIRBUS;\r\n\t\t\t\telse if(mString.equals(\"Bombardier\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.BOMBARDIER;\r\n\t\t\t\telse if(mString.equals(\"Embraer\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.EMBRAER;\r\n\t\t\t\telse if(mString.equals(\"Fokker\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.FOKKER;\r\n\t\t\t\telse\r\n\t\t\t\t\tmanufacturer = Manufacturer.ATR;\r\n loadingIn.setManufacturer(manufacturer);\r\n\t\t\t\tloadingIn.setModel(fields[3]);\r\n\t\t\t\tloadingIn.setSeats(Integer.parseInt(fields[4]));\r\n\t\t\t\tloadingIn.setCabinCrewRequired(Integer.parseInt(fields[5]));\r\n\t\t\t\tloadingIn.setStartingPosition(fields[6]);\r\n\t\t\t\tairCrafts.add(loadingIn);\r\n\t\t\t\t\r\n\t\t\t\t//print a line explaining what we've found\r\n\t\t\t\t/*System.out.println(\"Tail Code: \" + loadingIn.getTailCode() + \" TypeCode: \" + loadingIn.getTailCode() +\r\n\t\t\t\t\t\t\" Manufacturer: \" + loadingIn.getManufacturer() + \" Model: \" + loadingIn.getModel() +\r\n\t\t\t\t\t\t\" Seats and CabinCrew : \" + loadingIn.getSeats() + \" \" + loadingIn.getCabinCrewRequired()\r\n\t\t\t\t\t\t+ \" Starting Pos. \" + loadingIn.getStartingPosition());*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tcatch (IOException ioe) {\r\n\t\t\t//There was a problem reading the file\r\n\t\t\tthrow new DataLoadingException(ioe);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error loading aircraft data\");\r\n\t\t\tDataLoadingException dle = new DataLoadingException();\r\n\t\t\tthrow dle;\r\n\t\t}\r\n\r\n\t}", "String loadFromFile () throws Exception {\n\n Reader reader = new Reader(new FileReader(file));\n String line;\n\n// reads all lines of the file\n while ((line = reader.readLine()) != null) {\n\n// depending on the object tag [element], it reads relevant parameters and creates the Element\n if (line.contains(\"[timeline]\"))\n timelines.add(new Timeline(reader.getStringArgument()));\n\n else if (line.contains(\"[event]\")) {\n String timelineName = reader.getStringArgument();\n for (Timeline timeline : timelines) {\n if (timelineName.equals(timeline.name)) {\n timeline.addEvent(\n reader.getStringArgument(),\n reader.getDateArgument(),\n reader.getDateArgument(),\n reader.getIntArgument() != 0,\n reader.getNotesArgument());\n break;\n }\n }\n }\n }\n reader.close();\n return (\"Data loaded successfully\");\n }", "public void readFromFile() {\n\n\t}", "public void LoadFromCSV(){\n InputStream inputStream = getResources().openRawResource(R.raw.movielist);\n CSVinput csVinput = new CSVinput(inputStream);\n final List<String[]> movList = csVinput.read();\n\n for(String[] data : movList) {\n itemArrAdapt.add(data);\n }\n }", "public MeteoDataInfo openARLData(String fileName) {\n MeteoDataInfo aDataInfo = new MeteoDataInfo();\n aDataInfo.openARLData(fileName);\n addMeteoData(aDataInfo);\n\n return aDataInfo;\n }", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }", "private Film getFilmFromData(String[] line){\n \n Director director = this.getDirectorFromData(line); //Director object created using data from line array\n Actor actor = this.getActorFromData(line); //Actor object created using data from line array\n //filmID, filmName etc. give the index number for their respective values, NOT the values themselves\n Film film = new Film(line[AppVariables.filmID].trim(), \n line[AppVariables.filmName].trim(),\n line[AppVariables.imdbRating].trim(),\n line[AppVariables.filmYear].trim());\n film.directors.add(director);\n film.actors.add(actor);\n \n return film; \n }", "public void movieEvent(Movie m) {\n m.read();\n}", "public void loadFromOBJ(Context context, String filename) {\n loadFromOBJThreaded(context, filename);\n loadObjData();\n }", "@Override\r\n\tpublic void loadMaze(String name , String fileName) {\r\n\t\tMyDecompressorInputStream inFile;\r\n\t\ttry {\r\n\t\t\tinFile = new MyDecompressorInputStream(new FileInputStream(fileName));\r\n\t\t\tbyte[] b = new byte[4096];\r\n\t\t\tif(mazeInFile.containsKey(fileName)==true)\r\n\t\t\t{\r\n\t\t\t\tif(inFile.read(b)!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\tMaze3d maze = new Maze3d(b);\r\n\t\t\t\t\tcontroller.loadMaze(maze,name);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tcontroller.printStr(\"Can't load maze\");\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tcontroller.printStr(\"File \" + fileName + \" is not exist!\");\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public static Game loadGame(String fileName){\n Game game = null;\n try {\n File file1 = new File(fileName);\n FileInputStream fileInputStream = new FileInputStream(file1);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n game = (Game) objectInputStream.readObject();\n game.makeGUIVisible();\n }catch (Exception e){\n System.err.println(\"Error when loading file\");\n }\n return game;\n }", "@Override\n protected void onLoad(File file) {\n if (file.getName().endsWith(\".txt\")) {\n scene = Scene.loadFromFile(file);\n camera = new Camera(new Vector3D(0f,0f,0f), new Vector3D(0f,0f,0f), new Vector3D(1f,1f,1f));\n } else {\n JOptionPane.showMessageDialog(null, \"Error: Invalid file type.\\nExpected '*.txt'\", \"Invalid File type\", JOptionPane.ERROR_MESSAGE);\n System.out.println(\"Invalid file format\");\n }\n }", "public void loadArchive() throws IOException {\n Archive archive = jsonReader.read();\n cameraCollection = archive.cameraCollection;\n filmCollection = archive.filmCollection;\n }", "public void readFromFile() {\n FileInputStream fis = null;\n try {\n //reaad object\n fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n TravelAgent travelAgent = (TravelAgent)ois.readObject();\n travelGUI.setTravelAgent(travelAgent);\n ois.close();\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }", "private void deserialize(String file_name) {\n\t\t// Reading the object from a file\n\t\ttry {\n\t\t\tFileInputStream file = new FileInputStream(file_name);\n\t\t\tObjectInputStream in = new ObjectInputStream(file);\n\t\t\t// Method for deserialization of object\n\t\t\tthis.GA = (graph) in.readObject();\n\n\t\t\tin.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has been deserialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,object didnt uploaded\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.err.println(\"ClassNotFoundException is caught,object didnt uploaded\");\n\t\t}\n\t}", "public abstract void loadFile(Model mod, String fn) throws IOException;", "public void loadMovieDescriptions()\r\n/* 162: */ {\r\n/* 163: */ try\r\n/* 164: */ {\r\n/* 165:160 */ if (this.gauntlet != null) {\r\n/* 166:161 */ this.gauntlet.closeInterface();\r\n/* 167: */ }\r\n/* 168:163 */ Thread thread = new GetTheMovies();\r\n/* 169:164 */ thread.start();\r\n/* 170: */ }\r\n/* 171: */ catch (Exception localException) {}\r\n/* 172: */ }", "private static ArrayList<Movie> getJsonArray(String fileName){\n String s = readJsonFile(fileName);\n return (ArrayList<Movie>) JSONObject.parseArray(s, Movie.class);\n }", "public void load (IFile file) throws Exception;", "private static void loadMovies() {\n\tbookmarks[1][0]=BookmarkManager.getInstance().createMovie(3000,\"Citizen Kane\",1941,new String[] {\"Orson Welles,Joseph Cotten\"},new String[] {\"Orson Welles\"},MovieGenre.CLASSICS,8.5);\n\tbookmarks[1][1]=BookmarkManager.getInstance().createMovie(3001,\"The Grapes of Wrath\",1940,new String[] {\"Henry Fonda,Jane Darwell\"},new String[]{\"John Ford\"},MovieGenre.CLASSICS,8.2);\n\tbookmarks[1][2]=BookmarkManager.getInstance().createMovie(3002,\"A Touch of Greatness\",2004,new String[] {\"Albert Cullum\"},new String[] {\"Leslie Sullivan\"},MovieGenre.DOCUMENTARIES,7.3);\n\tbookmarks[1][3]=BookmarkManager.getInstance().createMovie(3003,\"The Big Bang Theory\",2007,new String[] {\"Kaley Cuoco,Jim Parsons\"},new String[] {\"Chuck Lorre,Bill Prady\"},MovieGenre.TV_SHOWS,8.7);\n\tbookmarks[1][3]=BookmarkManager.getInstance().createMovie(3004,\"Ikiru\",1952,new String[] {\"Takashi Shimura,Minoru Chiaki\"},\tnew String[] {\"Akira Kurosawa\"}\t,MovieGenre.FOREIGN_MOVIES,8.4);\n}", "private void loadMovies() {\n try {\n SharedPreferences prefs = getActivity().getSharedPreferences(\n PREFS_NAME, 0);\n if (prefs.contains(SP_FEED)) {\n\n JSONObject jsonObject = new JSONObject(prefs.getString(SP_FEED,\n \"\"));\n\n JSONArray jsonMovieArray;\n jsonMovieArray = (JSONArray) ((JSONObject) jsonObject\n .get(\"feed\")).get(\"entry\");\n\n if (jsonMovieArray != null) {\n int len = jsonMovieArray.length();\n for (int i = 0; i < len; i++) {\n JSONObject jsonMovie = (JSONObject) jsonMovieArray\n .get(i);\n mList.add(new Movie(jsonMovie));\n }\n }\n }\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n // Update adapter\n mArrayAdapter.notifyDataSetChanged();\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "private void loadData () {\n try {\n File f = new File(\"arpabet.txt\");\n BufferedReader br = new BufferedReader(new FileReader(f));\n vowels = new HashMap<String, String>();\n consonants = new HashMap<String, String>();\n phonemes = new ArrayList<String>();\n String[] data = new String[3];\n for (String line; (line = br.readLine()) != null; ) {\n if (line.startsWith(\";\")) {\n continue;\n }\n data = line.split(\",\");\n phonemes.add(data[0]);\n if (data[1].compareTo(\"v\") == 0) {\n vowels.put(data[0], data[2]);\n } else {\n consonants.put(data[0], data[2]);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load(String filename){\n //Create a file if its not already on disk\n File extDir = new File(this.getFilesDir(), filename);\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n\n //Needs lots of try and catch blocks because so much can go wrong\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(extDir));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }//end while\n\n br.close();//Close the buffer\n }//end try\n catch (FileNotFoundException e){//If file not found on disk here.\n Toast.makeText(this, \"There was no data to load\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n catch (IOException e)//If io Exception here\n {\n Toast.makeText(this, \"Error loading file\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }//end catch\n\n\n //Set the data from the file content and conver it to a String\n String data = new String(text);\n\n //Safety first Parse data if available.\n if (data.length() > 0) {\n parseXML(data);\n }\n else\n Toast.makeText(this, \"There is no data to display\", Toast.LENGTH_LONG).show();\n }", "public void load (){\n load(MAX_PREZ);\n }", "public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void loadGame(File fileLocation, boolean replay);", "static void parseData(String filename) {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t \n\t\t\tString line;\n\t\t String[] tokens;\n\t\t ArrayList<Double> temp;\n\t\t \n\t\t while ((line = br.readLine()) != null) {\n\t\t \ttemp = new ArrayList<Double>();\n\t\t \ttokens = line.split(\",\");\n\t\t \tfor(String s : tokens) {\n\t\t \t\ttemp.add(Double.parseDouble(s));\n\t\t \t}\n\t\t \tData.add(new Vector(temp));\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public AppCMSPageUI getDataFromFile(String fileName) {\n StringBuilder buf = new StringBuilder();\n try {\n InputStream json = currentActivity.getAssets().open(fileName);\n BufferedReader in =\n new BufferedReader(new InputStreamReader(json, \"UTF-8\"));\n String str;\n\n while ((str = in.readLine()) != null) {\n buf.append(str);\n }\n\n in.close();\n } catch (Exception e) {\n //Log.e(TAG, \"Error getting data from file: \" + e.getMessage());\n }\n\n Gson gson = new Gson();\n\n return gson.fromJson(buf.toString().trim(), AppCMSPageUI.class);\n }", "private void readMonsters() throws FileNotFoundException, IOException, ParseException {\r\n this.readMonsters(this.filename);\r\n }", "public void loadImage(File videoFile) {\r\n\t\t//TODO stub\r\n\t}", "private void readActorData(String[] lineData)\n {\n int actorCodeIdx = 0;\n int actorFileNameIdx = 1;\n int actorIngameNameIdx = 2;\n int sprite_statusIdx = 3;\n int sensor_statusIdx = 4;\n int directionIdx = 5;\n\n Direction direction = Direction.of(lineData[directionIdx]);\n ActorData actorData = new ActorData(lineData[actorFileNameIdx], lineData[actorIngameNameIdx], lineData[sprite_statusIdx], lineData[sensor_statusIdx], direction);\n actorDataMap.put(lineData[actorCodeIdx], actorData);\n\n //Player start position is not based on tile schema\n if (actorData.actorFileName.equals(ACTOR_DIRECTORY_PATH + \"player\"))\n createPlayer(actorData);\n else\n loadedTileIdsSet.add(lineData[actorCodeIdx]);//Player is not defined by layers\n }", "public void load (String argFileName) throws IOException;", "private void startMovieDownload() {\n String sortOrder = AppPrefs.getInstance(this).getLastSortOrder();\n if (null == sortOrder) {\n sortOrder = SortBy.getDefaultSortOrder();\n }\n downloadData(sortOrder);\n }", "public static Iterable<MoviePlotRecord> readRecords() {\n\t\treturn readRecords(imdbPath);\n\t}", "private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public Instances openARFF(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.dataset = new Instances(new BufferedReader(new FileReader(path)));\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn this.dataset;\n\t}", "@Nullable\n @Override\n public Movie[] loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n try {\n URL movieRequestUrl = new URL(mUrl);\n // get json response in a string\n String jsonMovieResponse = NetworkUtils\n .getResponseFromHttpUrl(movieRequestUrl);\n return MovieJsonUtils.getMovies(jsonMovieResponse);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n }", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }" ]
[ "0.6672394", "0.64725494", "0.64725494", "0.6407589", "0.63846064", "0.62944156", "0.6276254", "0.62683815", "0.62561005", "0.62510043", "0.62363946", "0.61924356", "0.61923474", "0.6190284", "0.6190284", "0.6160403", "0.61426", "0.6132516", "0.612739", "0.61200976", "0.6105444", "0.6103931", "0.6099623", "0.6096473", "0.6096473", "0.6083543", "0.6063156", "0.6063156", "0.605323", "0.60424405", "0.6032097", "0.6018283", "0.60134023", "0.6000801", "0.5960778", "0.5952004", "0.5947195", "0.59462184", "0.5934338", "0.59328055", "0.5925041", "0.5918593", "0.5915065", "0.59095126", "0.5903371", "0.59033406", "0.5895091", "0.58678377", "0.58618826", "0.5848359", "0.5840644", "0.58336616", "0.5825744", "0.5809514", "0.58064073", "0.5785459", "0.5781631", "0.5776828", "0.57661384", "0.57483727", "0.5746804", "0.5741642", "0.5723457", "0.572314", "0.5718517", "0.5708819", "0.57021457", "0.56883764", "0.56800246", "0.56782466", "0.56782186", "0.56770724", "0.5675383", "0.56737965", "0.5661258", "0.5651285", "0.5650984", "0.56506836", "0.5645363", "0.56444114", "0.56441075", "0.56287044", "0.5619011", "0.5617687", "0.5615781", "0.5604989", "0.56033456", "0.56033134", "0.5589572", "0.5584244", "0.55821246", "0.5578333", "0.55749995", "0.5571434", "0.55586433", "0.55551493", "0.5546145", "0.55419576", "0.5538197", "0.55375797", "0.5536082" ]
0.0
-1
method to print the client menu with the available options
public static void imprimirMenuCliente() { System.out.println("---------------------------menu---------------------------"); System.out.println("opciones: (ingrese la letra)"); System.out.println("A: despliega la opción comprar entrada"); System.out.println("B: despliega la opción informacion usuario"); System.out.println("C: despliega la opción devolucion entrada"); System.out.println("D: despliega la opción cartelera"); System.out.println("E: Salir"); System.out.println("----------------------------------------------------------"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\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 displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "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 void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\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 }", "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 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 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 }", "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 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 void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\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}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "public void printMenu()\n\t{\n\t\tSystem.out.println(SearchMenu.MENU_HEAD);\n\t\tSystem.out.println(SearchMenu.TYPE_MESSAGE );\n\t\tSystem.out.println(SearchMenu.QUIT);\n\t\tSystem.out.println(SearchMenu.MENU_TAIL);\n\t\tSystem.out.println(SearchMenu.INPUT_PROMPT);\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 }", "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 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 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 listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "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 }", "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 printLoggedInMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \n\t\t\"1.Search Users\", \"2.Search Movies\", \"3.View Feed\", \"4.View Profile\", \"5.Logout\", \"6.Exit\");\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 static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "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 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 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 }", "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() {\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 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 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 static void printMenu(){\r\n try{\r\n Thread.sleep(100);\r\n }catch(Exception e){}\r\n System.out.println(\"Use numbers to choose a option:\");\r\n System.out.println(\"1.- New Order.\");\r\n System.out.println(\"2.- Add to exist Order.\");\r\n System.out.println(\"3.- Show Order.\");\r\n System.out.println(\"4.- Administration.\");\r\n System.out.println(\"5.- Exit.\");\r\n System.out.print(\"-> \");\r\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}", "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 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 }", "public static void printMenu(BankAgency ag) {\n\t\tSystem.out.println(\"Menu of \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\");\n\t\tSystem.out.println(\"1 - List of the Agency accounts\");\n\t\tSystem.out.println(\"2 - See an account (by its number)\");\n\t\tSystem.out.println(\"3 - Operation on account\");\n\t\tSystem.out.println(\"4 - Account management\");\n\t\tSystem.out.println(\"0 - Quit\");\n\t\tSystem.out.print(\"Choice -> \");\n\t}", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\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 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 void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\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 }", "public static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\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 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 String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "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 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 }", "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}", "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}", "private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\r\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 static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}", "private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }", "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 }", "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}", "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 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}", "private void displayPlayerMenu () {\n System.out.println();\n System.out.println(\"Player Selection Menu:\");\n System.out.println(\n \"Timid player...........\" + TIMID);\n System.out.println(\n \"Greedy player..........\" + GREEDY);\n System.out.println(\n \"Clever player..........\" + CLEVER);\n System.out.println(\n \"Interactive player.....\" + INTERACTIVE);\n }", "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "public void print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\n }", "private int mainMenu(){\n System.out.println(\" \");\n System.out.println(\"Select an option:\");\n System.out.println(\"1 - See all transactions\");\n System.out.println(\"2 - See all transactions for a particular company\");\n System.out.println(\"3 - Detailed information about a company\");\n System.out.println(\"0 - Exit.\");\n\n return getUserOption();\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 }", "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 void printOptions() {\n\t\t\n\t}", "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}", "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 }", "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}", "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 }", "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}", "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 }", "private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\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 }", "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}", "private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "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}", "public void menuOptions(String type) {\n System.out.println(\"\\n\" + \"To select an option, type what's inside the parenthesis.\");\n System.out.println(\"While in a sub-menu -> (0) Back out of a sub-menu. \\n\");\n System.out.println(\"Main Menu\");\n if (type.equals(\"Attendee\") || type.equals(\"VIP\")) {\n System.out.println(\"(1a) Message, (2a) Contacts, (3a) Signup, (4a) See Attendee Schedule\");\n System.out.println(\"(5a) Get Event Details, (6a) View Conference Schedule, \"+\n \" (p) Export the conference schedule to a PDF\");\n } else if (type.equals(\"Organizer\")) {\n System.out.println(\"(1o) Message, (2o) Contacts, (3o) View Conference Schedule\");\n System.out.println(\"(4o) Modify Events, (5o) Add room, (6o) Create a User account\"+\n \" (p) Export the conference schedule to a PDF\");\n System.out.println(\"(7o) View Current Rooms, (8o) Get Event Details\");\n } else if (type.equals(\"Speaker\")) {\n System.out.println(\"(1s) Message, (2s) Contacts, (3s) See Speaker Schedule\");\n System.out.println(\"(4s) Get Event Details, (5s) View Conference Schedule\"+\n \" (p) Export the conference schedule to a PDF\");\n }\n System.out.println(\"Type Quit to logout\");\n }", "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}", "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 }", "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 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 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}", "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 PrintMenu() throws IOException {\r\n\t\t//loop the menu until the user chooses to quit\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"Welcome to the EnigmaMachine command interface!\");\r\n\t\t\tSystem.out.println(\"Enter 1 to add the plugs\");\r\n\t\t\tSystem.out.println(\"Enter 2 to add the rotors\");\r\n\t\t\tSystem.out.println(\"Enter 3 to add the reflector\");\r\n\t\t\tSystem.out.println(\"Enter 4 to enter the message\");\r\n\t\t\tSystem.out.println(\"Enter 5 to quit the menu and start the machine\");\r\n\t\t\t\r\n\t\t\tint option = this.readIntegerFromCmd();\r\n\t\t\t//jump to different method according to the input of the user\r\n\t\t\tif (option == 1) {\r\n\t\t\t\tthis.addPlug();\r\n\t\t\t}else if (option == 2) {\r\n\t\t\t\tthis.addRotors();\r\n\t\t\t}else if (option == 3) {\r\n\t\t\t\tthis.addReflector();\r\n\t\t\t}else if (option == 4) {\r\n\t\t\t\tthis.addMessage();\r\n\t\t\t}else if (option == 5) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void menu() {\n\n\t\tSystem.out.println(\"\\n*** MENU ***: \");\n\t\tSystem.out.print(\"\\n1. Host current Date and Time\\n\" + \"2. Host uptime\\n\" + \"3. Host memory use\\n\"\n\t\t\t\t+ \"4. Host IPV4 socket connections\\n\" + \"5. Host current users\\n\" + \"6. Host running processes\\n\"\n\t\t\t\t+ \"7. Quit\\n\" + \"\\nSelect option: \");\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\ttry {\n\t\t\tmenuSelect = sc.nextInt();\n\t\t\tif (menuSelect < 1 || menuSelect > 7) {\n\t\t\t\tSystem.out.println(\"\\nUser invalid input, input number between 1 and 7\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"\\nUser invalid input, input number between 1 and 7\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tswitch (menuSelect) {\n\t\tcase 1:\n\t\t\tSystem.out.println(\"Date Request from Client\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tSystem.out.println(\"Uptime Request from Client\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tSystem.out.println(\"Memory Use Request from Client\");\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tSystem.out.println(\"IPV4 Socket Connections Request from Client\");\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tSystem.out.println(\"Current Users Request from Client\");\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tSystem.out.println(\"Current OS Version Request from Client\");\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Quit\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tsc.close(); // close the Scanner object\n\t}", "private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "@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 showFullMenu() {\n final Menu[] menu = MenuFactory.showMenu();\n System.out.println(\"Food_Id\" + \"\\t\" + \"Food_Name\" + \"\\t\" + \"Price\" + \"\\t\" + \"Prepration_Time\");\n for (final Menu m : menu) {\n System.out.println(m.getFoodId() + \"\\t\" + m.getFoodName() + \"\\t\" + m.getPrice() + \"\\t\" + m.getPreprationTime());\n }\n }", "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "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 void printClientList() {\n uiService.underDevelopment();\n }", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\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 static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }", "public void showThreadOptionsMenu() {\n System.out.println(\"a - Post to thread\\nb - Main Menu\\nc - Quote\");\n }", "public static void inventoryMenuHeader() {\n System.out.print(\"Welcome to Inventory Menu!\\nType \\\"help\\\" for Inventory menu commands\\n\");\n }" ]
[ "0.8470386", "0.83775103", "0.8237314", "0.80748796", "0.80186033", "0.80022043", "0.7960267", "0.7903452", "0.77818996", "0.7779036", "0.77731323", "0.77726746", "0.77633166", "0.77319056", "0.7666732", "0.7664482", "0.76388866", "0.76378655", "0.7593537", "0.75819105", "0.7575939", "0.7574854", "0.75626475", "0.756131", "0.75305164", "0.7506714", "0.7481644", "0.74737865", "0.7447117", "0.7436131", "0.74300885", "0.7425585", "0.74029857", "0.73749644", "0.73738545", "0.7346658", "0.733985", "0.7337614", "0.7336303", "0.7315571", "0.73112386", "0.7300436", "0.7280632", "0.7265699", "0.7257582", "0.72384787", "0.7224442", "0.721427", "0.72139513", "0.71997494", "0.7195098", "0.7176077", "0.7169163", "0.71687263", "0.71683544", "0.71451074", "0.7144627", "0.7135725", "0.7134349", "0.7121175", "0.71194035", "0.7118724", "0.7095663", "0.7094027", "0.7075391", "0.7068867", "0.70643544", "0.70635986", "0.7053753", "0.7052433", "0.7042773", "0.7040845", "0.70200115", "0.7014429", "0.7003072", "0.70027494", "0.6995898", "0.69938266", "0.6985354", "0.6982061", "0.6969726", "0.6957675", "0.6956268", "0.69447637", "0.69317377", "0.6928597", "0.69172084", "0.69140834", "0.6906264", "0.6902677", "0.6901216", "0.6872439", "0.6855793", "0.6844611", "0.6831973", "0.68300873", "0.6822099", "0.6820085", "0.6810481", "0.6808792" ]
0.6824425
96
method to print the administrator menu with the available options
public static void imprimirMenuAdmin() { System.out.println("---------------------------menu---------------------------"); System.out.println("opciones: (ingrese la letra)"); System.out.println("A: despliega la opción taquilla"); System.out.println("B: despliega la opción informacion cliente"); System.out.println("C: Salir"); System.out.println("----------------------------------------------------------"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\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}", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "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 }", "private void printLoggedInMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \n\t\t\"1.Search Users\", \"2.Search Movies\", \"3.View Feed\", \"4.View Profile\", \"5.Logout\", \"6.Exit\");\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 }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "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 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 }", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "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 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 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 }", "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 }", "public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "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 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 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 }", "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 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 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 void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\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() {\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}", "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 }", "private void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\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 {\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 static void printMenu(BankAgency ag) {\n\t\tSystem.out.println(\"Menu of \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\");\n\t\tSystem.out.println(\"1 - List of the Agency accounts\");\n\t\tSystem.out.println(\"2 - See an account (by its number)\");\n\t\tSystem.out.println(\"3 - Operation on account\");\n\t\tSystem.out.println(\"4 - Account management\");\n\t\tSystem.out.println(\"0 - Quit\");\n\t\tSystem.out.print(\"Choice -> \");\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 }", "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 }", "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 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 printMenu()\n\t{\n\t\tSystem.out.println(SearchMenu.MENU_HEAD);\n\t\tSystem.out.println(SearchMenu.TYPE_MESSAGE );\n\t\tSystem.out.println(SearchMenu.QUIT);\n\t\tSystem.out.println(SearchMenu.MENU_TAIL);\n\t\tSystem.out.println(SearchMenu.INPUT_PROMPT);\n\t}", "public void showMemberCategoryMenu() {\n System.out.println(\"Visa lista med: \");\n System.out.println(\"\\t1. Barnmedlemmar\");\n System.out.println(\"\\t2. Ungdomsmedlemmar\");\n System.out.println(\"\\t3. Vuxenmedlemmar\");\n System.out.println(\"\\t4. Seniormedlemmar\");\n System.out.println(\"\\t5. VIP-medlemmar\");\n System.out.print(\"Ange val: \");\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 printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\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}", "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 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 printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\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}", "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 listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\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 }", "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 }", "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 static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "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 static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "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 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 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 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 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}", "@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 static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\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}", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}", "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 }", "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 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 print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\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 }", "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\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() \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}", "static void menuPrincipal() {\n System.out.println(\n \"\\nPizzaria o Rato que Ri:\" + '\\n' +\n \"1 - Novo pedido\" + '\\n' +\n \"2 - Mostrar pedidos\" + '\\n' +\n \"3 - Alterar estado do pedido\" + '\\n' +\n \"9 - Sair\"\n );\n }", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "private int mainMenu(){\n System.out.println(\" \");\n System.out.println(\"Select an option:\");\n System.out.println(\"1 - See all transactions\");\n System.out.println(\"2 - See all transactions for a particular company\");\n System.out.println(\"3 - Detailed information about a company\");\n System.out.println(\"0 - Exit.\");\n\n return getUserOption();\n }", "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}", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\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 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 static void structEMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Structural Engineer Profile\");\n System.out.println(\"2 - Search for Structural Engineer Profile\\n\");\n\n System.out.println(\"0 - Continue\");\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 }", "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}", "private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\r\n\t}", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "public void displayAdmInterface() {\n\t\t// Display menu options\n\t\tSystem.out.println(\n\t\t\t\"\\nAVAILABLE ADMINISTRATOR COMMANDS:\" +\n\t\t\t\"\\n1: Erase the Database\" +\n\t\t\t\"\\n2: Load airline information\" +\n\t\t\t\"\\n3: Load schedule information\" +\n\t\t\t\"\\n4: Load pricing information\" +\n\t\t\t\"\\n5: Load plane information\" +\n\t\t\t\"\\n6: Generate passenger manifest of flight on day\" +\n\t\t\t\"\\n7: Quit\\n\");\n\n\t\t// Get user input\n\t\tSystem.out.print(\"Enter command number: \");\n\t\tinputString = scan.nextLine();\n\t\t// Convert input to integer, if not convertable, set to 0 (invalid)\n\t\ttry { choice = Integer.parseInt(inputString);\n\t\t} catch(NumberFormatException e) {choice = 0;}\n\n\t\t// Handle user choices\n\t\tif(choice == 1) {\n\t\t\t// Get user verification\n\t\t\tSystem.out.print(\"Are you sure you want to delete the database? (Y/N): \");\n\t\t\tinputString = scan.nextLine();\n\t\t\t// If user verifies database deletion\n\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\"))\n\t\t\t\tadm1();\n\t\t\telse System.out.println(\"DATABASE ERASURE CANCELLED\");\n\t\t}\n\t\telse if(choice == 2) {\n\t\t\tSystem.out.print(\"Please enter file name with airline information: \");\n\t\t\tString filename = scan.nextLine();\n\t\t\tadm2(filename);\n\t\t}\n\t\telse if(choice == 3) {\n\t\t\tSystem.out.print(\"Please enter file name with schedule information: \");\n\t\t\tString filename = scan.nextLine();\n\t\t\tadm3(filename);\n\t\t}\n\t\telse if(choice == 4) {\n\t\t\t// Display menu options\n\t\t\tSystem.out.println(\n\t\t\t\t\"WOULD YOU LIKE TO:\\n\" +\n\t\t\t\t\"L: Load pricing information\\n\" +\n\t\t\t\t\"C: Change flight price\\n\");\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tinputString = scan.nextLine();\n\t\t\t// If load pricing information option was selected (L)\n\t\t\tif(inputString.equals(\"L\") || inputString.equals(\"l\")) {\n\t\t\t\tSystem.out.print(\"Please enter file name with pricing information: \");\n\t\t\t\tString filename = scan.nextLine();\n\t\t\t\tadm4L(filename);\n\t\t\t}\n\t\t\t// If change flight pricing information was selected (C)\n\t\t\telse if(inputString.equals(\"C\") || inputString.equals(\"c\")) {\n\t\t\t\tString dCity, aCity;\n\t\t\t\tSystem.out.println(\"YOU HAVE CHOSEN TO CHANGE A FLIGHT PRICE\");\n\t\t\t\tSystem.out.print(\"What is the departure city of the flight you wish to change?: \");\n\t\t\t\tdCity = scan.nextLine();\n\t\t\t\tSystem.out.print(\"And the arrival city of this flight?: \");\n\t\t\t\taCity = scan.nextLine();\n\t\t\t\tSystem.out.print(\"What is the new high price for this flight?: \");\n\t\t\t\tinputString = scan.nextLine();\n\t\t\t\tint hPrice = 0, lPrice = 0;\n\t\t\t\tboolean invalidPrice = false;\n\t\t\t\ttry { hPrice = Integer.parseInt(inputString);\n\t\t\t\t} catch(NumberFormatException e) {invalidPrice = true;}\n\t\t\t\tSystem.out.print(\"And the low price?: \");\n\t\t\t\tinputString = scan.nextLine();\n\t\t\t\ttry { lPrice = Integer.parseInt(inputString);\n\t\t\t\t} catch(NumberFormatException e) {invalidPrice = true;}\n\t\t\t\tif(!invalidPrice) { // Continue only if price is valid\n\t\t\t\t\tSystem.out.println( // Display entered data for confirmation before execution\n\t\t\t\t\t\t\"\\n You have entered the following information:\" +\n\t\t\t\t\t\t\"\\nDeparture City: \" + dCity +\n\t\t\t\t\t\t\"\\nArrival City: \" + aCity +\n\t\t\t\t\t\t\"\\nHigh Price: \" + hPrice +\n\t\t\t\t\t\t\"\\nLow Price: \" + lPrice +\n\t\t\t\t\t\t\"\\nIs this this correct? (Y/N)\");\n\t\t\t\t\tinputString = scan.nextLine();\n\t\t\t\t\t// If input data is confirmed, execute\n\t\t\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\"))\n\t\t\t\t\t\tadm4C(dCity, aCity, hPrice, lPrice);\n\t\t\t\t\telse System.out.println(\"NOTHING CHANGED\");\n\t\t\t\t} else System.out.println(\"ERROR: Price must be a number!\");\n\t\t\t} else System.out.println(\"INVALID CHOICE\");\n\t\t}\n\t\telse if(choice == 5) {\n\t\t\tSystem.out.print(\"Please enter file name with plane information: \");\n\t\t\tString filename = scan.nextLine();\n\t\t\tadm5(filename);\n\t\t}\n\t\telse if(choice == 6) {\n\t\t\tString flightNum, flightDate;\n\t\t\tSystem.out.print(\"Enter flight number: \");\n\t\t\tflightNum = scan.nextLine();\n\t\t\tSystem.out.print(\"Enter flight date (MM/DD/YYYY): \");\n\t\t\tflightDate = scan.nextLine();\n\t\t\tadm6(flightNum, flightDate);\n\t\t}\n\t\telse if(choice == 7) exit = true;\n\t\telse System.out.println(\"INVALID CHOICE\");\n\n\t\tif(!exit) { // Exiting will ignore loop and drop to main to exit properly\n\t\t\t// Repeat menu after user controlled pause\n\t\t\tSystem.out.print(\"Press Enter to Continue... \");\n\t\t\tscan.nextLine();\n\t\t\tdisplayAdmInterface();\n\t\t}\n\t}", "private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }", "public static void printMenu(){\r\n try{\r\n Thread.sleep(100);\r\n }catch(Exception e){}\r\n System.out.println(\"Use numbers to choose a option:\");\r\n System.out.println(\"1.- New Order.\");\r\n System.out.println(\"2.- Add to exist Order.\");\r\n System.out.println(\"3.- Show Order.\");\r\n System.out.println(\"4.- Administration.\");\r\n System.out.println(\"5.- Exit.\");\r\n System.out.print(\"-> \");\r\n }", "static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }", "public void menuOptions(String type) {\n System.out.println(\"\\n\" + \"To select an option, type what's inside the parenthesis.\");\n System.out.println(\"While in a sub-menu -> (0) Back out of a sub-menu. \\n\");\n System.out.println(\"Main Menu\");\n if (type.equals(\"Attendee\") || type.equals(\"VIP\")) {\n System.out.println(\"(1a) Message, (2a) Contacts, (3a) Signup, (4a) See Attendee Schedule\");\n System.out.println(\"(5a) Get Event Details, (6a) View Conference Schedule, \"+\n \" (p) Export the conference schedule to a PDF\");\n } else if (type.equals(\"Organizer\")) {\n System.out.println(\"(1o) Message, (2o) Contacts, (3o) View Conference Schedule\");\n System.out.println(\"(4o) Modify Events, (5o) Add room, (6o) Create a User account\"+\n \" (p) Export the conference schedule to a PDF\");\n System.out.println(\"(7o) View Current Rooms, (8o) Get Event Details\");\n } else if (type.equals(\"Speaker\")) {\n System.out.println(\"(1s) Message, (2s) Contacts, (3s) See Speaker Schedule\");\n System.out.println(\"(4s) Get Event Details, (5s) View Conference Schedule\"+\n \" (p) Export the conference schedule to a PDF\");\n }\n System.out.println(\"Type Quit to logout\");\n }", "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}", "private void displayWelcome()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\" Welcome to Sunrise/Sunset Power Controller \");\n System.out.println(\" http://www.savagehomeautomation.com \");\n System.out.println(\"----------------------------------------------------\");\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}", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "public synchronized StringBuffer Print_Text_OptionSet_Menu(String Text){\n\t\tint i=0;\n\t\tStringBuffer Menu= new StringBuffer(\"\\n\\t\\t\"+Text.toUpperCase(Locale.getDefault())\n +\" OPTIONSET MENU\\n\"\n\t\t\t\t+ \"\\tPLEASE ENTER YOUR CHOICE AS THE INSTRUCTION BELOW:\");\n for (OptionSet Temp : opset) {\n Menu.append(\"\\n\\t\\t-Enter \").append(i+1)\n .append(\" for \").append(Temp.getName()).append(\" .\");\n }\n\t\treturn Menu;\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 }", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "private String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "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 proManMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Project Manager Profile\");\n System.out.println(\"2 - Search for Project Manager Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "public static void ShowAdminPreferences() {\n if (Controller.permission.GetUserPermission(\"EditUser\")) {\n ToggleVisibility(UsersPage.adminWindow);\n } else {\n DialogWindow.NoAccessTo(\"Admin options\");\n }\n }", "public void showThreadOptionsMenu() {\n System.out.println(\"a - Post to thread\\nb - Main Menu\\nc - Quote\");\n }", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }", "public static void showAgendaOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View all scheduled RDVs\")\n .add(\"2- Add a new RDV\")\n .add(\"3- Show all RDVs between 2 dates (sorted).\")\n .add(\"4- Show all RDVs of a certain participant between 2 dates.\")\n .add(\"5- Remove an RDV\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }" ]
[ "0.77593756", "0.7731058", "0.7720438", "0.7661076", "0.7549936", "0.75238585", "0.74976647", "0.74353504", "0.7405026", "0.7391165", "0.7361363", "0.735424", "0.73378974", "0.7321392", "0.7309425", "0.73087585", "0.7301572", "0.72768587", "0.7250956", "0.7250447", "0.71913123", "0.7174217", "0.7167845", "0.7157269", "0.7110213", "0.7108593", "0.70810586", "0.7075795", "0.70698005", "0.7037502", "0.703659", "0.7030075", "0.70296526", "0.7004046", "0.69661444", "0.696571", "0.6955519", "0.695316", "0.6941082", "0.6928096", "0.690984", "0.6906389", "0.69012946", "0.68991834", "0.6871429", "0.6863972", "0.68566966", "0.68540305", "0.6849717", "0.6831823", "0.6823179", "0.68187976", "0.68147796", "0.68102705", "0.68018776", "0.6800179", "0.6799102", "0.67967165", "0.6782128", "0.67758834", "0.6767976", "0.6763485", "0.6756262", "0.67351806", "0.6734524", "0.67287135", "0.66741675", "0.66670555", "0.6664475", "0.6657139", "0.665501", "0.66518867", "0.66373515", "0.6632909", "0.6613215", "0.66115737", "0.66047853", "0.6584785", "0.6582936", "0.6574728", "0.65581554", "0.65504205", "0.65488124", "0.65431905", "0.6538836", "0.652618", "0.652573", "0.65232617", "0.65171367", "0.65160716", "0.64946914", "0.64945525", "0.6493992", "0.6488313", "0.64624745", "0.64607275", "0.6458807", "0.6457775", "0.64569825", "0.64560556" ]
0.74136865
8
method that allows to format the ru of the form with period and hyphen even if it is entered in different ways
public static String formatearRut(String rut){ int cont = 0; String format; rut= rut.replace(".", ""); rut = rut.replace("-", ""); format= "-" + rut.substring(rut.length()-1); for(int i = rut.length()-2; i>=0;i--){ format=rut.substring(i,i+1)+format; cont++; if(cont==3 && i!=0){ format= "."+format; cont=0; } } return format; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tprotected String formatValue(String text) {\n\t\t\t\treturn text.substring(0, text.lastIndexOf('.'));\n\t\t\t}", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "private String formatLatex(String text){\r\n\r\n String output=text.replaceAll(\"_\",\"-\");\r\n\r\n return output;\r\n }", "String toLocalizedPattern() {\n return toPattern(true);\n }", "@Override\n public String encode(final String input) {\n String encoded = super.encode(input);\n\n // replace all periods with hyphens:\n char[] chars = Normalizer.normalize(encoded, Normalizer.Form.NFC).toCharArray();\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < chars.length; i++) {\n if (chars[i] == '.') {\n sb.append(\"-\");\n } else {\n sb.append(chars[i]);\n }\n }\n return sb.toString();\n }", "private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }", "protected abstract String format();", "private String format(String text) {\n if(text != null && !text.isEmpty())\n return text.substring(0, 1).toUpperCase(Locale.ENGLISH) + text.substring(1);\n else\n return \"\";\n }", "public static String formatLabel(String lbl){\n\t\t\n\t\t// XXX There is be a better way to do this...\n\t\tlbl = lbl.replaceAll(\",\", \"COMMA\");\n\t\tlbl = lbl.replaceAll(\"\\\\$\", \"DOL\");\n\t\tlbl = lbl.replaceAll(\"\\\\?\", \"QMARK\");\n\t\tlbl = lbl.replaceAll(\"\\\\!\", \"EXCMARK\");\n\t\tlbl = lbl.replaceAll(\"'\", \"\");\n\t\t\n\t\treturn lbl;\n\t}", "public String toLocalizedPattern() {\n\t\treturn translatePattern(pattern, DateFormatSymbols.patternChars, formatData.localPatternChars);\n\t}", "public static String standardizePhoneNumber( String phoneNumber)\n {\n // Write your implementation here\n String res = \"\";\n int count = 0;\n for (int i = 0; i < phoneNumber.length(); i++) {\n char c = phoneNumber.charAt(i);\n if (c >= 48 && c <= 57) {\n count++;\n res += String.valueOf(c);\n if (res.length() == 3 || res.length() == 7)\n res += \"-\";\n }\n if (count > 10) return \"\";\n }\n\n if (count != 10) return \"\";\n return res;\n }", "public static String substKeysCheckFormat(String format) throws HISDateException {\r\n String formatStr = format;\r\n // Trimmen und in Großschrift konvertieren:\r\n formatStr = formatStr.trim().toUpperCase();\r\n // Schlüsselworte für Format checken und ersetzen:\r\n if (formatStr.equals(\"GERMAN\")) {\r\n formatStr = \"DMY.\";\r\n } else if (formatStr.equals(\"ISO\")) {\r\n formatStr = \"YMD-\";\r\n } else if (formatStr.equals(\"ENGLISH\")) {\r\n formatStr = \"DMY/\";\r\n } else if (formatStr.equals(\"US\")) {\r\n formatStr = \"MDY/\";\r\n // TODO: Sind die letzten beiden richtig ??\r\n // Gibts noch andere ?? Mit guessFormat() abgleichen !!!\r\n } else {\r\n // Nicht als Schlüsselwort gegebene Formatangabe prüfen...\r\n HISDate.checkFormat(formatStr);\r\n }\r\n return formatStr;\r\n }", "protected static String getAmountFormat(String amount) {\n\t\tStringBuilder strBind = new StringBuilder(amount);\n\t\tstrBind.append(\".00\");\n\t\treturn strBind.toString();\n\t}", "public String formatRut(Object rut) {\r\n\t\tString value = rut.toString();\r\n\t\tvalue = value.trim();\r\n\t\tjava.util.Locale pais = java.util.Locale.GERMANY;\r\n\t\tif (!value.equalsIgnoreCase(\"&nbsp;\")) {\r\n\t\t\tchar DV = value.charAt(value.length() - 1);\r\n\t\t\tvalue = value.substring(0, value.length() - 1);\r\n\t\t\tjava.text.DecimalFormat dec = (java.text.DecimalFormat) java.text.NumberFormat.getInstance(pais);\r\n\t\t\tjava.lang.Double valor = null;\r\n\t\t\tdec.applyPattern(\"#,##0\");\r\n\t\t\tvalor = java.lang.Double.valueOf(value);\r\n\t\t\treturn dec.format(valor.doubleValue()) + \"-\" + DV;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"&nbsp;\";\r\n\t}", "private static String convertToLatin(String word)\n {\n return word.substring(1) + word.substring(0,1) + \"ay\";\n }", "private String removeContainsDot(String amount) {\n if (amount != null && !TextUtils.isEmpty(amount)) {\n if (amount.contains(\".\")) {\n String result = amount.substring(0, amount.indexOf(\".\"));\n return result;\n } else {\n return amount;\n }\n }\n return \"0\";\n }", "private void formatPhoneNum() {\n\t\tthis.phoneNum = \"(\" + this.phoneNum.substring(0, 3) + \") \" + this.phoneNum.substring(3, 6) + \" \"\n\t\t\t\t+ this.phoneNum.substring(6);\n\t}", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "private void outputBasedOnText(Editable s) {\n String stringValue = s.toString();\n if (stringValue.length() > 1 && stringValue.substring(stringValue.length() - 1).equals(\".\")) { // If the last char in string is \".\"\n convertInput(Double.parseDouble(stringValue.substring(0, stringValue.length() - 1)));\n } else if (!stringValue.matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")) { // Check if stringValue is numeric\n convertInput(0);\n } else {\n convertInput(Double.parseDouble(stringValue));\n }\n }", "static String correctParagraph(String paragraph) {\n\n\t\t\tString newText = paragraph.replaceAll(\"\\\\s{2,}+\", \" \");\n\n\t\t\tnewText = newText.replaceAll(\"\\\\s+,\", \",\");\n\t\t\tnewText = newText.replaceAll(\"\\\\s+\\\\.\", \".\");\n\n\n\t\t\tString firstLetter = newText.substring(0, 1).toUpperCase();\n\t\t\tnewText = firstLetter + newText.substring(1);\n\n\t\t\tString[] sentences = newText.split(\"\\\\.\");\n\t\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\t\tString temp = sentences[i].trim();\n\t\t\t\tfirstLetter = temp.substring(0, 1).toUpperCase();\n\t\t\t\tsentences[i] = firstLetter + temp.substring(1);\n\t\t\t}\n\t\t\tStringBuilder newParagraph = new StringBuilder(sentences[0]);\n\t\t\tfor(int i = 1; i < sentences.length; i++){\n\t\t\t\tnewParagraph.append(\". \").append(sentences[i]);\n\t\t\t}\n\t\t\tnewText = newParagraph.append(\".\").toString();\n\n\t\t\treturn newText;\n\t\t}", "private void applyPattern(String pattern, boolean localized) {\n char zeroDigit = PATTERN_ZERO_DIGIT;\n char groupingSeparator = PATTERN_GROUPING_SEPARATOR;\n char decimalSeparator = PATTERN_DECIMAL_SEPARATOR;\n char percent = PATTERN_PERCENT;\n char perMill = PATTERN_PER_MILLE;\n char digit = PATTERN_DIGIT;\n char separator = PATTERN_SEPARATOR;\n char exponent = PATTERN_EXPONENT;\n char minus = PATTERN_MINUS;\n if (localized) {\n zeroDigit = symbols.getZeroDigit();\n groupingSeparator = symbols.getGroupingSeparator();\n decimalSeparator = symbols.getDecimalSeparator();\n percent = symbols.getPercent();\n perMill = symbols.getPerMill();\n digit = symbols.getDigit();\n separator = symbols.getPatternSeparator();\n exponent = symbols.getExponentialSymbol();\n minus = symbols.getMinusSign();\n }\n boolean gotNegative = false;\n\n decimalSeparatorAlwaysShown = false;\n isCurrencyFormat = false;\n useExponentialNotation = false;\n\n // Two variables are used to record the subrange of the pattern\n // occupied by phase 1. This is used during the processing of the\n // second pattern (the one representing negative numbers) to ensure\n // that no deviation exists in phase 1 between the two patterns.\n int phaseOneStart = 0;\n int phaseOneLength = 0;\n /**\n * Back-out comment : HShih boolean phaseTwo = false;\n */\n\n int start = 0;\n for (int j = 1; j >= 0 && start < pattern.length(); --j) {\n boolean inQuote = false;\n StringBuffer prefix = new StringBuffer();\n StringBuffer suffix = new StringBuffer();\n int decimalPos = -1;\n int multiplier = 1;\n int digitLeftCount = 0, zeroDigitCount = 0, digitRightCount = 0;\n byte groupingCount = -1;\n\n // The phase ranges from 0 to 2. Phase 0 is the prefix. Phase 1 is\n // the section of the pattern with digits, decimal separator,\n // grouping characters. Phase 2 is the suffix. In phases 0 and 2,\n // percent, permille, and currency symbols are recognized and\n // translated. The separation of the characters into phases is\n // strictly enforced; if phase 1 characters are to appear in the\n // suffix, for example, they must be quoted.\n int phase = 0;\n\n // The affix is either the prefix or the suffix.\n StringBuffer affix = prefix;\n\n for (int pos = start; pos < pattern.length(); ++pos) {\n char ch = pattern.charAt(pos);\n switch (phase) {\n case 0:\n case 2:\n // Process the prefix / suffix characters\n if (inQuote) {\n // A quote within quotes indicates either the\n // closing\n // quote or two quotes, which is a quote literal.\n // That\n // is,\n // we have the second quote in 'do' or 'don''t'.\n if (ch == QUOTE) {\n if ((pos + 1) < pattern.length() && pattern.charAt(pos + 1) == QUOTE) {\n ++pos;\n affix.append(\"''\"); // 'don''t'\n } else {\n inQuote = false; // 'do'\n }\n continue;\n }\n } else {\n // Process unquoted characters seen in prefix or\n // suffix\n // phase.\n if (ch == digit || ch == zeroDigit || ch == groupingSeparator || ch == decimalSeparator) {\n // Any of these characters implicitly begins the\n // next\n // phase. If we are in phase 2, there is no next\n // phase,\n // so these characters are illegal.\n /**\n * 1.2 Back-out comment : HShih Can't throw exception here. if (phase == 2) throw new IllegalArgumentException\n * (\"Unquoted special character '\" + ch + \"' in pattern \\\"\" + pattern + '\"');\n */\n phase = 1;\n if (j == 1)\n phaseOneStart = pos;\n --pos; // Reprocess this character\n continue;\n } else if (ch == CURRENCY_SIGN) {\n // Use lookahead to determine if the currency\n // sign\n // is\n // doubled or not.\n boolean doubled = (pos + 1) < pattern.length() && pattern.charAt(pos + 1) == CURRENCY_SIGN;\n if (doubled)\n ++pos; // Skip over the doubled character\n isCurrencyFormat = true;\n affix.append(doubled ? \"'\\u00A4\\u00A4\" : \"'\\u00A4\");\n continue;\n } else if (ch == QUOTE) {\n // A quote outside quotes indicates either the\n // opening\n // quote or two quotes, which is a quote\n // literal.\n // That is,\n // we have the first quote in 'do' or o''clock.\n if (ch == QUOTE) {\n if ((pos + 1) < pattern.length() && pattern.charAt(pos + 1) == QUOTE) {\n ++pos;\n affix.append(\"''\"); // o''clock\n } else {\n inQuote = true; // 'do'\n }\n continue;\n }\n } else if (ch == separator) {\n // Don't allow separators before we see digit\n // characters of phase\n // 1, and don't allow separators in the second\n // pattern (j == 0).\n if (phase == 0 || j == 0)\n throw new IllegalArgumentException(\"Unquoted special character '\" + ch + \"' in pattern \\\"\" + pattern + '\"');\n start = pos + 1;\n pos = pattern.length();\n continue;\n }\n\n // Next handle characters which are appended\n // directly.\n else if (ch == percent) {\n if (multiplier != 1)\n throw new IllegalArgumentException(\"Too many percent/permille characters in pattern \\\"\" + pattern + '\"');\n multiplier = 100;\n affix.append(\"'%\");\n continue;\n } else if (ch == perMill) {\n if (multiplier != 1)\n throw new IllegalArgumentException(\"Too many percent/permille characters in pattern \\\"\" + pattern + '\"');\n multiplier = 1000;\n affix.append(\"'\\u2030\");\n continue;\n } else if (ch == minus) {\n affix.append(\"'-\");\n continue;\n }\n }\n // Note that if we are within quotes, or if this is an\n // unquoted,\n // non-special character, then we usually fall through\n // to\n // here.\n affix.append(ch);\n break;\n case 1:\n // Phase one must be identical in the two sub-patterns.\n // We\n // enforce this by doing a direct comparison. While\n // processing the first sub-pattern, we just record its\n // length. While processing the second, we compare\n // characters.\n if (j == 1)\n ++phaseOneLength;\n else {\n /**\n * 1.2 Back-out comment : HShih if (ch != pattern.charAt(phaseOneStart++)) throw new IllegalArgumentException\n * (\"Subpattern mismatch in \\\"\" + pattern + '\"'); phaseTwo = true;\n */\n if (--phaseOneLength == 0) {\n phase = 2;\n affix = suffix;\n }\n continue;\n }\n\n // Process the digits, decimal, and grouping characters.\n // We\n // record five pieces of information. We expect the\n // digits\n // to occur in the pattern ####0000.####, and we record\n // the\n // number of left digits, zero (central) digits, and\n // right\n // digits. The position of the last grouping character\n // is\n // recorded (should be somewhere within the first two\n // blocks\n // of characters), as is the position of the decimal\n // point,\n // if any (should be in the zero digits). If there is no\n // decimal point, then there should be no right digits.\n if (ch == digit) {\n if (zeroDigitCount > 0)\n ++digitRightCount;\n else\n ++digitLeftCount;\n if (groupingCount >= 0 && decimalPos < 0)\n ++groupingCount;\n } else if (ch == zeroDigit) {\n if (digitRightCount > 0)\n throw new IllegalArgumentException(\"Unexpected '0' in pattern \\\"\" + pattern + '\"');\n ++zeroDigitCount;\n if (groupingCount >= 0 && decimalPos < 0)\n ++groupingCount;\n } else if (ch == groupingSeparator) {\n groupingCount = 0;\n } else if (ch == decimalSeparator) {\n if (decimalPos >= 0)\n throw new IllegalArgumentException(\"Multiple decimal separators in pattern \\\"\" + pattern + '\"');\n decimalPos = digitLeftCount + zeroDigitCount + digitRightCount;\n } else if (ch == exponent) {\n if (useExponentialNotation)\n throw new IllegalArgumentException(\"Multiple exponential \" + \"symbols in pattern \\\"\" + pattern + '\"');\n useExponentialNotation = true;\n minExponentDigits = 0;\n\n // Use lookahead to parse out the exponential part\n // of\n // the\n // pattern, then jump into phase 2.\n while (++pos < pattern.length() && pattern.charAt(pos) == zeroDigit) {\n ++minExponentDigits;\n ++phaseOneLength;\n }\n\n if ((digitLeftCount + zeroDigitCount) < 1 || minExponentDigits < 1)\n throw new IllegalArgumentException(\"Malformed exponential \" + \"pattern \\\"\" + pattern + '\"');\n\n // Transition to phase 2\n phase = 2;\n affix = suffix;\n --pos;\n continue;\n } else {\n phase = 2;\n affix = suffix;\n --pos;\n --phaseOneLength;\n continue;\n }\n break;\n }\n }\n /**\n * 1.2 Back-out comment : HShih if (phaseTwo && phaseOneLength > 0) throw new IllegalArgumentException(\"Subpattern mismatch in \\\"\" + pattern +\n * '\"');\n */\n // Handle patterns with no '0' pattern character. These patterns\n // are legal, but must be interpreted. \"##.###\" -> \"#0.###\".\n // \".###\" -> \".0##\".\n /*\n * We allow patterns of the form \"####\" to produce a zeroDigitCount\n * of zero (got that?); although this seems like it might make it\n * possible for format() to produce empty strings, format() checks\n * for this condition and outputs a zero digit in this situation.\n * Having a zeroDigitCount of zero yields a minimum integer digits\n * of zero, which allows proper round-trip patterns. That is, we\n * don't want \"#\" to become \"#0\" when toPattern() is called (even\n * though that's what it really is, semantically).\n */\n if (zeroDigitCount == 0 && digitLeftCount > 0 && decimalPos >= 0) {\n // Handle \"###.###\" and \"###.\" and \".###\"\n int n = decimalPos;\n if (n == 0)\n ++n; // Handle \".###\"\n digitRightCount = digitLeftCount - n;\n digitLeftCount = n - 1;\n zeroDigitCount = 1;\n }\n\n // Do syntax checking on the digits.\n if ((decimalPos < 0 && digitRightCount > 0)\n || (decimalPos >= 0 && (decimalPos < digitLeftCount || decimalPos > (digitLeftCount + zeroDigitCount))) || groupingCount == 0 || inQuote)\n throw new IllegalArgumentException(\"Malformed pattern \\\"\" + pattern + '\"');\n\n if (j == 1) {\n posPrefixPattern = prefix.toString();\n posSuffixPattern = suffix.toString();\n negPrefixPattern = posPrefixPattern; // assume these for now\n negSuffixPattern = posSuffixPattern;\n int digitTotalCount = digitLeftCount + zeroDigitCount + digitRightCount;\n /*\n * The effectiveDecimalPos is the position the decimal is at or\n * would be at if there is no decimal. Note that if\n * decimalPos<0, then digitTotalCount == digitLeftCount +\n * zeroDigitCount.\n */\n int effectiveDecimalPos = decimalPos >= 0 ? decimalPos : digitTotalCount;\n setMinimumIntegerDigits(effectiveDecimalPos - digitLeftCount);\n setMaximumIntegerDigits(useExponentialNotation ? digitLeftCount + getMinimumIntegerDigits() : DOUBLE_INTEGER_DIGITS);\n setMaximumFractionDigits(decimalPos >= 0 ? (digitTotalCount - decimalPos) : 0);\n setMinimumFractionDigits(decimalPos >= 0 ? (digitLeftCount + zeroDigitCount - decimalPos) : 0);\n setGroupingUsed(groupingCount > 0);\n this.groupingSize = (groupingCount > 0) ? groupingCount : 0;\n this.multiplier = multiplier;\n setDecimalSeparatorAlwaysShown(decimalPos == 0 || decimalPos == digitTotalCount);\n } else {\n negPrefixPattern = prefix.toString();\n negSuffixPattern = suffix.toString();\n gotNegative = true;\n }\n }\n\n if (pattern.length() == 0) {\n posPrefixPattern = posSuffixPattern = \"\";\n setMinimumIntegerDigits(0);\n setMaximumIntegerDigits(DOUBLE_INTEGER_DIGITS);\n setMinimumFractionDigits(0);\n setMaximumFractionDigits(DOUBLE_FRACTION_DIGITS);\n }\n\n // If there was no negative pattern, or if the negative pattern is\n // identical\n // to the positive pattern, then prepend the minus sign to the positive\n // pattern to form the negative pattern.\n if (!gotNegative || (negPrefixPattern.equals(posPrefixPattern) && negSuffixPattern.equals(posSuffixPattern))) {\n negSuffixPattern = posSuffixPattern;\n negPrefixPattern = \"'-\" + posPrefixPattern;\n }\n\n expandAffixes();\n }", "public static void main(String[] args) {\n\t double d=123456.789;\r\n\t\tNumberFormat nf=NumberFormat.getInstance(Locale.ITALY);\r\n\t\tNumberFormat nf1=NumberFormat.getInstance(Locale.US);\r\n\t\tNumberFormat nf2=NumberFormat.getInstance(Locale.ENGLISH);\r\n\t\tSystem.out.println(\"Italy representation of \" + d + \" : \"+nf.format(d));\r\n\t\tSystem.out.println(\"US representation of \" + d + \" : \" +nf1.format(d));\r\n\t\tSystem.out.println(\"Japan representation of \" + d + \" : \" +nf2.format(d));\r\n\t\t\r\n\t //DateTimeFormat in short,long and medium with getDateTimeInstance\r\n\t\tDateFormat df=DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT);\r\n\t System.out.println(\"Short format of date: \"+df.format(new Date()));\r\n\t DateFormat df1=DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG);\r\n\t System.out.println(\"Long format of date: \"+df1.format(new Date()));\r\n\t DateFormat df2=DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.MEDIUM);\r\n\t System.out.println(\"Medium format of date: \"+df2.format(new Date()));\r\n\t \r\n\t //Locale date format giving countries starting letters to get time but using only getDateInstance(de-denmark)\r\n\t DateFormat df3=DateFormat.getDateInstance(DateFormat.SHORT,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Short format of date: \"+df3.format(new Date()));\r\n\t DateFormat df4=DateFormat.getDateInstance(DateFormat.LONG,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Long format of date: \"+df4.format(new Date()));\r\n\t DateFormat df5=DateFormat.getDateInstance(DateFormat.MEDIUM,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Medium format of date: \"+df5.format(new Date()));\r\n\t \r\n\r\n}", "private String formatPropertyName(String property) {\r\n property = property.replace( '/', '.' );\r\n property = property.replace( '@', '.' );\r\n return StringExtend.validateString( property, \".\" );\r\n }", "java.lang.String getField1251();", "private void Button_BackSpaceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_BackSpaceActionPerformed\n // TODO add your handling code here:\n if(display.getText().length()!=0)\n {\n if(display.getText().charAt(display.getText().length()-1) == '.')\n {\n period = false;\n } \n \n display.setText(display.getText().substring(0, display.getText().length()-1));\n }\n if(display.getText() == null || display.getText().equals(\"\")) \n {\n display.setText(\"0\");\n }\n \n }", "abstract String toDot();", "public static String getValidName(String name) {\n return name.toLowerCase(Locale.getDefault()).replace(\"_\", \"-\").replace(\".\", \"-\");\n }", "public void prueba(){\r\n //Float f = Float.parseFloat(jtfValor.getText());\r\n String s = \"100.000,5\";\r\n \r\n String d = s.replace(\".\",\"\");\r\n // s.replaceAll(\",\", \".\");\r\n // s.trim();\r\n System.out.println(d);\r\n \r\n }", "@Override\n public String formatComplete (String complete)\n {\n if (complete == null || complete.isEmpty() || fromString(complete) != null)\n {\n return null;\n }\n else if (complete.matches(\"[0-9]{2}/[0-9]{2}/[0-9]{2}\"))\n {\n String textYear19 = \"19\" + complete.substring(6);\n String textYear20 = \"20\" + complete.substring(6);\n if (Integer.valueOf(textYear20) >= LocalDate.now().getYear() + 5)\n {\n return complete.substring(0, 6) + textYear19;\n }\n else\n {\n return complete.substring(0, 6) + textYear20;\n }\n }\n else if (complete.replaceAll(\"[^0-9]\", \"\").length() == 8)\n {\n String onlyDigits = complete.replaceAll(\"[^0-9]\", \"\");\n return onlyDigits.substring(0, 2) + \"/\" + onlyDigits.substring(2, 4) + \"/\" + onlyDigits.substring(4);\n }\n else\n {\n return null;\n }\n }", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "public String sanitize(String amount) {\n return amount.replaceAll(\"[^\\\\d.,]\", \"\");\n }", "public String getFormatedLanguageCode() {\n String result = \"\";\n final String name = this.name();\n final String[] nameArray = name.split(\"_\");\n\n if (nameArray.length == 1) {\n result = nameArray[0].toLowerCase();\n } else if (nameArray.length == 2) {\n result = nameArray[0].toLowerCase() + \"-\" + nameArray[1].toUpperCase();\n }\n\n return result;\n }", "private String cleanEmailAddress(String email) {\n return email.replace(\".\", \"-\");\n }", "public static String remove(String str){\n\t\tString str2 = str.trim();\n\t\tstr2 = str2.replaceAll(\"à|á|ả|ã|ạ|â|ầ|ấ|ẩ|ẫ|ậ|ằ|ắ|ẳ|ẵ|ặ|ă\", \"a\");\n\t\tstr2 = str2.replaceAll(\"í|ì|ỉ|ĩ|ị\",\"i\");\n\t\tstr2 = str2.replaceAll(\"ư|ứ|ừ|ử|ữ|ự|ú|ù|ủ|ũ|ụ\",\"u\");\n\t\tstr2 = str2.replaceAll(\"ế|ề|ể|ễ|ệ|é|è|ẻ|ẽ|ẹ|ê\",\"e\");\n\t\tstr2 = str2.replaceAll(\"ố|ồ|ổ|ỗ|ộ|ớ|ờ|ở|ỡ|ợ|ó|ò|ỏ|õ|ọ|ô|ơ\",\"o\");\n\t\tstr2= str2.replaceAll(\"ý|ỳ|ỷ|ỹ|ỵ\",\"y\");\n\t\t\n\t\tstr2 = str2.replaceAll(\"Ấ|Ầ|Ẩ|Ẫ|Ậ|Ắ|Ằ|Ẳ|Ẵ|Ặ|Á|À|Ả|Ã|Ạ|Â|Ă\",\"A\");\n\t\tstr2 = str2.replaceAll(\"Í|Ì|Ỉ|Ĩ|Ị\",\"I\");\n\t\tstr2 = str2.replaceAll(\"Ứ|Ừ|Ử|Ữ|Ự|Ú|Ù|Ủ|Ũ|Ụ|Ư\",\"U\");\n\t\tstr2 = str2.replaceAll(\"Ế|Ề|Ể|Ễ|Ệ|É|È|Ẻ|Ẽ|Ẹ|Ê\",\"E\");\n\t\tstr2 = str2.replaceAll(\"Ố|Ồ|Ổ|Ô|Ộ|Ớ|Ờ|Ở|Ỡ|Ợ|Ó|Ò|Ỏ|Õ|Ọ|Ô|Ơ\",\"O\");\n\t\tstr2= str2.replaceAll(\"Ý|Ỳ|Ỷ|Ỹ|Ỵ\",\"Y\");\n\t\tstr2 = str2.replaceAll(\"đ\",\"d\");\n\t\tstr2 = str2.replaceAll(\"Đ\",\"D\");\n\t\t\n\t\tstr2 = str2.replaceAll(\"ò\", \"\");\n\t\treturn str2;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n UnaryOperator<TextFormatter.Change> filter = new UnaryOperator<TextFormatter.Change>() {\r\n\r\n @Override\r\n public TextFormatter.Change apply(TextFormatter.Change t) {\r\n\r\n if (t.isReplaced()) \r\n if(t.getText().matches(\"[^0-9]\"))\r\n t.setText(t.getControlText().substring(t.getRangeStart(), t.getRangeEnd()));\r\n \r\n\r\n if (t.isAdded()) {\r\n if (t.getControlText().contains(\".\")) {\r\n if (t.getText().matches(\"[^0-9]\")) {\r\n t.setText(\"\");\r\n }\r\n } else if (t.getText().matches(\"[^0-9.]\")) {\r\n t.setText(\"\");\r\n }\r\n }\r\n\r\n return t;\r\n }\r\n };\r\n remis.setTextFormatter(new TextFormatter<>(filter));\r\n }", "String getValueFormat();", "private String prepare(String originStr)\r\n {\r\n String result=originStr.toLowerCase();\r\n result = result.replace('ä','a');\r\n result = result.replace('ö','o');\r\n result = result.replace('ü','u');\r\n// result = result.replace(':',' ');\r\n// result = result.replace(';',' ');\r\n// result = result.replace('<',' ');\r\n// result = result.replace('>',' ');\r\n// result = result.replace('=',' ');\r\n// result = result.replace('?',' ');\r\n// result = result.replace('[',' ');\r\n// result = result.replace(']',' ');\r\n// result = result.replace('/',' ');\r\n return result;\r\n }", "@Override\n public void afterTextChanged(Editable s) {\n if (s.length() > 4) {\n if (s.charAt(s.length() - 4) == '.') {\n s.delete(s.length() - 1, s.length());\n }\n }\n }", "public static String removePeriod(String s)\r\n/* 119: */ {\r\n/* 120:115 */ s = s.trim();\r\n/* 121:116 */ char last = s.charAt(s.length() - 1);\r\n/* 122:117 */ if (\".?!\".indexOf(last) >= 0) {\r\n/* 123:118 */ return s.substring(0, s.length() - 1).trim();\r\n/* 124: */ }\r\n/* 125:120 */ return s;\r\n/* 126: */ }", "static private String formats(String target)\n\t{\n\t\tString tmp = target.trim();\n\t\tif (tmp.length() < 1) return \"NaName\";\n\t\treturn (Character.toString(tmp.charAt(0)).toUpperCase()) + tmp.substring(1,tmp.length()).toLowerCase();\n\t}", "private static String removeSoftHyphens(String in) {\n String result = in.replaceAll(\"\\u00AD\", \"\");\n return result.length() == 0 ? \"-\" : result;\n }", "private void formatsetting() {\n SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Fetching thepatient_mobile_Number value form sharedpreferences\n String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,\"Thousands separator\");\n String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,\"2\");\n Settings settings=new Settings(FormattedString,DecimalplaceString);\n formatter= settings.setting();\n }", "private void formatsetting() {\n SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Fetching thepatient_mobile_Number value form sharedpreferences\n String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,\"Thousands separator\");\n String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,\"2\");\n Settings settings=new Settings(FormattedString,DecimalplaceString);\n formatter= settings.setting();\n }", "private String cleanName(String name) {\n int pt = name.indexOf('<');\n if (pt >= 0) name = name.substring(0,pt);\n name = name.replace(\"-\", \"\");\n if (name.startsWith(\".\")) name = name.substring(1);\n if (name.endsWith(\".\")) name = name.substring(0,name.length()-1);\n return name;\n }", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "public static String newFormat(String str) {\n\t\tString temp = Normalizer.normalize(str, Normalizer.Form.NFD);\n\t\tPattern pattern = Pattern.compile(\"\\\\p{InCombiningDiacriticalMarks}+\");\n\t\treturn pattern.matcher(temp).replaceAll(\"\");\n\t}", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "@VTID(8)\r\n java.lang.String format();", "public String changeLeguage(){\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tLocale miLocale = new Locale(\"en\",\"US\");\r\n\t\tcontext.getViewRoot().setLocale(miLocale);\r\n\t\treturn \"login\";\r\n\t}", "private String updateUnaryMinus(String expression) {\n String previous = expression.substring(0, 1);\n if (previous.equals(\"-\")) {\n expression = \"(0\" + expression + \")\";\n previous = \"0\";\n }\n if (expression.length() > 1) {\n for (int i = 1; i < expression.length(); i++) {\n if (expression.substring(i, i + 1).equals(\"-\") && !isNumber(previous)) {\n expression = expression.substring(0, i) + \"0\" + expression.substring(i, expression.length());\n previous = \"-\";\n i = i + 1;\n System.out.println(expression);\n } else previous = expression.substring(i, i + 1);\n }\n }\n return expression;\n }", "public static String formatString(String s) {\n char[] charArray = s.toCharArray();\n StringBuilder normalizedString = new StringBuilder();\n for (char character:charArray\n ) {\n if (character == 'd' || character == 'D'){\n normalizedString.append('d');\n continue;\n }\n normalizedString.append(Normalizer.normalize(String.valueOf(character), Normalizer.Form.NFD));\n }\n\n return normalizedString.toString().replaceAll(\"[^\\\\p{ASCII}]\", \"\");\n }", "public void btnEuro (View v) {\n\n convDevise(1,'€');\n\n }", "@Override\n public void setUp() {\n\n LocaleConvertUtils.deregister();\n\n final NumberFormat nf = NumberFormat.getNumberInstance();\n final String result = nf.format(1.1);\n\n // could be commas instead of stops in Europe.\n decimalSeparator = result.charAt(1);\n\n }", "private static String expandUmlauts(String name) {\n return name.toLowerCase().replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\");\n }", "public static String sanitizeForMRS(String in) {\r\n\t\treturn in.replaceAll(\"[\\\"\\u2018\\u2019\\u201c\\u201d]\", \"'\").replaceAll(\"[\\u2026\\u22ef]\", \"...\").replaceAll(\"[\\u2010\\u2011\\u2012\\u2013\\u2014\\u2015]\", \"-\").replaceAll(\"[&+]\", \"and\");\r\n\t}", "private String toPattern(boolean localized) {\n StringBuffer result = new StringBuffer();\n for (int j = 1; j >= 0; --j) {\n if (j == 1)\n appendAffix(result, posPrefixPattern, positivePrefix, localized);\n else\n appendAffix(result, negPrefixPattern, negativePrefix, localized);\n int i;\n int digitCount = useExponentialNotation ? getMaximumIntegerDigits() : Math.max(groupingSize, getMinimumIntegerDigits()) + 1;\n for (i = digitCount; i > 0; --i) {\n if (i != digitCount && isGroupingUsed() && groupingSize != 0 && i % groupingSize == 0) {\n result.append(localized ? symbols.getGroupingSeparator() : PATTERN_GROUPING_SEPARATOR);\n }\n result.append(i <= getMinimumIntegerDigits() ? (localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT) : (localized ? symbols.getDigit()\n : PATTERN_DIGIT));\n }\n if (getMaximumFractionDigits() > 0 || decimalSeparatorAlwaysShown)\n result.append(localized ? symbols.getDecimalSeparator() : PATTERN_DECIMAL_SEPARATOR);\n for (i = 0; i < getMaximumFractionDigits(); ++i) {\n if (i < getMinimumFractionDigits()) {\n result.append(localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT);\n } else {\n result.append(localized ? symbols.getDigit() : PATTERN_DIGIT);\n }\n }\n if (useExponentialNotation) {\n result.append(localized ? symbols.getExponentialSymbol() : PATTERN_EXPONENT);\n for (i = 0; i < minExponentDigits; ++i)\n result.append(localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT);\n }\n if (j == 1) {\n appendAffix(result, posSuffixPattern, positiveSuffix, localized);\n if ((negSuffixPattern == posSuffixPattern && // n == p == null\n negativeSuffix.equals(positiveSuffix))\n || (negSuffixPattern != null && negSuffixPattern.equals(posSuffixPattern))) {\n if ((negPrefixPattern != null && posPrefixPattern != null && negPrefixPattern.equals(\"'-\" + posPrefixPattern))\n || (negPrefixPattern == posPrefixPattern && // n ==\n // p ==\n // null\n negativePrefix.equals(symbols.getMinusSign() + positivePrefix)))\n break;\n }\n result.append(localized ? symbols.getPatternSeparator() : PATTERN_SEPARATOR);\n } else\n appendAffix(result, negSuffixPattern, negativeSuffix, localized);\n }\n return result.toString();\n }", "public String abbreviatedCellText(){\n\t\tString abbreviatedText = \"\";\n\t\tif(userInput.length() < 10){\n\t\t\tif(userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput.substring(0, userInput.indexOf(\".\")) + \"%\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(userInput.equals(\"0.0\")){\n\t\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\".\") && !userInput.contains(\"(\") && !userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput + \".0\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\"(\")){\n\t\t\t\tfor(int i = userInput.length() - 1; i > 0; i--){\n\t\t\t\t\tif(userInput.charAt(userInput.length() - 1) == '0'){\n\t\t\t\t\t\tif(userInput.charAt(userInput.length() - 2) == '0'){\n\t\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(userInput.charAt(userInput.length() - 1) == '.'){\n\t\t\t\tuserInput += \"0\";\n\t\t\t}\n\t\t}else if(userInput.length() > 10){\n\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t}\n\t\treturn (userInput + \" \").substring(0, 10); \n\t}", "private String formatOutput(String raw) {\r\n // Remove quotes\r\n String formatted = raw.replace(\"\\\"\", \"\");\r\n //Capitalize first letter\r\n formatted = formatted.substring(0,1).toUpperCase() + formatted.substring(1);\r\n \r\n return formatted;\r\n }", "public static String Converterback(String z)\n\t{\n\n\t\t\n\t\tswitch(z)\n\t\t{\n\t\tcase \"10\":\n\t\t\treturn \"A\";\n\t\tcase \"11\":\n\t\t\treturn \"B\";\n\t\tcase \"12\":\n\t\t\treturn \"C\";\n\t\tcase \"13\":\n\t\t\treturn \"D\";\n\t\tcase \"14\":\n\t\t\treturn \"E\";\n\t\tcase \"15\":\n\t\t\treturn \"F\";\n\t\t}\n\t\treturn z;\n\t}", "private void Button_MinusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_MinusActionPerformed\n // TODO add your handling code here:\n if(display.getText().charAt(display.getText().length()-1) != '+' && \n display.getText().charAt(display.getText().length()-1) != '-' &&\n display.getText().charAt(display.getText().length()-1) != '/' &&\n display.getText().charAt(display.getText().length()-1) != '*')\n display.setText(display.getText() + \"-\");\n period = false;\n }", "@Override\n\tprotected String formatted(Walue _) {\n\t\treturn \"\";\n\t}", "private String getSplitCapitalPeriodSent(String text) {\n\t\t\r\n\t\tString testString = text;\r\n\t\t\r\n\t\t/*\r\n\t\ttestString = testString.replaceAll(\"\\\\·\", \".\"); // To avoid the error ClausIE spliter: the dash will disappear\r\n\t\t// https://d5gate.ag5.mpi-sb.mpg.de/ClausIEGate/ClausIEGate?inputtext=Optimal+temperature+and+pH+for+growth+are+25%E2%80%9330+%CB%9AC+and+pH+7%2C+respectively.&processCcAllVerbs=true&processCcNonVerbs=true&type=true&go=Extract\r\n\t\ttestString = testString.replaceAll(\"\\\\s?\\\\·\\\\s?\", \".\"); // To avoid the error ClausIE spliter: the dash will disappear\r\n\t\t\r\n\t\ttestString = testString.replaceAll(\"–\", \"-\"); // To avoid the error ClausIE spliter: the dash will disappear\r\n\t\t// https://d5gate.ag5.mpi-sb.mpg.de/ClausIEGate/ClausIEGate?inputtext=Optimal+temperature+and+pH+for+growth+are+25%E2%80%9330+%CB%9AC+and+pH+7%2C+respectively.&processCcAllVerbs=true&processCcNonVerbs=true&type=true&go=Extract\r\n\t\ttestString = testString.replaceAll(\"\\\\s?-\\\\s?\", \"-\"); // To avoid the error ClausIE spliter: the dash will disappear\r\n\t\t*/\r\n\t\t\r\n\t\t// System.out.println(\"testString::Before::\" + testString);\r\n\t\t\r\n\t\tString targetPatternString = \"(\\\\s[A-Z]\\\\.\\\\s)\";\r\n\t\tPattern pattern = Pattern.compile(targetPatternString);\r\n\t\tMatcher matcher = pattern.matcher(testString);\r\n\t\t\r\n\t\twhile (matcher.find()) {\r\n\t\t\t// System.out.println(\"Whloe Sent::\" + matcher.group());\r\n\t\t\t// System.out.println(\"Part 1::\" + matcher.group(1));\r\n\t\t\t// System.out.println(\"Part 2::\" + matcher.group(2));\r\n\t\t\t// System.out.println(\"Part 3::\" + matcher.group(3));\r\n\t\t\t\r\n\t\t\tString matchString = matcher.group(1);\r\n\t\t\t\r\n\t\t\tString newMatchString = \"\";\r\n\t\t\tfor ( int j = 0; j < matchString.length(); j++ ) {\r\n\t\t\t\tnewMatchString += matchString.substring(j, j+1) + \" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"getSplitCapitalPeriodSent::OriginalSent::\" + text);\r\n\t\t\tSystem.out.println(\"matchString:: \" + matchString);\r\n\t\t\tSystem.out.println(\"newMatchString:: \" + newMatchString);\r\n\t\t\t\r\n\t\t\tlog(LogLevel.INFO, \"getSplitCapitalPeriodSent::OriginalSent::\" + text);\r\n\t\t\tlog(LogLevel.INFO, \"matchString:: \" + matchString);\r\n\t\t\tlog(LogLevel.INFO, \"newMatchString:: \" + newMatchString);\r\n\t\t\t\r\n\t\t\ttestString = testString.replaceAll(matcher.group(1), newMatchString);\r\n\t\t\t\r\n\t\t\t// String matchResult = matcher.group(1);\r\n\t\t\t// System.out.println(\"matchResult::\" + matchResult);\r\n\t\t}\r\n\t\t\r\n\t\t// System.out.println(\"testString::After::\" + testString);\r\n\t\t\r\n\t\treturn testString;\r\n\t\t\r\n\t}", "String getFormat();", "String getFormat();", "String getFormat();", "public static String limpiaRut(String rutLimpia) {\n\n\t\tString sinPunto = rutLimpia.replace(\".\", \"\");\n\t\treturn sinPunto.replace(\"-\", \"\");\n\n\t}", "public void localize(){\n String file=System.getProperty(\"user.home\")+ File.separator + \"rex.properties\";\n Properties rexProp = new Properties();\n try{\n\n rexProp.load(new FileInputStream(new File(file)));\n \n }catch(Exception e){\n S.out(\"Error reading rex.properties file\"); \n }\n strLanguage= rexProp.getProperty(\"Language\");\n \n if (strLanguage!=\"\"){\n Locale oLang= new Locale(strLanguage);\n I18n.setCurrentLocale(oLang);\n }\n else{\n I18n.setCurrentLocale(Locale.getDefault()); //set default locale\n }\n\n }", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "private FormatUtilities() {}", "protected static String cleanFormat(Double d) {\n\t\tif(d<0) return \"-\"+cleanFormat(d*-1.0);\n\t\tString result = String.format(Locale.US, \"%f\", d).replaceAll(\"([\\\\.])?0+$\",\"\");\n\t\tif(Math.abs(Double.parseDouble(result)-d) < 0.000001) return result;\n\t\tSystem.err.print(\"warning: String.format(\"+d+\")=\\\"\"+result+\"\\\"\");\n\t\tresult=\"\";\n\t\tint dimension = (int)Math.log10(d);\n\t\tif(dimension<0) result=\"0.\";\n\t\twhile(d>(double)Float.MIN_VALUE) {\n\t\t\t// System.err.print(\"cleanFormat(\"+d+\")=\");\n\t\t\tdouble base = Math.pow(10.0, (double)dimension);\n\t\t\tresult=result+(int)(d/base);\n\t\t\tif(d % base>(double)Float.MIN_VALUE) {\n\t\t\t\td=d % base;\n\t\t\t\tif(dimension==0 && d>(double)Float.MIN_VALUE)\n\t\t\t\t\tresult=result+\".\";\n\t\t\t\tdimension--;\n\t\t\t} else d=(double)Float.MIN_VALUE;\n\t\t\t// System.err.println(result);\n\t\t}\n\t\tSystem.err.println(\" => \\\"\"+result+\"\\\"\");\n\t\treturn result;\n\t}", "public String reFormatStringForURL(String string) {\n\t\t string = string.toLowerCase().replaceAll(\" \", \"-\").replaceAll(\"--\", \"-\");\n\t\t if(string.endsWith(\"-\")) { string = string.substring(0, (string.length() - 1)); }\n\t\t return string;\n\t\t }", "private String resolveLrc(String origin) {\n String str = new String(origin);\n\n // remove all the valid time tags ([mm:ss.xx]) with an empty string\n str = str.replaceAll(\"\\\\[\\\\d\\\\d:[0-5]\\\\d\\\\.\\\\d\\\\d\\\\]|\\\\[\\\\d\\\\d:[0-5]\\\\d\\\\]\", \"\");\n // remove all extended time tags (<mm:ss.xx> format)\n str = str.replaceAll(\"\\\\<\\\\d\\\\d:[0-5]\\\\d\\\\.\\\\d\\\\d\\\\>|\\\\<\\\\d\\\\d:[0-5]\\\\d\\\\>\", \"\");\n\n str.trim();\n return str;\n }", "public static String formatText(String t) {\r\n if (t.length() > 0) {\r\n char chars[] = t.toCharArray();\r\n for (int index = 0; index < chars.length; index++)\r\n if (chars[index] == '_') {\r\n chars[index] = ' ';\r\n if (index + 1 < chars.length && chars[index + 1] >= 'a' && chars[index + 1] <= 'z')\r\n chars[index + 1] = (char) ((chars[index + 1] + 65) - 97);\r\n }\r\n\r\n if (chars[0] >= 'a' && chars[0] <= 'z')\r\n chars[0] = (char) ((chars[0] + 65) - 97);\r\n return new String(chars);\r\n } else {\r\n return t;\r\n }\r\n }", "public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }", "public String umlauteErsetzen(String quellcode){\r\n\t\t // HTML Umlaute werden ersetzt\r\n\t\t quellcode = quellcode.replaceAll(\"&uuml;\",\"ü\");\r\n\t\t quellcode = quellcode.replaceAll(\"&Uuml;\",\"Ü\");\r\n\t\t quellcode = quellcode.replaceAll(\"&ouml;\",\"ö\");\r\n\t\t quellcode = quellcode.replaceAll(\"&Ouml;\",\"Ö\");\r\n\t\t quellcode = quellcode.replaceAll(\"&auml;\",\"ä\");\r\n\t\t quellcode = quellcode.replaceAll(\"&Auml;\",\"Ä\");\r\n\t\t quellcode = quellcode.replaceAll(\"&szlig;\",\"ß\");\r\n\t\t \r\n\t\t return quellcode;\r\n\t}", "public String ocultarPalabra(String palabra){\n String resultado=\"\";\n for(int i=0;i<palabra.length();i++){\n resultado+=\"-\";\n }\n return resultado;\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "private String getFormatattedTxt(String inputTxt, int txtLength) {\n\t\tint fulllength = inputTxt.length(); // full length gives the length of IR number\n\t\tint rellength = txtLength + 4; //Inv Number + 'IRX' + '-'\n\t\tint temp = fulllength - rellength;\n\t\tString formattedTxt = \"\";\n\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: int temp \" + temp);\n\n\t\tinputTxt = inputTxt.substring(rellength, fulllength);\n\n\n\t\tformattedTxt = \"IRX-\" + inputTxt;\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: formattedTxt \" + formattedTxt);\n\t\treturn formattedTxt;\n\n\t\t}", "private CharSequence replacewithUni(String uni1, String myString2) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "public void begin() throws FileNotFoundException, InvalidParsingException\n {\n String language = \"ru\";\n locale = new Locale(language);\n messages = ResourceBundle.getBundle(\"property/locale\", locale);\n\n\n\n String s = \"\";\n Scanner in = new Scanner(new File(\"input.txt\"));\n while(in.hasNext())\n s += in.nextLine() + \"\\r\\n\";\n in.close();\n TextParser textParser = new TextParser();\n Text parsedText = textParser.splitText(s);\n System.out.println(\"\\nПечать текста в его оригинальном виде:\\n\" + parsedText);\n ArrayList<Word> t=parsedText.getAllTextWords();\n\n\n ArrayList<Word> wordList = sortWords(parsedText);\n\n System.out.println(\"\\nСортировка слов текста в алфавитном порядке по первой букве:\");\n\n System.out.print(\"\\t\");\n for (int i=0; i<wordList.size();i++)\n {\n if (i > 0 && wordList.get(i).toString().charAt(0) != wordList.get(i - 1).toString().charAt(0))\n {\n System.out.print(\"\\n\\t\");\n }\n System.out.print(wordList.get(i) + \" \");\n }\n\n String textStr = parsedText.toString();\n String max_str = \"\";\n String curr_str = \"\";\n System.out.println(\"\\n\\nПервая подстрока максимальной длины в тексте, не содержащая букв:\");\n for (int i=0; i < textStr.length(); i++)\n {\n if (Character.isLetter(textStr.charAt(i)))\n {\n curr_str = \"\";\n }\n else\n {\n curr_str += textStr.charAt(i);\n if (curr_str.length() > max_str.length())\n {\n max_str = curr_str;\n }\n }\n }\n System.out.println(max_str);\n\n String upperText = \"\";\n upperText = upperText + textStr.substring(0, 1).toUpperCase();\n for (int i = 1; i < textStr.length(); i++) {\n // смотрим, был ли слева пробел:\n if (\" \".equals(textStr.substring(i-1, i)))\n upperText = upperText + textStr.substring(i, i+1).toUpperCase();\n else\n upperText = upperText + textStr.substring(i, i+1);\n }\n\n System.out.println(\"\\nИсходный текст, но теперь каждое его слово с заглавной буквы:\");\n System.out.println(upperText);\n\n }", "private boolean isValid(String s, boolean hasDot) {\n\t if (s.length() > 0 && (s.charAt(0) == '+' || s.charAt(0) == '-')) {\n\t \ts = s.substring(1);\n\t }\n\t \n\t if (s.isEmpty() || s.equals(\".\")) {\n\t \treturn false;\n\t }\n\t \n\t for (int i = 0; i<s.length(); i++) {\n\t \tchar c = s.charAt(i);\n\t if (c == '.') {\n\t \t//can not have a second dot\n\t if (hasDot) {\n\t \treturn false;\n\t }\t \n\t hasDot = true;\n\t } else if (!('0' <= c && c <= '9')) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}", "private String sanitize(String str) {\n\t\tstr = str.replace(COMPLETION_LEFT_SEP, \n\t\t\t\tCOMPLETION_LEFT_SEP + COMPLETION_LEFT_SEP);\n\t\tstr = str.replace(COMPLETION_RIGHT_SEP, \n\t\t\t\tCOMPLETION_RIGHT_SEP + COMPLETION_RIGHT_SEP);\n\t\treturn str;\n\t}", "private void prepareInput() {\n\t\tif(input.charAt(0) == '-') input = \"0\" + input;\n\t\tfor(int i = 0; i < input.length() - 1; i++) {\n\t\t\tif(input.charAt(i) == '(' && input.charAt(i+1) == '-') input = input.substring(0, i+1) + \"0\" + input.substring(i+1); \n\t\t}\n\t}", "private static String translateIllegalKey(final String key, final boolean revert) {\n if (revert) {\n return key.replaceAll(DOT_STRING_REPLACEMENT, DOT_STRING).replaceAll(DASH_STRING_REPLACEMENT, DASH_STRING);\n }\n else {\n return key.replaceAll(DOT_STRING, DOT_STRING_REPLACEMENT).replaceAll(DASH_STRING, DASH_STRING_REPLACEMENT);\n }\n }", "String formatPhoneNumber(String phoneNumber);", "public static String removeBuailte(String s) {\n String out = \"\";\n char[] ca = s.toCharArray();\n for(int i = 0; i < ca.length; i++) {\n char undotted = removeDot(ca[i]);\n if(undotted == ca[i]) {\n out += ca[i];\n } else {\n if(Character.isLowerCase(ca[i])) {\n out += undotted;\n out += 'h';\n } else {\n if((i == 0 && ca.length == 1)\n || (ca.length > (i + 1) && Character.isUpperCase(ca[i + 1]))\n || ((i > 0) && (i == ca.length - 1) && Character.isUpperCase(ca[i - 1]))) {\n out += undotted;\n out += 'H';\n } else {\n out += undotted;\n out += 'h';\n }\n }\n }\n }\n return out;\n }", "public static String formatCasesAndUnits(long RawCase, long Units){\n\t\treturn RawCase + \"~\" + Units;\n\t}", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "java.lang.String getLocale();", "public static String guessFormat(String datStr) throws HISDateException {\r\n String formatStr = null;\r\n\r\n // Prüfe Separatoren:\r\n char sep = 0;\r\n int nofSeparatorTypes = 0;\r\n for (int i = 0; i < ALLOWED_SEPARATORS.length(); i++) {\r\n char actualSep = ALLOWED_SEPARATORS.charAt(i);\r\n if (datStr.indexOf(actualSep) > -1) {\r\n // Potentieller Separator kommt vor...\r\n nofSeparatorTypes++;\r\n sep = actualSep;\r\n }\r\n }\r\n if (nofSeparatorTypes == 0) {\r\n throw new HISDateException(\"Datumsangabe \" + datStr + \" enthält kein erlaubtes Separator-Zeichen!\");\r\n } else if (nofSeparatorTypes > 1) {\r\n throw new HISDateException(\"Datumsangabe \" + datStr + \" enthält mehrere erlaubte Separator-Zeichen!\");\r\n }\r\n\r\n // Es kommt nur ein erlaubter Separator vor. Auswertung:\r\n // TODO: Mit substKeysCheckFormat() abgleichen !!\r\n if (sep == '.') {\r\n formatStr = \"DMY.\"; // German\r\n } else if (sep == '-') {\r\n formatStr = \"YMD-\"; // ISO\r\n } else if (sep == '/') {\r\n // Bei '/' isses ein bisschen kniffliger...\r\n StringTokenizer datTokenizer = new StringTokenizer(datStr, \"/\");\r\n String val1 = datTokenizer.nextToken();\r\n int l1 = val1.length();\r\n String val2 = datTokenizer.nextToken();\r\n int l2 = val2.length();\r\n String val3 = datTokenizer.nextToken();\r\n int l3 = val3.length();\r\n if ((l1 > 2) || ((l1 == 2) && (l2 < 2) && (l3 < 2))) {\r\n formatStr = \"YMD/\";\r\n } else if ((l3 > 2) || ((l3 == 2) && (l1 < 2) && (l2 < 2))) {\r\n formatStr = \"DMY/\";\r\n } else {\r\n throw new HISDateException(\"Datumsangabe \" + datStr + \" ist mehrdeutig, kann Format nicht ableiten!\");\r\n }\r\n } else {\r\n throw new HISDateException(\"Auswertung für Separator-Typ noch nicht implementiert!\");\r\n }\r\n\r\n return formatStr;\r\n }", "@Test\n\tpublic final void testUmlaut() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\t// U - upper case\n\t\tassertSingleResult(\"2797607\", fldName, \"Über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"uber\");\n\t\t// u - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwürdigkeit\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwurdigkeit\");\n\t\t// o - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomäki\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomaki\");\n\t}", "private String regex() {\n final List<String> keys = new LinkedList<>();\n for (final String key : this.template.split(\"\\\\.\")) {\n if (key.equals(\"*\")) {\n keys.add(\"\\\\w+\");\n } else {\n keys.add(key);\n }\n }\n return String.join(\"\\\\.\", keys);\n }", "public static String formatter(String s) {\n return s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n }", "public String messageRenvoyeeUI (int num){\r\n\t\t\r\n\t\tswitch(num){\r\n\t\t\tcase 5 : return \"-\\n\";\r\n\t\t\t\t\r\n\t\t\tcase 4 : return \"-\\n\";\r\n\t\t\t\r\n\t\t\tcase 3 : return \"-Echec de l'enregistrement des RDV\\n\";\r\n\t\t\t\r\n\t\t\tcase 2 : return \"-Enregistrement des RDV terminé\\n\";\r\n\t\t\t\r\n\t\t\tcase -1 : return \"-Un moniteur doit être selectionné pour le RDV surligné.\\n\";\r\n\t\t\t\r\n\t\t\tcase -2 : return \"-La durée du RDV surligné présente un format invalide pour son enregistrement.\\n\";\r\n\t\t\t\r\n\t\t\tcase -3 : return \"-L'horaire du RDV surligné présente un format invalide pour son enregistrement.\\n\";\r\n\t\t\t\r\n\t\t\tcase -4 : return \"-La date de RDV surligné ne peut pas être antérieur à la date actuelle\\n\";\r\n\t\t\t\r\n\t\t\tcase -5 : return \"-La date de RDV surligné présente un format invalide pour son enregistrement.\";\r\n\t\t\t\r\n\t\t\tcase -6 : return \"-L'horaire du RDV surligné est invalide : les heures sont compris entre \"+AUTO_ECOLE_OUVERTURE+\"h et \"+AUTO_ECOLE_FERMETURE+\"h\\n\";\r\n\t\t\t\r\n\t\t\tcase -7 : return \"-L'horaire du RDV surligné est invalide : les minutes sont compris entre 0 et 59.\\n\";\r\n\t\t\t\r\n\t\t\tcase -8 : return \"-Le RDV surligné est chevauché par un autre RDV.\\n\";\r\n\t\t\t\r\n\t\t\tcase -9 : return \"-\"+msgIntegriteMoniteur+\"\\n\";\r\n\t\t}\r\n\t\t\r\n\t\treturn \"\";\r\n\t\t\r\n\t}", "public static String modifyResultName(String sName) {\n\n sName = sName.replaceAll(\"\\\\.\", \"_\");\n sName = sName.replaceAll(\" \", \"_\");\n sName = sName.replaceAll(\"\\\\[\", \"_\");\n sName = sName.replaceAll(\"\\\\]\", \"_\");\n sName = sName.replaceAll(\"\\\\(\", \"_\");\n sName = sName.replaceAll(\"\\\\)\", \"_\");\n sName = sName.replaceAll(\"á\", \"a\");\n sName = sName.replaceAll(\"é\", \"e\");\n sName = sName.replaceAll(\"í\", \"i\");\n sName = sName.replaceAll(\"ó\", \"o\");\n sName = sName.replaceAll(\"ú\", \"u\");\n sName = sName.replaceAll(\"ñ\", \"n\");\n\n return sName;\n\n }", "private String formatStr(String s) {\r\n\t\treturn formatStr(s, null, null);\r\n\t}", "private CharSequence replacewithXUi(String Xuni, String myUi) {\n \ttry {\n JSONArray rule_array = new JSONArray(Xuni);\n int max_loop = rule_array.length();\n myUi = myUi.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myUi = myUi.replaceAll(from, to);\n myUi = myUi.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n \tmyUi = myUi.replace(\"\\uFFFF\\uFFFF\", \"null\");\n \n return myUi;\n\t\t\n\t}", "void format();" ]
[ "0.59426963", "0.5629787", "0.5567372", "0.54356056", "0.53570485", "0.5342381", "0.5223613", "0.521764", "0.51801336", "0.5108576", "0.5087991", "0.5081667", "0.504083", "0.50223345", "0.5014369", "0.49982205", "0.49923864", "0.49867216", "0.49798632", "0.49755198", "0.49428353", "0.49199262", "0.49196085", "0.4918306", "0.49143386", "0.49125686", "0.48865086", "0.48820826", "0.48789367", "0.48779714", "0.48769745", "0.4833096", "0.48187461", "0.48165596", "0.4807271", "0.48028293", "0.47970086", "0.479471", "0.47868514", "0.47860104", "0.47796795", "0.47735903", "0.4771418", "0.4771418", "0.47664285", "0.47618738", "0.4752387", "0.47477663", "0.4746067", "0.47434783", "0.47281456", "0.47260976", "0.47181472", "0.4714375", "0.47087666", "0.47076625", "0.47050586", "0.47034168", "0.46940777", "0.4693336", "0.46896905", "0.46872145", "0.4686334", "0.4684954", "0.4671989", "0.4671989", "0.4671989", "0.46709836", "0.46673766", "0.46663722", "0.46539736", "0.4653034", "0.46520835", "0.464825", "0.4645983", "0.46372736", "0.46262872", "0.46258315", "0.46213654", "0.46197054", "0.46182746", "0.46178058", "0.46086302", "0.46069747", "0.46050987", "0.45956576", "0.4590945", "0.45732576", "0.45694485", "0.4565556", "0.4559977", "0.45383686", "0.4530972", "0.45232528", "0.44908515", "0.4488807", "0.44854498", "0.44837376", "0.44717687", "0.4463312" ]
0.6152328
0
method to print start menu with available options
public static void imprimirMenu() { System.out.println("---------------------------menu---------------------------"); System.out.println("opciones: (ingrese como RF#)"); System.out.println("RF1: iniciar sesion "); System.out.println("RF2: registrarse al sistema"); System.out.println("RF3: Salir"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "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 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 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}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "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 }", "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}", "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 }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "public void printMenu()\n\t{\n\t\tSystem.out.println(SearchMenu.MENU_HEAD);\n\t\tSystem.out.println(SearchMenu.TYPE_MESSAGE );\n\t\tSystem.out.println(SearchMenu.QUIT);\n\t\tSystem.out.println(SearchMenu.MENU_TAIL);\n\t\tSystem.out.println(SearchMenu.INPUT_PROMPT);\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 }", "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 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 }", "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 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 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 }", "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}", "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 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 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 printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "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 printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\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 printLoggedInMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \n\t\t\"1.Search Users\", \"2.Search Movies\", \"3.View Feed\", \"4.View Profile\", \"5.Logout\", \"6.Exit\");\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 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}", "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 static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\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 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 printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\n\t}", "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 }", "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}", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\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 }", "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 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}", "private String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "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 static void printMenu(){\r\n try{\r\n Thread.sleep(100);\r\n }catch(Exception e){}\r\n System.out.println(\"Use numbers to choose a option:\");\r\n System.out.println(\"1.- New Order.\");\r\n System.out.println(\"2.- Add to exist Order.\");\r\n System.out.println(\"3.- Show Order.\");\r\n System.out.println(\"4.- Administration.\");\r\n System.out.println(\"5.- Exit.\");\r\n System.out.print(\"-> \");\r\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 }", "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 static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\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 static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\n }", "public void print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\n }", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\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 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 }", "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 }", "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 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 }", "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 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 static void menu() {\n\t\tSystem.out.println(\"\\nPlease select which type of argument to generate by entering the associated number.\\n\");\n\t\tfor(int i = 0; i < type.length; i++) {\n\t\t\tSystem.out.println((i+1)+\". \"+type[i]);\n\t\t}\n\t\tSystem.out.println(\"8. Quit\");\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 void printOptions() {\n\t\t\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 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 menuOptions(String type) {\n System.out.println(\"\\n\" + \"To select an option, type what's inside the parenthesis.\");\n System.out.println(\"While in a sub-menu -> (0) Back out of a sub-menu. \\n\");\n System.out.println(\"Main Menu\");\n if (type.equals(\"Attendee\") || type.equals(\"VIP\")) {\n System.out.println(\"(1a) Message, (2a) Contacts, (3a) Signup, (4a) See Attendee Schedule\");\n System.out.println(\"(5a) Get Event Details, (6a) View Conference Schedule, \"+\n \" (p) Export the conference schedule to a PDF\");\n } else if (type.equals(\"Organizer\")) {\n System.out.println(\"(1o) Message, (2o) Contacts, (3o) View Conference Schedule\");\n System.out.println(\"(4o) Modify Events, (5o) Add room, (6o) Create a User account\"+\n \" (p) Export the conference schedule to a PDF\");\n System.out.println(\"(7o) View Current Rooms, (8o) Get Event Details\");\n } else if (type.equals(\"Speaker\")) {\n System.out.println(\"(1s) Message, (2s) Contacts, (3s) See Speaker Schedule\");\n System.out.println(\"(4s) Get Event Details, (5s) View Conference Schedule\"+\n \" (p) Export the conference schedule to a PDF\");\n }\n System.out.println(\"Type Quit to logout\");\n }", "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 }", "void printPlaylistMenu(){\n\t\tSystem.out.println(\"\\n\\nPlaylist Menu:\");\n\t\tSystem.out.println(\"1. Delete Song: delete <song id>\");\n\t\tSystem.out.println(\"2. Insert Song: insert <song id>\");\n\t\tSystem.out.println(\"3. Search and Insert Song: insert_search title/artist <string of words to be searched>\");\n\t\tSystem.out.println(\"4. Print Playlist: print\");\n\t\tSystem.out.println(\"5. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Main Menu: main\");\n\t\tSystem.out.print(\"Enter a Command : \");\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 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 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}", "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}", "public static void showMenu(String[] options, boolean showNumbers){\n header(options[0]);\n if (showNumbers){\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%2.2s.- %-41.41s%-1s|\" + EOF, \"\", i, options[i], \"\");\n } else {\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%-46.46s%-1s|\" + EOF, \"\", options[i], \"\");\n } \n System.out.println(\"+================================================+\");\n }", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "public static void printMenu(BankAgency ag) {\n\t\tSystem.out.println(\"Menu of \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\");\n\t\tSystem.out.println(\"1 - List of the Agency accounts\");\n\t\tSystem.out.println(\"2 - See an account (by its number)\");\n\t\tSystem.out.println(\"3 - Operation on account\");\n\t\tSystem.out.println(\"4 - Account management\");\n\t\tSystem.out.println(\"0 - Quit\");\n\t\tSystem.out.print(\"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 mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\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 void PrintMenu() throws IOException {\r\n\t\t//loop the menu until the user chooses to quit\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"Welcome to the EnigmaMachine command interface!\");\r\n\t\t\tSystem.out.println(\"Enter 1 to add the plugs\");\r\n\t\t\tSystem.out.println(\"Enter 2 to add the rotors\");\r\n\t\t\tSystem.out.println(\"Enter 3 to add the reflector\");\r\n\t\t\tSystem.out.println(\"Enter 4 to enter the message\");\r\n\t\t\tSystem.out.println(\"Enter 5 to quit the menu and start the machine\");\r\n\t\t\t\r\n\t\t\tint option = this.readIntegerFromCmd();\r\n\t\t\t//jump to different method according to the input of the user\r\n\t\t\tif (option == 1) {\r\n\t\t\t\tthis.addPlug();\r\n\t\t\t}else if (option == 2) {\r\n\t\t\t\tthis.addRotors();\r\n\t\t\t}else if (option == 3) {\r\n\t\t\t\tthis.addReflector();\r\n\t\t\t}else if (option == 4) {\r\n\t\t\t\tthis.addMessage();\r\n\t\t\t}else if (option == 5) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\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 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\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_print, menu);\n return true;\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 }", "public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "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}", "@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 }", "public static void help() {\n System.out.println(\"MENU : \");\n System.out.println(\"Step 1 to create a default character.\"); // create and display a character\n System.out.println(\"Step 2 to display characters.\");\n System.out.println(\"Step 3 to choice a character for list his details. \");\n System.out.println(\"Step 4 to start fight between 2 characters\");\n System.out.println(\"step 5 to remove a character.\");\n System.out.println(\"step 6 to create a Warrior.\");\n System.out.println(\"step 7 to create a Wizard.\");\n System.out.println(\"step 8 to create a Thief.\");\n System.out.println(\"Step 9 to exit the game. \");\n System.out.println(\"Step 0 for help ....\");\n\n }", "private int mainMenu(){\n System.out.println(\" \");\n System.out.println(\"Select an option:\");\n System.out.println(\"1 - See all transactions\");\n System.out.println(\"2 - See all transactions for a particular company\");\n System.out.println(\"3 - Detailed information about a company\");\n System.out.println(\"0 - Exit.\");\n\n return getUserOption();\n }", "private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }", "public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\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 printOptionsForPlaylist() {\n System.out.println(\"\\n\\t0. Return to main menu \\n\\t1. print Options For Playlist \\n\\t2. Skip forward (next song) \\n\\t3. skip backwards (previous song)\" +\n \"\\n\\t4. removing song in playlist\" + \" \\n\\t5. repeat the current song\" + \" \\n\\t6. current song played\"\n + \" \\n\\t7. show list songs of playlist \");\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 }", "@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 printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\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}", "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}" ]
[ "0.8149684", "0.8059857", "0.80185163", "0.78821284", "0.7847293", "0.782749", "0.7730917", "0.76231587", "0.76211023", "0.76189387", "0.7617712", "0.758809", "0.758319", "0.757361", "0.7546594", "0.7545837", "0.75374544", "0.75275785", "0.7523731", "0.7520497", "0.7506505", "0.75048083", "0.7459696", "0.74547184", "0.74419713", "0.74119526", "0.74065757", "0.739571", "0.737201", "0.7370853", "0.7345736", "0.73453766", "0.7343205", "0.7341906", "0.7341894", "0.7338245", "0.73273206", "0.7314212", "0.7307919", "0.7305328", "0.7261706", "0.72574633", "0.7245977", "0.723965", "0.7227983", "0.7223542", "0.72001314", "0.7177924", "0.716914", "0.7163603", "0.7156894", "0.7143454", "0.71165437", "0.7095327", "0.707756", "0.7071564", "0.7067126", "0.70654166", "0.7055379", "0.7037963", "0.70379364", "0.6991332", "0.69678247", "0.69630873", "0.6960033", "0.69527256", "0.69472563", "0.69423014", "0.6941856", "0.6937055", "0.6935986", "0.69343144", "0.6922334", "0.6915605", "0.69130224", "0.690393", "0.68983793", "0.6896159", "0.68953323", "0.68949586", "0.6892027", "0.6871262", "0.6863177", "0.6843275", "0.68379235", "0.68343776", "0.6833346", "0.68309116", "0.68189156", "0.6806968", "0.67971337", "0.6793419", "0.6785651", "0.6763208", "0.67562133", "0.6730593", "0.6729723", "0.6726633", "0.6721928", "0.67087734", "0.66952264" ]
0.0
-1
method to say goodbye after closing the start menu
public static void RF2() { System.out.print("Gracias,Tenga un Buen Dia "); System.out.print("Adios :D"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printExitMenu() {\n System.out.println(\"Goodbye! Thanks for using the app!\");\n }", "static void goodbye() {\n printGoodbyeMessage();\n System.exit(0);\n }", "private void quit()\n\t{\n\t\tapplicationView.showChatbotMessage(quitMessage);\n\t\tSystem.exit(0);\n\t\t\n\t}", "public void exitToMenu()\n {\n exitToMenuFlag = true;\n }", "public void menu()\r\n\t{\r\n\t\t//TODO\r\n\t\t//Exits for now\r\n\t\tSystem.exit(0);\r\n\t}", "public void exit() {\n System.out.println(\"Thank you for playing Nim\");\n }", "public void exitMenu(){\n }", "public void showExit();", "protected abstract void quitToMainMenu();", "public void Quit();", "public void onExit();", "public ExitMenu(){\n\t\tint n = showConfirmDialog(null,\"Exit Game\", \"Exiting Game\",JOptionPane.YES_NO_OPTION);\n\t\tif(n==0)\n\t\t\tSystem.exit(0);\t\t\n\t}", "@Override\n\tpublic void Quit() {\n\t\t\n\t}", "@Override\n public void exit()\n {\n\t ((ControllerHost)getHost()).showPopupNotification(\"Chord Buddy Exited\");\n }", "public void quitGame() {\n\t\t\tdisplay(\"Goodbye!\");\n\t\t\tSystem.exit(0);\n\t\t}", "public void quit(){\n this.println(\"Bad news!!! The library has been cancelled!\");\n System.exit(0);\n\n }", "void onExit();", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "private void exitAction() {\n\t}", "public void clickedQuitButton(Button button) {\r\n System.exit(0);\r\n }", "private void exit() {\n\n // Farewell message\n pOutput.println(\"Good Bye!\");\n pOutput.close();\n\n try {\n pClient.close();\n\n } catch (final IOException ex) {\n pShellService.error(\"Shell::exit()\", ex);\n }\n\n // Clean up\n pShellService = null;\n }", "public void exit();", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void quit(){\n\t\tSystem.out.println(\"Quitting game\");\n\t\tSystem.exit(0);\n\t}", "private void quit() {\n\r\n\t}", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "public void exitGame() {\n System.out.println(\"Thank you and good bye!\");\n System.exit(0);\n }", "public void quit()\r\n {\r\n brokerage.logout(this);\r\n myWindow = null;\r\n }", "public void quit();", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(1);\n }", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t\t\n\t}", "private void menu_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_ExitActionPerformed\n System.exit(0);\n }", "public void exit()\r\n\t{\r\n\t\tmainFrame.exit();\r\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "public void quit() {System.exit(0);}", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "private void exit(String msg) {\n win.message(msg);\n win.close();\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\t\tpublic void closeMenu() {\n\t\t}", "private void jb_closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_closeActionPerformed\n System.exit(0);\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "public void exit() {\r\n\t\tdispose();\r\n\t}", "@Override\n\tpublic void onExit() {\n\t\t\n\t}", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "public void quit() {\n\t\tSystem.exit(0);\n\t}", "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n // super.windowClosing(e);\n }", "public void exit () {\r\n System.out.println(\"Desligando aplicação...\");\r\n this.stub.killStub();\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "@Override\n public void exit() {\n super.exit();\n }", "@Override\n\tpublic void exit() {\n\t\t//do nothing\n\t}", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "@Override\r\n\tpublic void quit() {\n\t\t\r\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\tSystem.exit(0);\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tSystem.exit(0);\r\n\r\n\t\t\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tSystem.exit(0);\r\n\t}", "@Override\n\tpublic void exit() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "static void quit()\n {\n clrscr();\n System.out.println(\"You don't suck in life human. Life sucks you in.\");\n System.exit(0);\n }", "public void quit() {\r\n\t\tSystem.out.println(\"Quitting Game\");\r\n\t\tMain.setModel(new Model());\r\n\t\tMain.changeScene(Main.getMainMenu());\r\n\t}", "@Override\n\tpublic void msgExitHome() {\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tSystem.exit(0);\r\n\t\t}", "@Override\n\tpublic void onExit() {\n\t\tlabelHelp = null;\n\t\tlayer_force = null;\n\t\tmSoundBtn = null;\n\t\tboxMessage = null;\n\n\t\tSystem.gc();\n\t\tsuper.onExit();\n\t}", "private void jb_CloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_CloseActionPerformed\n System.exit(0);\n }", "private void jMenuItem3ActionPerformed(ActionEvent evt) {\n\t\tSystem.exit(0);\n\t}", "public abstract void exit();", "public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "public void actionPerformed(ActionEvent e) {\r\n System.exit(0);\r\n }", "public void jMenuFileExit_actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }", "private void exitHandler() {\n JOptionPane.showMessageDialog(this.getParent(), \"Thanks for leaving\"\n + \", quitter! >:(\");\n Component possibleFrame = this;\n while (possibleFrame != null && !(possibleFrame instanceof JFrame)) {\n possibleFrame = possibleFrame.getParent();\n }\n JFrame frame = (JFrame) possibleFrame;\n frame.setVisible(false);\n frame.dispose();\n }", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "public void giveUp(){\r\n System.out.println(\"You are such a loser. Glad that you give up!\");\r\n System.exit(0);\r\n }", "public void quitGame() {\r\n System.out.println(\"Thanks for playing!\");\r\n }", "@Override\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tSystem.exit(0);\n\t}", "public void actionPerformed(ActionEvent ae) {\n controller.beforeQuit();\n System.exit(-1);\n }", "private void quit()\r\n { myFrame.setVisible(false); // Kill this frame\r\n myFrame.dispose();\r\n\r\n startControl.playAgain(); // and tell the guy who started me\r\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "public void game_over() {\n JOptionPane.showMessageDialog(null,\"GAME OVER\",\"Titolo finestra mettici quello che vuoi\",1);\n\n System.exit(0);\n}", "public void quit (ActionEvent aAe)\n\t{\n\t\t\tSystem.exit (0);\n\n\t}", "public void endGame() {\n dispose();\n System.out.println(\"Thank you for playing\");\n System.exit(0);\n }", "public void exitApp() {\n\t\tSystem.out.println(\"Exiting PhoneBook\");\n\n\t}", "private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "void quit();", "void quit();" ]
[ "0.79733", "0.76813513", "0.76760525", "0.76250345", "0.7522567", "0.7509972", "0.74646354", "0.7460436", "0.73971325", "0.7366717", "0.7330781", "0.73157066", "0.7314024", "0.7308197", "0.7307373", "0.7296281", "0.72537917", "0.72500736", "0.7236186", "0.7192001", "0.71837145", "0.71608984", "0.7153886", "0.7135467", "0.713131", "0.71264625", "0.7098427", "0.7094455", "0.70921075", "0.70887375", "0.7083339", "0.7079157", "0.70703214", "0.70643723", "0.7058531", "0.7052719", "0.7050538", "0.70486134", "0.7041707", "0.70407325", "0.7037396", "0.70304674", "0.7024336", "0.70205456", "0.70057935", "0.70057935", "0.70057935", "0.69924587", "0.6992398", "0.6990173", "0.69886774", "0.6978829", "0.69729346", "0.69697607", "0.6959258", "0.6953755", "0.69505674", "0.6950359", "0.6950359", "0.6950359", "0.69470626", "0.69411594", "0.69383883", "0.6933666", "0.6929368", "0.69144607", "0.6912591", "0.69078165", "0.6906302", "0.69057703", "0.6901526", "0.68994534", "0.68944335", "0.6890927", "0.6887092", "0.6881092", "0.68761253", "0.6870684", "0.6867322", "0.68667185", "0.6863158", "0.6861898", "0.6861778", "0.6859347", "0.6853981", "0.6853779", "0.68531126", "0.6851116", "0.68465775", "0.68463665", "0.6842105", "0.6837454", "0.68285507", "0.682301", "0.68211895", "0.6819185", "0.68189484", "0.6818136", "0.6816356", "0.6810697", "0.6810697" ]
0.0
-1
======================== Getters y setters ========================
public String getNombreJugador() { return nombreJugador; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public void setAge(int age) { this.age = age; }", "public void setdat()\n {\n }", "@Override\n protected void updateProperties() {\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 }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "public int getAge() {return age;}", "String setValue();", "@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 }", "@Override\n protected void getExras() {\n }", "@Override\npublic void setAttributes() {\n\t\n}", "private void assignment() {\n\n\t\t\t}", "public void setPrice(double price){this.price=price;}", "public int getAge(){\n return age;\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}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public int getArmadura(){return armadura;}", "@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}", "@Override\n\tprotected void getExras() {\n\n\t}", "@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}", "private void setData() {\n\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "private ReadProperty()\r\n {\r\n\r\n }", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "@Override\n\tpublic void setData() {\n\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n String get();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void initializeValues() {\n\n\t}", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public void get() {\n }", "public int getAge()\r\n {\r\n return age;\r\n }", "public void setX(int x) { this.x=x; }", "private void initValues() {\n \n }", "public int get () { return rating; }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public int getlife(){\r\n return life;\r\n}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public int getSet() {\n return set;\n }", "public void setName(String name){this.name=name;}", "public int getYearsOffice()\n {\n return yearsOffice;\n}", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "@Override\n public void updateProperties() {\n // unneeded\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "public int getAge()\n {\n return age;\n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public void setBirthday() { this.birthday = birthday; }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public Age getAge() {\n return age;\n }", "@java.lang.Override\n public int getAge() {\n return age_;\n }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public int getYear(){\n\t return this.year;\n }", "public int getPrice(){\n return price;\n }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public int getNoYears(){return this.no_years;}", "@Override\n public void saveValues() {\n \n }", "public double getPrice(){return price;}", "int getBlue(){\n\n return this.blue;\n }", "public void setAge(int age){\n this.age = age;\n }", "public int getBrillo(){\n return brillo;\n }", "public int getAge() {\r\n return age;\r\n }", "public int getPrice(){\n\n return this.price;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void setName(String name){this.name = name;}", "public String getNombre(){\n return nombre;\n }", "public int getPrice(){\n return 80;\n }", "public String getNombre(){\n return nombre;\n }", "public int getAge() {\n\t \t return age; \n\t}", "public void setAge(int age)\r\n {\r\n this.age = age;\r\n }", "public Student getStudent() { return student; }", "private Values(){}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public void setRes(){\r\n \r\n }", "protected List getProperties() {\n return null;\n }", "private Value() {\n\t}", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "@Override\n public int get()\n { \n return this.pr;\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public double getWage(){\r\n return wage; \r\n }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}" ]
[ "0.6509951", "0.63838756", "0.63683057", "0.63117385", "0.6210523", "0.62105113", "0.62023205", "0.61918586", "0.61899984", "0.60904735", "0.60657763", "0.6050851", "0.6032828", "0.602472", "0.60193264", "0.60097504", "0.5986685", "0.5981478", "0.59788036", "0.5966029", "0.5964938", "0.59397346", "0.5938637", "0.5926271", "0.5924626", "0.5904388", "0.5901706", "0.5895388", "0.58935195", "0.5889828", "0.5880177", "0.58790404", "0.58780414", "0.5870347", "0.5868178", "0.5861278", "0.58596605", "0.585839", "0.5853327", "0.5848168", "0.5821677", "0.5820146", "0.58153665", "0.5814104", "0.58132327", "0.5806929", "0.5794869", "0.5787107", "0.5784848", "0.57777536", "0.5776182", "0.5772722", "0.5763526", "0.5759062", "0.5756555", "0.5746118", "0.5739873", "0.5738503", "0.5724589", "0.571997", "0.5710432", "0.5709381", "0.5708972", "0.57080877", "0.57055557", "0.570414", "0.5702379", "0.57006115", "0.5689536", "0.5689393", "0.56887823", "0.56764346", "0.5673467", "0.56683046", "0.5662232", "0.56601614", "0.5657008", "0.56519544", "0.56513965", "0.5650921", "0.56428194", "0.5642457", "0.5642332", "0.564098", "0.5636398", "0.563071", "0.5626788", "0.56258655", "0.5624997", "0.56249535", "0.56249535", "0.56249535", "0.56249535", "0.56249535", "0.56249535", "0.56249535", "0.56249535", "0.56243813", "0.56210065", "0.5618356", "0.5616124" ]
0.0
-1
Suma de las cartas de castillo del jugador
public int getCartasJugador() { int suma = this.escudoTorre.getValor() + this.escudoRey.getValor() + this.escudoNobleza.getValor() + this.escudoRey.getValor(); return suma; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "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 double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n kasa+=r.getCena();\n }\n return kasa;\n }", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}", "public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public void totalEntradas(int[][] entradas) {\n int totalProductos = 0;\n int costoTotal = 0;\n \n ciclo : {\n for (int i = 0; i < entradas.length; i++) {\n if (entradas[i][1] != 0) {\n totalProductos++;\n costoTotal += entradas[i][3];\n }\n } \n }\n \n DefaultTableModel modelo = (DefaultTableModel) jTableTotalEntradaCostos.getModel();\n Object[] filaNueva = { totalProductos, costoTotal };\n modelo.addRow(filaNueva);\n }", "public void add(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] += skalar;\r\n }\r\n }\r\n }", "public double getTotalCartValue();", "private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "public float getProductTotalMoney(){\n connect();\n float total = 0;\n String sql = \"SELECT SUM(subtotal) + (SUM(subtotal) * (SELECT iva FROM configuraciones)) FROM productos\";\n ResultSet result = null;\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n result = ps.executeQuery();\n //result = getQuery(sql);\n if(result != null){\n while(result.next()){\n total = result.getFloat(1);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return total; \n }", "private int syuneri_gumar(ArrayList<Integer> syun) {\n int summa = 0;\n for (int i = 0; i < syun.size(); i++)\n summa += syun.get(i);\n return summa;\n }", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "private void sumarTotalVenta(int cantidad, double precioProducto) {\r\n\t\tdouble valorProductos = cantidad * precioProducto;\r\n\t\ttotalVenta += valorProductos;\r\n\t}", "public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }", "public int Suma(){\r\n for (int i = 0; i < 9; i++) {\r\n mult = convert()[i] * arregloCo[i];\r\n // Si la suma e mayor o igual a 10 se le resta 9\r\n if (mult >= 10){\r\n mult = mult - 9;\r\n }\r\n suma = suma + mult;\r\n }\r\n return suma;\r\n }", "public void sumar() {\n Acumula.acumulador++;\n }", "public void calcularTotalGastos(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.0;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaSlidas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaSlidas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalGastos().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total salidas\");\n }\n\n }", "public static double calculateTotal (double[] array, int[] quantity, int quantityMaterials){\n\t\tdouble result = 0; \n\t\tfor (int i = 0; i<quantityMaterials; i++){\n\t\t\tresult += (array[i]*quantity[i]);\n\t\t}\n\t\treturn result;\n\t}", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "private void calcularValorMano(Carta carta, int i) {\n\t\tSystem.out.println(\"El índice \"+i+\" tiene As?: \"+tieneAs[i]);\n\t\t// TODO Auto-generated method stub\n\t\tif (carta.getValor().equals(\"As\")) {\n\t\t\ttieneAs[i]++;\n\t\t\tSystem.out.println(\"Cambio el As de \"+i+\" a \"+tieneAs[i]);\n\t\t\tvalorManos[i]+=11;\n\t\t} else {\n\t\t\tif (carta.getValor().equals(\"J\") || carta.getValor().equals(\"Q\") || carta.getValor().equals(\"K\")) {\n\t\t\t\tvalorManos[i] += 10;\n\t\t\t} else {\n\t\t\t\tvalorManos[i] += Integer.parseInt(carta.getValor());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tint Ases = tieneAs[i];\n\t\tfor(int j=0;j<Ases;j++) {\n\t\t\tif(valorManos[i]>21) {\n\t\t\t\ttieneAs[i]--;\n\t\t\t\tSystem.out.println(\"Cambio el As de \"+i+\" a \"+tieneAs[i]);\n\t\t\t\tvalorManos[i]-=10;\n\t\t\t}\n\t\t}\n\t}", "protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}", "public static int[] totalCost(ArrayList<Medicine> list){\n int x[] = new int[3];// to save all (cost and sales)\n for(int i = 0; i<list.size(); i++){\n x[0] += list.get(i).getUnitCost();// save total cost in here\n x[1] += list.get(i).getSalesPrice(); // save total sale in here\n }\n x[2] = x[0]-x[1]; // calculate net cost\n return x;\n }", "public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual, mazo.get(posicionAleatoria));\n mazo.set(posicionAleatoria, carta1);\n }\n }", "double getSum();", "double getSum();", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "public static void main(String[] args){\n double precio_producto = 150;\n double iva = 0.13;\n double total = 0;\n \n total= precio_producto * iva;\n System.out.println(\"El iva del producto: $ \"+total);\n \n \n \n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "int getSuma();", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "int getSumaAdunata();", "public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }", "public List<ParProdutoQuantidade> produtosMaisComprados(String cliente){\r\n Map<String, Integer> m = new HashMap<>();\r\n for (int i = 0; i < this.numFiliais; i++){\r\n Map<String, Integer> m2 = this.filial.get(i).produtosMaisComprados(cliente);\r\n for (String produto: m2.keySet()){\r\n Integer quantidade = m.get(produto);\r\n if (quantidade == null){\r\n m.put(produto, m2.get(produto));\r\n }\r\n else {\r\n m.put(produto, quantidade + m2.get(produto));\r\n }\r\n }\r\n }\r\n Set<ParProdutoQuantidade> s = new TreeSet<>();\r\n for (String produto: m.keySet()){\r\n s.add(new ParProdutoQuantidade (produto, m.get(produto)));\r\n }\r\n List<ParProdutoQuantidade> l = new ArrayList<>();\r\n for (ParProdutoQuantidade p: s){\r\n l.add(p);\r\n }\r\n return l;\r\n }", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "IVec3 sum(IVec3 v);", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public String getSum();", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public int sumar(){\n return this.a+this.b;\n }", "public static void main(String[] args) {\n int[][] arrayFirst = {\n {1, 2, 3},\n {1, 2, 3},\n {1, 2, 3},\n };\n int[][] arraySecond = {\n {2, 2, 2},\n {3, 3, 3},\n {4, 4, 4}\n };\n int[][] arraySum = new int[arrayFirst.length][arrayFirst[0].length];\n System.out.println(\"Итоговая матрица:\");\n for (int i = 0; i < arrayFirst.length; i++) {\n for (int k = 0; k < arrayFirst[i].length; k++) {\n arraySum[i][k] = arrayFirst[i][k] + arraySecond[i][k];\n System.out.print(arraySum[i][k] + \" \");\n }\n System.out.println();\n }\n }", "@Test\r\n\tpublic void getTotal_oh_sk(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(300.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}", "@Override\n\tpublic double totalPresentase(UUID idPemb) {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"SELECT sum(k.persentase_komponen) as res \"\n\t\t\t\t+ \"FROM komponen_nilai k WHERE id_pemb='\" + idPemb + \"'\");\n\t\tList<Object[]> results = (List<Object[]>)query.list();\n\t\tfor (Object[] result : results) {\n\t\t\tdouble res = (Double) result[0];\n\t\t\tSystem.out.println(res);\n\t\t}\n\t\treturn 0;\n\t}", "public int sum()\n {\n return sum(0,0,size);\n }", "public static int tirarDados(){\n //elige valores aleatorios para los dados\n int dado1 = 1 + numerosAleatorios.nextInt(6);//<primer tiro del dado\n int dado2 = 1 + numerosAleatorios.nextInt(6);//< segundo tiro del dado\n \n int suma = dado1 + dado2;//< suma de los valores de los dados\n \n //muestra los resultados de este tiro\n System.out.printf(\"El jugador tiro %d + %d = %d%n\", dado1, dado2, suma);\n return suma;\n }", "public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }", "public String sumatoria(int columna) {\r\n\t\ttry {\r\n\t\t\tdouble total = 0;\r\n\t\t\tDouble cAux = new Double(total);\r\n\t\t\tString totalChar = \"\";\r\n\t\t\tString valchar = \"\";\r\n\t\t\tfor (int i = 1; i <= this.elemVS.size(); i++) {\r\n\t\t\t\tvalchar = (getObject(i, columna)).toString();\r\n\t\t\t\ttotal = total + (Double.valueOf(valchar)).doubleValue();\r\n\t\t\t}\r\n\t\t\ttotalChar = Double.toString(total);\r\n\t\t\treturn totalChar;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\treturn \"&nbsp;\";\r\n\t\t}\r\n\t}", "public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}", "public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "public Quantity<Q> getSum() {\n return sum;\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "@Override\n\tpublic int sum() {\n\t\treturn this.first + this.second + this.third;\n\t}", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public void calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public Fraccion suma() {\r\n return new Fraccion(operador1.getNumerador()*operador2.getDenominador() + operador1.getDenominador()*operador2.getNumerador(),\r\n operador1.getDenominador()*operador2.getDenominador());\r\n }", "void calculateTheCart(Cart cart, Set<Promotion> promotions);", "public void iniSumSubconjuntos(int[] conjunto, int sumD)\n {\n List<List<Integer>> subsets = new ArrayList<>();\n subsets.add(new ArrayList<>());\n String ns = \"\";\n int sum = 0;\n int nSum = 1;\n System.out.println(\"Subconjunto que suman \" + sumD);\n for (int x : conjunto)\n {\n int n = subsets.size();\n for (int i = 0; i < n; i++)\n {\n ArrayList<Integer> aux = new ArrayList(subsets.get(i));\n aux.add(x);\n subsets.add(aux);\n if (aux.size() >= 2)\n {\n //Ejecucion del hilo mientras hace las combinaciones\n //-->>Implementado en hilo\n int add = 0;\n String ssAux = \"\";\n ssAux += \"{ \";\n for (int j = 0; j < aux.size(); j++)\n {\n if (j == aux.size() - 1)\n {\n ssAux += aux.get(j);\n } else\n {\n ssAux += aux.get(j) + \", \";\n }\n add += aux.get(j);\n }\n ssAux += \" }\\n\";\n if (add == sumD)\n {\n //--> Aqui imprime el resultado\n //System.out.println(\"\" + ssAux);\n sum++;\n System.out.println(sum + \".-\" + ssAux + \"\\n\");\n s += ssAux;\n } else\n {\n ns += nSum + \".- \" + ssAux + \"\\n\";\n nSum++;\n }\n }\n }\n }\n //System.out.println(\"Subconjuntos que suman \" + sumD + \"\\n\" + s + \" Total de resultados: \" + sum + \"\");\n System.out.println(\"\\n----------------------------------------------------------------------------------------\");\n System.out.println(\"Subconjuntos que NO suman \" + sumD + \"\\n\" + ns + \"Total de resultados: \" + nSum);\n //System.out.println(\"PPSubconjuntos\");\n /*subsets.forEach(System.out::println);*/\n }", "@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}", "public ArrayList getOrdenCartas();", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public static int animals(int tavuk, int inek, int keci){\n\t \n\t int sum=inek*4+tavuk*2+keci*4;\n\t \n\t return sum;\n\n\t}", "void printTotalQuantity();", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "public T sum();", "public String getPuissanceCampMechant(){ \n Integer total = 0;\n total+=bonusTemporaireMechant;\n for(Monstre p : CampMechant)\n total += p.getPuissance(); \n return total.toString();\n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "private String insertarCartaRitual() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 1,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void verCartasDelMazo()\n { \n for (Carta carta : mazo) {\n System.out.println(carta);\n }\n }", "public Mazo()\n {\n // initialise instance variables\n mazo = new ArrayList<Carta>(40);\n \n int contadorDePalo = 0;\n while (contadorDePalo <= 3) {\n int contadorDeValor = 1;\n while (contadorDeValor <= 12) {\n if (contadorDeValor <= 7 || contadorDeValor >= 10) {\n mazo.add(new Carta(contadorDeValor,contadorDePalo));\n }\n contadorDeValor++;\n }\n contadorDePalo++;\n }\n }", "public String sumatoria(String columna) {\r\n\t\ttry {\r\n\t\t\tdouble total = 0;\r\n\t\t\tDouble cAux = new Double(total);\r\n\t\t\tString totalChar = \"\";\r\n\t\t\tString valchar = \"\";\r\n\t\t\tfor (int i = 1; i <= this.elemVS.size(); i++) {\r\n\t\t\t\tvalchar = (getObject(i, columna)).toString();\r\n\t\t\t\ttotal = total + (Double.valueOf(valchar)).doubleValue();\r\n\t\t\t}\r\n\t\t\ttotalChar = Double.toString(total);\r\n\t\t\treturn totalChar;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\treturn \"&nbsp;\" + elemVS.size();\r\n\t\t}\r\n\t}", "public int product() {\n // You'll need to replace this code with something\n // else to make product() work; this is just to make\n // things compile while you work on sum()\n return 1;\n }", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public static int simpleArraySum() { //(List<Integer> ar)\n \n Integer []ar = {1,2,3}; \n\n Integer sum =0;\n for(Integer i : ar){\n sum +=i;\n }\n return sum; \n }", "public static Total total(Player player) {\r\n Deck hand = player.getHand();\r\n int min, max, value = 0, nbAces = 0;\r\n\r\n // ajout des cartes qui ne sont pas des as et comptage des as\r\n for (int i = 0; i < hand.getSize(); i++) {\r\n if(hand.get(i).isVisible()) {\r\n if(hand.get(i).getHeight() == 1) {\r\n nbAces++;\r\n value += 1;\r\n }\r\n else if(hand.get(i).getHeight() > 9) {\r\n value += 10;\r\n }\r\n else {\r\n value += hand.get(i).getHeight();\r\n }\r\n }\r\n }\r\n\r\n min = value;\r\n\r\n // ajout de dix points si on peut pour avoir le max\r\n if(value <= 11 && nbAces >= 1) {\r\n value += 10;\r\n max = value;\r\n } else {\r\n max = min;\r\n }\r\n\r\n // cas particulier : le joueur a un blackjack\r\n if(hand.getSize() == 2 && max == 21 && min == 11) {\r\n min = max = 32;\r\n }\r\n\r\n return new Total(min, max);\r\n }", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "public int zistiCenu(Arraylist list){\n\t\tint sum=0;\r\n\t\tKontajner kontajner;\r\n\t\tfor (int i = 0; i <list.myList.size(); i++) {\r\n\t\t\tkontajner= list.myList.get(i);\r\n\t\t\tsum+=kontajner.zistiCenu();\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "private void calcSum() {\n String numberVal = number.getText().toString();\n if (numberVal.isEmpty()) {\n numberVal = \"0\";\n }\n\n int count = Integer.parseInt(numberVal);\n\n if (count > 1e5) {\n Toast.makeText(\n this,\n \"The given number is too large for product of even items!\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n // array initialization\n int[] arr = new int[count];\n for (int i = 0; i < count; i++) {\n arr[i] = i + 1;\n }\n\n // calculate sum\n long sum = 0;\n for (int i = 0; i < count; i++) {\n sum += arr[i];\n }\n\n result.setText(String.format(\"The sum is %d\", sum)); ;\n }", "public Nutrient[] getTotalNutrients() {\n ArrayList<String> nutrientNames = new ArrayList<>();\n ArrayList<Nutrient> collectiveNutrients = new ArrayList<>();\n // First add all nutrient names.\n for (StoredRecipe recipe : this.recipes) {\n for (Nutrient nut : recipe.nutrients) {\n if (!nutrientNames.contains(nut.name)) {\n nutrientNames.add(nut.name);\n }\n collectiveNutrients.add(nut);\n }\n }\n Nutrient[] result = new Nutrient[nutrientNames.size()];\n\n // Then increment the amounts.\n for (int i = 0; i < nutrientNames.size(); i++) {\n String name = nutrientNames.get(i);\n Nutrient nut = new Nutrient();\n nut.name = name;\n ArrayList<Nutrient> toRemove = new ArrayList<>();\n for (Nutrient collNut : collectiveNutrients) {\n if (nut.name.equals(collNut.name)) {\n nut.amount += collNut.amount;\n nut.amountDailyTarget = collNut.amountDailyTarget;\n nut.unit = collNut.unit;\n toRemove.add(collNut);\n }\n }\n collectiveNutrients.removeAll(toRemove);\n result[i] = nut;\n }\n return result;\n }", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.6686324", "0.6667925", "0.6461545", "0.64184", "0.63025916", "0.62385094", "0.6234423", "0.6180663", "0.6156665", "0.61032355", "0.6086543", "0.6032832", "0.6003756", "0.5927634", "0.5910347", "0.58783036", "0.5848932", "0.58037055", "0.57804525", "0.57792985", "0.57749236", "0.5744974", "0.57437074", "0.57431954", "0.57239574", "0.57014924", "0.56979823", "0.5686912", "0.5680162", "0.56640774", "0.56539065", "0.5644253", "0.5639871", "0.5625853", "0.56234443", "0.55979663", "0.55979663", "0.5592995", "0.5589592", "0.5585497", "0.55665165", "0.55564797", "0.555107", "0.5549613", "0.55483043", "0.55454093", "0.55447966", "0.55398506", "0.5534645", "0.5530693", "0.55238354", "0.55199635", "0.55127096", "0.55058956", "0.54865295", "0.548159", "0.5458077", "0.5448071", "0.5447213", "0.54432523", "0.54418325", "0.5441457", "0.54307216", "0.5426136", "0.54220426", "0.54205245", "0.54199773", "0.54198635", "0.54179627", "0.54137146", "0.5412935", "0.5408577", "0.5398321", "0.539012", "0.5389067", "0.5380538", "0.53705186", "0.53613544", "0.5356873", "0.535447", "0.5346827", "0.53427225", "0.53376096", "0.53361475", "0.5328701", "0.5324029", "0.5318574", "0.5317834", "0.53126055", "0.5303632", "0.5293089", "0.5275482", "0.526908", "0.52681565", "0.52680176", "0.52675366", "0.5262732", "0.5262177", "0.52607465", "0.5258639" ]
0.7182357
0
Se le llama al aumentar victorias
public void AumentarVictorias() { this.victorias_actuales++; if (this.victorias_actuales >= 9) { this.TituloNobiliario = 3; } else if (this.victorias_actuales >= 6) { this.TituloNobiliario = 2; } else if (this.victorias_actuales >= 3) { this.TituloNobiliario = 1; } else { this.TituloNobiliario = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "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\tprotected void initVentajas() {\n\r\n\t}", "public List<Vendedor> listarVendedor();", "@Test\r\n\tpublic void venderVariasPiezasReservadas() {\r\n\t\tfor (Pieza pieza : this.listadoDePiezas) {\r\n\t\t\tpieza.reservar();\r\n\t\t\tpieza.vender();\r\n\t\t\tAssert.assertTrue(\"La pieza no ha sido correctamente vendida.\",pieza.isVendida());\r\n\t\t}\r\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public void vincular() {\n\n\t\ttry {\n\t\t\tList<Veiculo> veiculos = Deserializador.deserializar(\"conteudo/veiculos\", Veiculo.class);\n\t\t\tList<Motorista> motoristas = Deserializador.deserializar(\"conteudo/motoristas\", Motorista.class);\n\n\t\t\tScanner entrada = new Scanner(System.in);\n\t\t\tMotorista motorista = null;\n\t\t\tVeiculo veiculo = null;\n\t\t\tSystem.out.println(\"Digite o numero da CNH do motorista que deseja vincular.\");\n\t\t\tint cnh = entrada.nextInt();\n\t\t\tif (motoristas != null) {\n\t\t\t\tif (veiculos != null) {\n\t\t\t\t\tfor (Motorista motor : motoristas) {\n\t\t\t\t\t\tif (cnh == motor.getNumero_Carteira()) {\n\t\t\t\t\t\t\tSystem.out.println(\"Motorista encontrado: \" + motor.getNome());\n\t\t\t\t\t\t\tmotorista = motor;\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\tif (motorista == null) {\n\t\t\t\t\t\tSystem.out.println(\"Motorista nao encontrado!\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (motorista.getVeiculo() == null) {\n\t\t\t\t\t\t\tSystem.out.println(\"Motorista selecionado com sucesso.\");\n\n\t\t\t\t\t\t\tSystem.out.println(\"Digite a placa do veiculo que deseja vincular ao motorista \"\n\t\t\t\t\t\t\t\t\t+ motorista.getNome());\n\t\t\t\t\t\t\tString placa = entrada.next();\n\t\t\t\t\t\t\tfor (Veiculo veic : veiculos) {\n\t\t\t\t\t\t\t\tif (veic.getPlaca().equals(placa)) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Veiculo encontrado.\");\n\t\t\t\t\t\t\t\t\tveiculo = veic;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (veiculo == null) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Veiculo nao encontrado!\");\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// RN004\n\t\t\t\t\t\t\t\tif (veiculo.getMotorista() == null) {\n\t\t\t\t\t\t\t\t\t// RN001\n\t\t\t\t\t\t\t\t\tif (Character.toLowerCase(motorista.getCategoria_Habilitacao()) == 'c') {\n\t\t\t\t\t\t\t\t\t\tveiculo.setMotorista(motorista);\n\t\t\t\t\t\t\t\t\t\tmotorista.setVeiculo(veiculo);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Motorista registrado com sucesso.\");\n\n\t\t\t\t\t\t\t\t\t} else if (veiculo.getCarga() == 1\n\t\t\t\t\t\t\t\t\t\t\t&& Character.toLowerCase(motorista.getCategoria_Habilitacao()) == 'b') {\n\t\t\t\t\t\t\t\t\t\tveiculo.setMotorista(motorista);\n\t\t\t\t\t\t\t\t\t\tmotorista.setVeiculo(veiculo);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Motorista registrado com sucesso.\");\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Tipo da CNH do motorista invalida.\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"O veiculo desejado ja esta vinculado a um motorista.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"Motorista ja esta vinculado a um veiculo.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A lista de veiculos esta vazia.\");\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"A lista de motoristas esta vazia.\");\n\t\t\t}\n\n\t\t\tSerializador s = new Serializador();\n\t\t\ts.serializar(\"conteudo/motoristas\", motoristas);\n\t\t\ts.serializar(\"conteudo/veiculos\", veiculos);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.err.println(\"Falha ao serializar ou deserializar! - \" + ex.toString());\n\t\t}\n\t}", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "public void filtroVentas(String nombre, String academia, String curso, String fecha_inicio, String fecha_fin, String estado){\n for(GrupoEstudio grupo : grupos){\r\n if(grupo.getNombre().compareTo(nombre) == 0)\r\n listar.add(grupo);\r\n }\r\n //ordenamos la lista por fecha de vencimiento\r\n Collections.sort(listar, new Comparator() { \r\n public int compare(Object o1, Object o2) { \r\n GrupoEstudio c1 = (GrupoEstudio) o1;\r\n GrupoEstudio c2 = (GrupoEstudio) o2;\r\n return c1.getFecha_inicio().compareToIgnoreCase(c2.getFecha_inicio()); \r\n } \r\n }); \r\n }", "public void setVidas (int vidas)\r\n\t{\r\n\t\tthis.vidas= vidas;\r\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }", "private void seePerso() {\n\t\tfor (int i = 0; i < persoList.size(); i++) {\n\t\t\tPersonnage perso = persoList.get(i);\n\t\t\tSystem.out.println(\"id : \" + i);\n\t\t\tSystem.out.println(perso);\n\t\t}\n\n\t\tSystem.out.println(\"souhaitez vous modifier un personnage ? o/n\");\n\t\tif (sc.nextLine().toLowerCase().contentEquals(\"o\")) {\n\t\t\tSystem.out.println(\"Lequel ? id\");\n\t\t\tint id = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tchangePerso(id);\n\t\t}\n\t}", "public static String[] verSalasVecinas(int a) {\n\t\tint sala =0;\n\t\tString[] salasVecinas;\n\t\tfor( sala = 0;sala< GestorPartida.getContSalas(); sala++) {\n\t\t\tif(GestorPartida.getJugadores()[a].getSala().equalsIgnoreCase(GestorPartida.getSalas()[sala].getNombre() )) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsalasVecinas=GestorPartida.getSalas()[sala].getSalasVecinas();\n\t\treturn salasVecinas;\n\t}", "@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 verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "public String mostrarVentas() {\n String ventas = \"\";\n for (int i = 0; i < posicionActual; i++) { //Recorre el vector hasra la poscion actual, y almacena toda la informacion de estos en una variable String la cual se retornara \n ventas += mostrarCliente(i);\n }\n return ventas;\n }", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "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 }", "public void visOversikt() {\r\n System.out.println(\"\\nPerson Oversikt:\");\r\n\r\n for(Person person : personListe.values()) {\r\n System.out.println(\"\\n\" + person);\r\n System.out.println(person + \" eier \" + (person.eierSize() + person.utlaantSize()) + \" DVD'er\");\r\n System.out.println(person + \" laaner ut \" + person.utlaantSize() + \" DVD'er\");\r\n System.out.println(person + \" laaner \" + person.laanerSize() + \" DVD'er\");\r\n }\r\n }", "public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }", "public boolean listeVide()\n\t{\n\t\tif (premier==null){\n\t\treturn true;}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public int vecinos(){\n int v=0;\n if(fila<15 && columna<15 && fila>0 && columna>0){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;} \n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n }\n else{v=limitesX();}\n return v;\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "private static void VeureVendes (BaseDades bd) {\n ArrayList <Venda> llista = new ArrayList <Venda>();\n llista = bd.consultaVen(\"SELECT * FROM VENDES\");\n if (llista != null)\n for (int i = 0; i<llista.size(); i++) {\n Venda p = (Venda) llista.get(i);\n Producte prod = bd.consultarUnProducte(p.getIdproducte());\n System.out.println(\"ID Venda =>\"+p.getNumvenda()+\"* Producte: \"\n +prod.getDescripcio()+\"* Quantitat: \"+p.getQuantitat()\n +\"* Data: \"+p.getDatavenda());\n }\n }", "public void somaVezes(){\n qtVezes++;\n }", "private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public static void mostrarVehiculos() {\n for (Vehiculo elemento : vehiculos) {\n System.out.println(elemento);\n }\n\t}", "public Voluntario() {\n super();\n this.livre = true;\n this.raio = 0;\n this.avaliacao = 0;\n this.numreviews = 0;\n\n //this.historico = new ArrayList<>() ;\n }", "private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }", "public void agregarVictoria(Jugador jugador) {\r\n if (!this.isReplay()) {\r\n jugador.setVictorias(jugador.getVictorias() + 1);\r\n }\r\n }", "public RepositorioAvioes() {\n avioes = new ArrayList<Aviao>();\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 static void obtenerInfoColisionEnemigo(Enemigo enemigo, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = enemigo.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n if (col.getTag().compareToIgnoreCase(Objeto.Tag.JUGADOR) == 0) {\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"jugador_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"jugador_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"jugador_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"jugador_izquierda\";\n }\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public static void showAllVillaNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.VILLA);\n }", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }", "private static Vuelo[] partidas(Vuelo [] vuelosArray){\n Ciudad concordia = new Ciudad(\"CON\",\"Concordia\");\n\n Vuelo[] listado = new Vuelo[0];\n for (Vuelo vuelo: vuelosArray) {\n if (vuelo.getCiudadOrigen().equals(concordia)) {\n listado = agregarVuelo(listado, vuelo);\n }\n }\n return listado;\n }", "public void verVacanteMultiple(String convocatoriaselecconada, Candidato actualcandidat)\r\n\t{\r\n\t\tmultiple = new VacanteMultiple(this, convocatoriaselecconada, actualcandidat);\r\n\t\tmultiple.setVisible(true);\r\n\t}", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\t\r\n\tString nombre = leerTexto(\"Ingrese un nombre:\");\r\n\tint edad = leerNumero(\"Ingrese su edad:\");\r\n\tString rut = leerTexto(\"Ingresa el RUT:\");\r\n\tchar genero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tfloat peso = leerNumero(\"Ingrese peso:\");\r\n\tfloat altura = leerNumero(\"Ingrese la altura:\");\r\n\tPersona claudia = new Persona(nombre, rut, edad, genero, peso, altura);\r\n\t\r\n\tnombre = leerTexto(\"Ingrese un nombre:\");\r\n\tedad = leerNumero(\"Ingrese su edad:\");\r\n\trut = leerTexto(\"Ingresa el RUT:\");\r\n\tgenero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tPersona juliano = new Persona(nombre, rut, edad, genero);\r\n\t\r\n\tPersona noelia = new Persona();\r\n\tnoelia.setNombre(leerTexto(\"Ingresa un nombre\"));\r\n\tnoelia.setEdad(leerNumero(\"Ingresa la edad\"));\r\n\tnoelia.setRut(leerTexto(\"Ingresa el RUT\"));\r\n\tnoelia.setGenero(leerTexto(\"Ingresa el genero\").charAt(0));\r\n\tnoelia.setAltura(leerNumero(\"Ingresa la altura\"));\r\n\tnoelia.setPeso(leerNumero(\"Ingresa el peso\"));\r\n\t\r\n\tPersona[] perso = new Persona[3];\r\n\tperso[0] = claudia;\r\n\tperso[1] = juliano;\r\n\tperso[2] = noelia;\r\n\t\r\n\tfor (Persona persona : perso) {\r\n\t\tif (persona.calcularIMC()==Persona.PESO_BAJO) {\r\n\t\t\tescribir(\"Pongale sus buenas cazuelas\");\r\n\t\t}else {\r\n\t\t\tif (persona.calcularIMC()==Persona.PESO_IDEAL) {\r\n\t\t\t\tescribir(\"Estamos tiki taka\");\r\n\t\t\t}else {\r\n\t\t\t\tescribir(\"Menos coffe break!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Mayor de edad\r\n\t\tescribir(\"La persona \" + persona.getNombre() + \" es mayor de edad? \" + persona.esMayorDeEdad());\r\n\t\t//Mostrar el toString()\r\n\t\tescribir(persona.toString());\r\n\t }\r\n\t}", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "private void llenarVacios(int inicial){\n\t\tint[] vecinos = obtenerVecinos(inicial);\n\t\t\n\t\t//Saber cuales vecinos no tienen bombas\n\t\tvacios.clear();\n\t\tvacios.add(inicial);\n\t\tfor(int b = 0; b<Constantes.FILAS*Constantes.COLUMNAS; b++){\n\t\t\tvecinos = obtenerVecinos(vacios.get(b));\n\t\t\tfor(int i =0; i<vecinos.length;i++){\n\t\t\t\tif(vecinos[i] != -1 && LayerBotones.botones[vecinos[i]].getCantBombas() == 0){\n\t\t\t\t\tvacios.add(vecinos[i]);\n\t\t\t\t\tLayerBotones.botones[vecinos[i]].setDescubierto(true);\n\t\t\t\t}else if (vecinos[i] != -1){\n\t\t\t\t\taDespejar.add(vecinos[i]);\n\t\t\t\t\tLayerBotones.botones[vecinos[i]].setDescubierto(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<vacios.size();i++){\n\t\t\tLayerBotones.botones[vacios.get(i)].setIcon(numeros[0]);\n\t\t\t//LayerBotones.botones[8].ponerIcono();\n\t\t\t\n\t\t}\n\t\tfor(int i =0; i<aDespejar.size();i++){\n\t\t\tLayerBotones.botones[aDespejar.get(i)].ponerIcono();\n\t\t\t//LayerBotones.botones[8].ponerIcono();\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "private void initVistas(View v) {\n TextView lblPagina = (TextView) v.findViewById(R.id.lblPagina);\n lblPagina.setTextColor(getArguments().getInt(PAR_COLOR));\n svScrollView = (ScrollView) v.findViewById(R.id.svScrollView);\n ViewTreeObserver.OnScrollChangedListener mObservador = new ViewTreeObserver\n .OnScrollChangedListener() {\n @Override\n public void onScrollChanged() {\n int diferencia = svScrollView.getScrollY() - mScrollAnterior;\n if (mVistasOcultas && diferencia < -UMBRAL_SCROLL) {\n mVistasOcultas = false;\n showVistas();\n } else if (!mVistasOcultas && diferencia > UMBRAL_SCROLL) {\n mVistasOcultas = true;\n hideVistas();\n }\n mScrollAnterior = svScrollView.getScrollY();\n }\n };\n svScrollView.getViewTreeObserver()\n .addOnScrollChangedListener(mObservador);\n }", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void verVerDatosCaracteristicas(List caracteristicas)\r\n\t{\r\n\t\tvercaracteristicas = new VerDatosCaracteristicas(this, caracteristicas);\r\n\t\tvercaracteristicas.setVisible(true);\r\n\t}", "@Override\n\tpublic Boolean votaCandidato(String listaElettorale, String nomeCandidato) {\n\t\t\n\t\t//identifico l'username dell'utente registato in questo momento\n\t\tString userVotante = autenticazioneServizio.getUsername();\n\t\t\n\t\t//creo il voto\n\t\tVoto voto = new Voto(userVotante, listaElettorale, nomeCandidato);\n\t\taggiungiVoto(voto);\n\t\treturn true;\n\t\t\n//\t\t//controlla se ha già votato\n//\t\tif (verificaVotoValido(userVotante)\n//\t\t\t\t&& !listaElettoraleDaNome(listaElettorale).getSindaco().equalsIgnoreCase(nomeCandidato)) {\n//\t\t\t//aggiungi il voto\n//\t\t\taggiungiVoto(voto);\n//\t\t\treturn true;\n//\t\t} else {\n//\t\t\treturn false;\n//\t\t}\n\t\t\n\t}", "public void verPruevaCandidato(Candidato actualcandidato, Prueba pruebaselect, Convocatoria convoselect, ArrayList rolesselect)\r\n\t{\r\n\t\tList preguntas = null;\r\n\t try \r\n\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t preguntas= PreguntaBD.listar(conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t } catch (Exception e){\r\n\t\t JOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t }\r\n\t if(preguntas != null)\r\n\t {\r\n\t \tif(actualcandidato != null)\r\n\t \t{\r\n\t \t\tif(pruebaselect != null)\r\n\t\t \t{\r\n\t \t\t\tpruevacandidato = new PruebaCandidatoI(this, actualcandidato, pruebaselect, convoselect, rolesselect);\r\n\t \t\t\tpruevacandidato.setVisible(true);\r\n\t\t \t}\r\n\t \t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el tipo de prueba seleccionado.\",\"Presentar Prueba\", JOptionPane.WARNING_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/advertencia.PNG\"));\r\n\t\t\t\t}\r\n\t \t}\r\n\t \telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el candidato para preentar la prueba.\",\"Presentar Prueba\", JOptionPane.WARNING_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/advertencia.PNG\"));\r\n\t\t\t}\r\n\t }\r\n\t}", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public void consulterBoiteVocale() {\n for (int i = 0; i < this.boiteVocale.getListeMessagesVocaux().size(); i++) {\n //on passe l'attribut consulte à true pour savoir qu'il a été vu pour la facturation\n this.boiteVocale.getListeMessagesVocaux().get(i).setConsulte(true);\n }\n }", "public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }", "List<Videogioco> retriveByGenere(String genere);", "public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n for (Propuesta propuestaF : propuestas) {\n String nombreReservador = propuestaF.getReservador().getNombreCompleto();\n if (confirm == 0){\n if (propuestaF.isForAllSem()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else{\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n else if (confirm == 1){\n if (propuestaF.isForAllSem() && propuestaF.isConfirmada()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else if (propuestaF.isConfirmada()){\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n }\n }\n }", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }", "public void laan() {\r\n if (personListe.size() > 1) {\r\n System.out.println(\"Hvem vil laane DVD'en?\");\r\n String laaner = scan.nextLine().toLowerCase();\r\n\r\n if (personListe.containsKey(laaner)) {\r\n System.out.println(\"Hvem eier DVD'en?\");\r\n String eier = scan.nextLine().toLowerCase();\r\n Person nyEier = personListe.get(eier);\r\n if (!eier.equalsIgnoreCase(laaner)) {\r\n\r\n if(personListe.containsKey(eier)) {\r\n\r\n if(personListe.get(eier).eierSize() > 0) {\r\n System.out.println(\"Hvilken DVD skal laanes?\");\r\n String tittel = scan.nextLine().toLowerCase();\r\n\r\n if(nyEier.hentEierListe().containsKey(tittel)) {\r\n\r\n if (!nyEier.hentUtlaantListe().containsKey(tittel)) {\r\n\r\n /*kaller paa laanut pa eier, laaner legger den til laaner listen,\r\n og dvd'en setter en laaner referanse */\r\n DVD dvd = nyEier.hentEierListe().get(tittel);\r\n nyEier.laanUt(dvd);\r\n personListe.get(laaner).leggTilLaaner(dvd);\r\n System.out.println(laaner + \" laaner naa \" + tittel + \" av \" + eier);\r\n }\r\n\r\n else {\r\n System.out.println(tittel + \" er allerede utlaant.\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(eier + \" eier ikke den DVD'en\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(eier + \" har ingen DVD'er aa laane ut\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(eier + \" finnes ikke i systemet\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(\"Man kan ikke laane fra seg selv!\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(laaner + \" finnes ikke i systemet\");\r\n }\r\n }\r\n\r\n else {\r\n System.out.println(\"Ikke nok personer til a kunne laane ut en DVD!\");\r\n }\r\n\r\n }", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public String[] disponibilidad(){\n\t\tString[] devolucion = null;\n\t\tdevolucion = new String[almacen.length];\n\t\t\n\t\tfor (int i = 0; i < devolucion.length; i++) {\n\t\t\tif(almacen[i]!=null){\n\t\t\t\tdevolucion[i]=almacen[i].getEtiqueta();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn devolucion;\n\t}", "private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "public void automovil(){\r\n System.out.println(\"Ingrese placa: \");\r\n placa = leer.next();\r\n System.out.println(\"Ingrese marca: \");\r\n marca = leer.next();\r\n \r\n Automovil auto = new Automovil(placa, marca, 10000);\r\n controlador.llenarVehiculo(auto);\r\n {\r\n }\r\n }", "public PeticionesAmistad(vPrincipal vista, VFrame cuadro) {\n initComponents();\n this.vista = vista;\n ventana = cuadro;\n not_nuevoAmigo.setVisible(false);\n not_envioPeticion.setVisible(false);\n modelo = new DefaultListModel();\n modeloBuscar = new DefaultListModel();\n try {\n ArrayList<String> peticiones = vista.getServidor().getPeticiones(vista.getUsuario().getNombre());\n for(String s : peticiones)\n modelo.addElement(s);\n listaPeticiones.setModel(modelo);\n } catch (RemoteException ex) {\n Logger.getLogger(PeticionesAmistad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static void eleccionJugadores() throws ListaVaciaException{\n\t\tif(jugadores.sizeJugadores()>=2){//la lista de jugadores debe ser superior a 1 para poder añadirlos a la lista de participantes\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tSystem.out.println(jugadores.toString()+\"\\n\"+\"---MAS DE 1 JUGADOR---\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjugadorAJugar(Teclado.leerCadena(\"Nombre:\"));//nombre de los jugadores que jugaran en la partida\n\t\t\t\t\t} catch (NombreNoValidoException | JugadorYaExisteException | JugadorNoExisteException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(DeseaContinuar.deseaContinuar(\"¿Otro Jugador?(s/n)\") || jugadores.sizeJugadores()<2);\n\t\t}else\n\t\t\tthrow new ListaVaciaException(\"La lista debe contener > 1 jugadores\");\n\t}", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "@Override\r\n\tpublic Collection<TVA> obtenirTousTVA() {\n\t\treturn null;\r\n\t}", "static public void verificaParametros()\r\n \r\n {\r\n SynthesizerModeDesc synthesizerModeDescTemp = (SynthesizerModeDesc)synthesizer.getEngineModeDesc();\r\n System.out.println(\"Nome do engine utilizado: \"+synthesizerModeDescTemp.getEngineName());\r\n System.out.println(\"Nome do modo de funcionamento utilizado: \"+synthesizerModeDescTemp.getModeName());\r\n \tSystem.out.println(\"Nome da localidade utilizada: \"+synthesizerModeDescTemp.getLocale().toString());\r\n \t\t//verifica a flag de controle\r\n if(synthesizerModeDescTemp.getRunning()!=null)\r\n if(synthesizerModeDescTemp.getRunning().booleanValue())\r\n System.out.println(\"Engine rodando.\");\r\n else\r\n System.out.println(\"Engine parado.\");\r\n else\r\n System.out.println(\"A flag de controle não foi setada e tem valor nulo.\");\r\n \t\t//mostra as vozes suportadas\r\n Voice[] VoiceTemp = synthesizerModeDescTemp.getVoices();\r\n for(int i=0;i<VoiceTemp.length;i++)\r\n {\r\n System.out.println(\"Voz numero \"+(i+1)+\" : \"+VoiceTemp[i].getName());\r\n }\r\n }", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "private void EstablecerVistas(TipoGestion tGestion){\n\t\tCantEjecutada=Utilitarios.round(activ.getCantidadEjecutada(),4);\n\t\n\t\tcantContratada=Utilitarios.round(activ.getCantidadContratada(),4);\n\t\t\n\t\t//CantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\n\n\t\tif ( activ.getCantidadEjecutada() > activ.getCantidadContratada()){\n\t\t\tCantPendienteDeEjecutar = 0;\n\t\t\tCantExcendete = Utilitarios.round((activ.getCantidadEjecutada()-activ.getCantidadContratada()),4);\n\t\t\tPorcExcedente = Utilitarios.round((CantExcendete / cantContratada * 100),2);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphRed));\n\t\t}\n\t\telse{\n\t\t\tCantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphGreen));\n\t\t}\n\n\t\t\n\t\tif ( activ.getCantidadContratada() > 0){\n\t\t\t\tPorcEjecutado=Utilitarios.round((activ.getCantidadEjecutada()/cantContratada) * 100,2);\n\t\t\t\tPorcPendienteDeEjecutar = Utilitarios.round((CantPendienteDeEjecutar / cantContratada * 100),2);\n\t\t\t}\n\t\telse{\n\t\t\tPorcPendienteDeEjecutar\t= 0.00;\n\t\t\tPorcPendienteDeEjecutar = 0.00;\n\t\t}\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_Actividad))\n\t\t\t\t.setText(String.valueOf(cantContratada));\n\n\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadContratada))\n \t\t\t.setText(String.valueOf(cantContratada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadEjecutada))\n \t\t\t.setText(String.valueOf(CantEjecutada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadEjecutada))\n \t\t\t.setText( String.valueOf(PorcEjecutado) + \"%\");\n\n\n \ttvEtiquetaAgregarAvances.setText(getActivity().getString(R.string.fragment_agregar_avances_renglon_4));\n\n\t\tdesActividad.setText(\"[\" + activ.getCodigoInstitucional() + \"] - \" + activ.getDescripcion());\n \t\n\t\tif(tGestion == TipoGestion.Por_Cantidades){\n\t\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setVisibility(0);\n \t}\n \telse{\n \t\t\n \t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setText(\"%\");\n\n \t}\n\n\t\t\n\t\t//Se deshabilitara el widget de ingreso del avance para cuando la cantidad\n\t\t//pendiente de ejecutar sea igual o menor a 0\n\t\t/*if (CantPendienteDeEjecutar>0){\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_FechaActualizo))\n \t\t\t.setText(getActivity().getResources().getString(R.string.fragment_agregar_avances_renglon_2)\n \t\t\t\t\t+ \" \" + String.valueOf(activ.getFechaActualizacion()));\n \t}\n \telse\n \t{\n \t\tToast.makeText(getActivity(), getActivity().getString(R.string.fragment_agregar_avances_renglon_5), Toast.LENGTH_LONG).show();\n \t\tetNuevoAvance.setText(\"0.00\");\n \t\tetNuevoAvance.setEnabled(false);\n \t}*/\n \t\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(CantPendienteDeEjecutar, 4)));\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(PorcPendienteDeEjecutar, 2)) + \"%\");\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(CantExcendete, 4)));\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(PorcExcedente, 2)) + \"%\");\n\n\t\tvalidarAvance(String.valueOf(etNuevoAvance.getText()));\n \t\n \tetNuevoAvance.addTextChangedListener(new TextWatcher() {\n \t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start,\n\t\t\t\t\tint count, int after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start,\n\t\t\t\t\tint before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tvalidarAvance(s.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t}\n \t});\n\t\t\n\t}", "public static void vracanjeVozila(Osoba o) {\n\t\tArrayList<Rezervacija> temp = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o)\n\t\t\t\t\t\t&& UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj rezervacije vozila kojeg zelite da vratite:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < temp.size()) {\n\t\t\tSystem.out.println(\"Unesite koliko kilometara ste presli sa vozilom:\");\n\t\t\tdouble brojKm = UtillMethod.unesiteBroj();\n\t\t\tRezervacija rezervTemp = temp.get(redniBroj);\n\t\t\tSystem.out.println(\"Izaberite vrstu goriva koje je vozilo koristilo.\");\n\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\tdouble cenaIznajm = UtillMethod.ukupnaCenaIznajmljivanja(rezervTemp, brojKm, g);\n\t\t\tSystem.out.println(\"Cena iznajmljivanja je \" + cenaIznajm + \" Dinara!\");\n\t\t\tdouble prePromene = rezervTemp.getVozilo().getPredjeno();\n\t\t\trezervTemp.getVozilo().setPredjeno(prePromene + brojKm);\n\t\t\ttemp.get(redniBroj).setRezervacijaObrisana(true);\n\t\t}\n\n\t}", "public Arbre<Sommet> parcoursEnLargeur(Sommet s) {\n List<Sommet> liste = new ArrayList<Sommet>();\n List<Sommet> pere = new ArrayList<Sommet>();\n Arbre<Sommet> arbre = new Arbre<Sommet>();\n liste.add(s);\n pere.add(null);\n for(int i=0; i<liste.size(); i++) {\n if (!arbre.findKey(liste.get(i))) {\n arbre.ajouter(liste.get(i), pere.get(i));\n List<Sommet> successeur = this.getSuccesseurs(liste.get(i));\n liste.addAll(successeur);\n for (Sommet ret : successeur) {\n pere.add(liste.get(i));\n }\n }\n }\n return arbre;\n }", "private static boolean verifTapis(){\n\t\tint compte = 0;\n\t\tfor(int i = 0; i<jeu.getJoueurs().length; i++){\n\t\t\tif(jeu.getJoueurs()[i].getTapisRest()==0 || jeu.getJoueurs()[i].getMonnaie()==0){\n\t\t\t\tcompte++;\n\t\t\t}\n\t\t}\n\t\tif(compte == jeu.getJoueurs().length){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String recuperaCultivoByVariedadAsigCA(){\n\t\tlstVariedad = iDAO.recuperaVariedadByInicilizacionEsquema(idInicializacionEsquema, idCultivo);\n\t\treturn SUCCESS;\t\t\n\t}", "public CapteurVitesse() {\n super();\n vitesseDetecte = 0;\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public static void main(String[] args) {\n\t\tnew Ventana();\n/*\n\t\tCollection<MuroDeEnergia> muros = new ArrayList<MuroDeEnergia>();\n\t\tCollection<NaveInvasora> naves = new ArrayList<NaveInvasora>();\n\t\tBateria jugador = new Bateria();\n\t\t\n\t\tJuego.getInstancia();\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tjugador = Juego.getInstancia().getJugador();\n\t\t\n\t\tIterator<MuroDeEnergia> i;\n\t\tfor (i = muros.iterator(); i.hasNext();) {\n\t\t\tMuroDeEnergia act = i.next();\n\t\t\tSystem.out.println(\"El muro \" + act.getCodigoMuro() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tIterator<NaveInvasora> j;\n\t\tfor (j = naves.iterator(); j.hasNext();) {\n\t\t\tNaveInvasora act = j.next();\n\t\t\tSystem.out.println(\"El enemigo \" + act.getCodigoNave() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\tJuego.getInstancia().destruirMuro(1);\n\t\tSystem.out.println(\"El muro 1 fue destruido.\");\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\t\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tJuego.getInstancia().destruirNave(9);\n\t\tSystem.out.println(\"La nave 9 fue destruida.\");\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tSystem.out.println(\"Usted esta en el nivel \" + Juego.getInstancia().getDificultad());\n\t\tSystem.out.println(\"Destruyendo naves...\");\n\t\tint idNave = 0;\n\t\twhile(idNave < 15) {\n\n\t\t\tJuego.getInstancia().destruirNave(idNave);\n\n\t\t\tidNave++;\n\n\t\t}\n\t\tSystem.out.println(\"Todas las naves fueron destruidas. Usted esta en el nivel \" + Juego.getInstancia().getDificultad() + \".\");\n\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"El jugador se mueve a la derecha\");\n\t\tJuego.getInstancia().presionaFlechaDer();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Se termina el juego:\");\n\t\tJuego.getInstancia().finalizarJuego();\n\t\t\n*/\n\t}", "public static boolean testDaoLireVisiteur() {\n boolean ok = true;\n ArrayList<Visiteur> lesVisiteurs = new ArrayList<Visiteur>();\n try {\n lesVisiteurs = daoVisiteur.getAll();\n } catch (Exception ex) {\n ok = false;\n }\n System.out.println(\"liste des visiteurs\");\n for (Visiteur unVisiteur: lesVisiteurs){\n System.out.println(unVisiteur);\n }\n return ok;\n }", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void ConsultaVehiculosSQlite() {\n preguntas = mydb.getCartList();\n for( int i = 0 ; i < preguntas.size() ; i++ ){\n //Toast.makeText(getApplicationContext(), preguntas.get( i ).getPregunta(), Toast.LENGTH_SHORT).show();\n persons.add(new Solicitud(\"Pregunta \" + String.valueOf(i+1) +\": \"+preguntas.get( i ).getPregunta(),\"Fecha: \"+ preguntas.get( i ).getFecha(), R.drawable.solicitudes,\"Motivo: \"+preguntas.get( i ).getMotivo(),\"Observacion: \"+preguntas.get( i ).getObservacion(),\"\"));\n }\n }", "public static void main(String[] args) {\n \n Grupo [] grupos = new Grupo[5]; \n Grupo grupo1=new Grupo();\n Grupo grupo2=new Grupo();\n Grupo grupo3=new Grupo();\n Grupo grupo4=new Grupo();\n Grupo grupo5=new Grupo();\n \n \n // le doy valores a los atributos\n \n grupo1.nombre=\"verde\";\n grupo2.nombre=\"amarillo\";\n grupo3.nombre=\"rojo\";\n grupo4.nombre=\"naranja\";\n grupo5.nombre=\"azul\";\n \n grupo1.descripcion=\"verde como las hojas\";\n grupo2.descripcion=\"amarillo como el sol\";\n grupo3.descripcion=\"rojo como el tomate\";\n grupo4.descripcion=\"naranja como la naranja\";\n grupo5.descripcion=\"azul como el cielo\";\n \n // asigno los elementos al vector \n \n grupos[0]=grupo1; \n grupos[1]=grupo2;\n grupos[2]=grupo3;\n grupos[3]=grupo4;\n grupos[4]=grupo5;\n \n System.out.println(\"Los elementos del vector son: \\n\"); \n // muestro los elementos del vector\n \n for(Grupo r: grupos){\n r.mostrar();\n }\n \n //b con array \n \n // creo un array Grupis de cinco elementos\n \n ArrayList<Grupo> Grupis = new ArrayList<>();\n Grupis.add(grupo1);\n Grupis.add(grupo2);\n Grupis.add(grupo3);\n Grupis.add(grupo4);\n Grupis.add(grupo5);\n \n System.out.println(\"\\n Los elementos del Array son: \\n\");\n // muestro los elementos del array\n \n for (Grupo f: Grupis){\n f.mostrar(); \n }\n \n }", "public void updateVisibility(Camera cam) {\n int i = 0;\n \n for(WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = face.getArestaDaFace();\n \n Vertice third = null;\n searchForAnyArestaParaEsquerda:\n for (WE_Aresta aresta : listaDeArestas){\n if (!aresta.equals(arestaFace)){\n if (face.ID == aresta.getFaceEsquerda().ID){\n third = aresta.getvFinal();\n break searchForAnyArestaParaEsquerda;\n } else if (face.ID == aresta.getFaceDireita().ID){\n third = aresta.getvInicial();\n break searchForAnyArestaParaEsquerda;\n }\n }\n }\n \n Vertice normal = VMath.obterNormal(arestaFace.getvFinal(), arestaFace.getvInicial(), third);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n i++;\n }\n throw new UnsupportedOperationException(\"This doesn't work and programmer should feel bad. :(\");\n //<editor-fold defaultstate=\"collapsed\" desc=\"Testes que não funcionaram\">\n /*System.out.println(\"Lista vertices: \" + listaDeVertices);\n System.out.println(\"Lista arestas: \" + listaDeArestas);\n System.out.println(\"Lista faces: \" + listaDeFaces);\n\n for (WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = face.getArestaDaFace();\n System.out.println(\"ARESTA FACE: \" + arestaFace);\n WE_Aresta next;\n Vertice third;\n if (arestaFace.getFaceEsquerda().ID == face.ID){\n next = arestaFace.getEsquerdaPredecessora();\n } else {\n next = arestaFace.getDireitaSucessora();\n }\n\n if (next.getvInicial().equals(arestaFace.getvInicial())\n ||next.getvInicial().equals(arestaFace.getvFinal ()))\n third = next.getvFinal();\n else\n third = next.getvInicial();\n\n System.out.println(\"POINTS (\" + face.ID + \"): \");\n System.out.println(\"One: \" + arestaFace.getvFinal());\n System.out.println(\"Two: \" + arestaFace.getvInicial());\n System.out.println(\"Thr: \" + third);\n\n Vertice normal = VMath.obterNormal(arestaFace.getvFinal(), arestaFace.getvInicial(), third);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n\n i++;\n }*/\n\n /*for (WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = null;\n\n searchForAnyArestaParaEsquerda:\n for (WE_Aresta aresta : listaDeArestas){\n if (face.ID == aresta.getFaceEsquerda().ID){\n arestaFace = aresta;\n break searchForAnyArestaParaEsquerda;\n }\n }\n\n Vertice one = arestaFace.getvInicial();\n Vertice two = arestaFace.getvFinal();\n Vertice three;\n\n arestaFace = arestaFace.getEsquerdaSucessora();\n if (arestaFace.getvInicial().equals(two)){\n three = arestaFace.getvFinal();\n } else {\n three = arestaFace.getvInicial();\n }\n\n Vertice normal = VMath.obterNormal(two, one, three);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n }*/\n //</editor-fold>\n }", "List<Videogioco> findAllVideogioco();", "@SuppressWarnings(\"static-access\")\n\tpersonaje(int vida, int ataque, int personajes_creados)\n\t{\n\t\t// estableciendo parametros iguales a las variables\n\t\tthis.vida = vida;\n\t\tthis.ataque = ataque;\n\t\tthis.personajes_creados = personajes_creados;\n\t\t\n\t}", "public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}", "@Override\n\t/*Método para usarse en el momento de ver las reservas de un determinado usuaario en el panel del mismo*/\n\tpublic String verReservas(String nombreusuario) {\n\t\tGson json= new Gson(); \n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"Select * from alquileres alq, peliculas p where alq.pelicula=p.id and alq.usuario LIKE '\"+nombreusuario+\"' order by p.titulo\"; //Seleccion de los alquileres relacionados con el usuario \n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Alquiler> datos= new ArrayList<Alquiler>(); //ArrayList que va a almacenar los alquileres del usuario\n\t\t\t\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t\n\t\t\t//Se cogen los datos necesarios \n\t\t\twhile(rs.next()) {\n\t\t\t\tString idpelicula=rs.getString(\"id\");\n\t\t\t\tint numero_alquiler=rs.getInt(\"numero_alquiler\");\n\t\t\t\tString fecha=rs.getString(\"fecha_alquiler\");\n\t\t\t\tString titulo= rs.getString(\"titulo\"); \n\t\t\t\tString genero= rs.getString(\"genero\"); \n\t\t\t\tString cadenaestreno=rs.getString(\"estreno\");\n\t\t\t\tString estreno=\"\"; \n\t\t\t\t\n\t\t\t\t//comprobación y asignación del atributo estreno:\n\t\t\t\t/*Como en la base de datos se guarda como una cadena de texto, cuando se devuelve\n\t\t\t\t * hay que comprobar su valor y dependiendo del que sea pasarlo a una cadena para pasarla a la clase \n\t\t\t\t * Alquiler*/\n\t\t\t\t\n\t\t\t\tif(cadenaestreno.equals(\"true\")) {\n\t\t\t\t\testreno=\"Si\";\n\t\t\t\t}else if(cadenaestreno.equals(\"false\")) {\n\t\t\t\t\testreno=\"No\";\n\t\t\t\t}\n\t\t\t\tAlquiler alquiler=new Alquiler(numero_alquiler,idpelicula,fecha,titulo,genero,estreno); //uso esta clase para poder enviar los datos\n\t\t\t\tdatos.add(alquiler); //añado el alquiler a los datos que se van a devolver\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tst.close();\n\t\treturn json.toJson(datos); //devuelvo la lista de los datos en JSON \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t}" ]
[ "0.6577165", "0.6359447", "0.6321393", "0.6251814", "0.61926365", "0.6178628", "0.61322606", "0.61060184", "0.6085526", "0.60554206", "0.60480756", "0.604032", "0.6000756", "0.5992072", "0.59830505", "0.5937959", "0.5910774", "0.5909694", "0.5903944", "0.58696187", "0.5825208", "0.5822518", "0.5794846", "0.57898617", "0.5786402", "0.5776567", "0.57753825", "0.57725203", "0.5769377", "0.5769072", "0.5766747", "0.57462054", "0.57412165", "0.5735235", "0.5734618", "0.5710348", "0.5708572", "0.57026297", "0.57024676", "0.5692764", "0.5688573", "0.5685892", "0.56828904", "0.56794447", "0.5668387", "0.5667927", "0.56666595", "0.56638604", "0.56495464", "0.5649394", "0.5645424", "0.56412315", "0.5639886", "0.56286484", "0.5626209", "0.5624927", "0.56172556", "0.5616624", "0.5615019", "0.5614716", "0.56142044", "0.56124675", "0.56096554", "0.5600182", "0.5598941", "0.559888", "0.5593575", "0.5589332", "0.5585596", "0.55848414", "0.5581481", "0.5576789", "0.5573871", "0.5573733", "0.55708724", "0.5564622", "0.556399", "0.5562933", "0.55596507", "0.5559332", "0.55585897", "0.5549702", "0.5548622", "0.553963", "0.55393004", "0.55363214", "0.55331135", "0.5532532", "0.5525892", "0.5524003", "0.5523937", "0.55143434", "0.5513028", "0.55078226", "0.5504736", "0.55044305", "0.5500136", "0.54976344", "0.5497013", "0.5496572" ]
0.7322055
0
Cambia las cartas del Castillo : Torre,Rey,Nobleza,Pueblo.
public void CambiarCartasCastillo() { int aux; // Asignamos el escudo del rey; aux = (int) (Math.random() * 12) + 1; escudoRey = new Escudo(aux, Escudo.GrupoEscudo.rey); // Asignamos el escudo de la nobleza aux = (int) (Math.random() * 12) + 1; escudoNobleza = new Escudo(aux, Escudo.GrupoEscudo.nobleza); // Asignamos el escudo del pueblo aux = (int) (Math.random() * 6) + 1; escudoPueblo = new Escudo(aux, Escudo.GrupoEscudo.pueblo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual, mazo.get(posicionAleatoria));\n mazo.set(posicionAleatoria, carta1);\n }\n }", "public void mixMazzo() {\n for (int i = 0; i < 2000; i++) {\n\n \n //pesco due numeri a caso da 0 a 39 e \n //scambio le due carte corrispondenti\n\n //scambio carte a caso\n //int caso1 = 22;\n //int caso2 = 34;\n int caso1 = (int) Math.floor(Math.random() * numcarte);\n int caso2 = (int) Math.floor(Math.random() * numcarte);\n\n //la 22 con la 34\n //prendo la 22 in mano e sposto la 34 al posto della 22\n //prendo la carta 22\n Carta cartainmano = mazzo[caso1];\n\n //metto la carta 34 al posto della 22\n mazzo[caso1] = mazzo[caso2];\n\n //metto la carta che ho in mano (22) al posto della 34\n mazzo[caso2] = cartainmano;\n\n //fine spostamento\n }\n\n}", "public Mazo()\n {\n cartasBaraja = new ArrayList<>();\n for(Palo paloActual: Palo.values()){ \n String palo = paloActual.toString().toLowerCase();\n for(int i = 1; i < 13; i ++){\n\n if(i > 7 && i < 10){\n i = 10;\n }\n Carta carta = new Carta(i, paloActual);\n cartasBaraja.add(carta);\n }\n }\n }", "public Mazzo(int numcarte) {\n this.numcarte = numcarte;\n\n //creo e dimensiono l'array \"mazzo\" dichiarato in precedenza\n mazzo = new Carta[numcarte];\n\n //qui dovrò creare tot carte ed inserirle nel mazzo\n String semicarta[] = {\"\", \"Picche\", \"Fiori\", \"Quadri\", \"Cuori\"};\n int valore = 1;\n int seme = 1;\n\n for (int i = 1; i <= numcarte; i++) {\n\n String nomicarta = valore + \" di \" + semicarta[seme];\n Carta carta = new Carta(valore, seme, nomicarta);\n mazzo[i - 1] = carta;\n valore++;\n\n //valore e semi correnti\n //se l'elemento corrente (i) è sulla decina (10, 20, 30, etc) resetto i valori e cambio il seme\n //ad esempio quando sono a 10 rimetto il valore ad 1 ed aumento di 1 il seme\n if (i % (numcarte / 4) == 0) {\n seme++;\n valore = 1;\n }\n\n }\n }", "public ArrayList getOrdenCartas();", "public ArrayList getCartas();", "public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }", "public Carta(char s,int v)\r\n {\r\n valore = v;\r\n \r\n nome = \"\";\r\n \r\n codice = valore;\r\n \r\n Potenziale = new ConcurrentSkipListMap();\r\n \r\n ValoriPotenziale = new ConcurrentSkipListMap(); \r\n \r\n /*\r\n COME VIENE DETERMINATO IL CODICE DELL CARTA:\r\n \r\n Il codice della carta serve principalmente a reperirne\r\n l'immagine all'interno della cartella CardSkins e viene\r\n determinato nel seguente modo:\r\n \r\n - Valore + Seme;\r\n \r\n In modo che si presenti la seguente situazione:\r\n \r\n -Carte di coppe : Intervallo [0,10]\r\n -Carte di denari : Intervallo [11,20]\r\n -Carte di batoni : Intervallo [21,30]\r\n -Carte di spade : Intervallo [31,40]\r\n */\r\n switch(v)\r\n {\r\n case 1:\r\n nome += \"Asso di \";\r\n break;\r\n case 2:\r\n nome += \"Due di \";\r\n break;\r\n case 3:\r\n nome += \"Tre di \";\r\n break;\r\n case 4:\r\n nome += \"Quattro di \";\r\n break;\r\n case 5:\r\n nome += \"Cinque di \";\r\n break;\r\n case 6:\r\n nome += \"Sei di \";\r\n break;\r\n case 7:\r\n nome += \"Sette di \";\r\n break;\r\n case 8:\r\n nome += \"Fante di \";\r\n break;\r\n case 9:\r\n nome += \"Cavallo di \";\r\n break;\r\n case 10:\r\n nome += \"Re di \";\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n switch(s)\r\n {\r\n case 's':\r\n seme = \"spade\";\r\n codice += 30;\r\n break;\r\n case 'b':\r\n seme = \"bastoni\";\r\n codice += 20;\r\n break;\r\n case 'c':\r\n seme = \"coppe\";\r\n codice += 0;\r\n break;\r\n case 'd':\r\n seme = \"denari\";\r\n codice += 10;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n nome += seme;\r\n \r\n ThoughtProbability = 1.0;\r\n \r\n Weight = 1.0;\r\n \r\n IsMaxPrimiera = false;\r\n }", "@Override\n\tpublic void embaralhar() {\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[0], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de ouro\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[1], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de espada\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[2], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de paus\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[3], valoresCartas[i]));\n\t\t}\n\t\t\n\t\tCollections.shuffle(cartas);\n\t}", "private void _jogaEstado_mesa(Player playerMain, Player playerInimigo) {\n Carta cartaP1;\n CartaMonstro cartaMon;\n CartaMagica cartaMag;\n\n boolean cartasQueAtacaram[] = new boolean[playerMain.mesa.MESA_SIZE];\n int cartaIndex;\n\n Arrays.fill(cartasQueAtacaram, false);\n\n /* o jogador ainda quiser atacar (se possivel) ou mudar a carta para modo defesa-ataque */\n while (true) {\n System.out.println(\"Jogador \" + playerMain.nickName + \", Escolha uma carta da sua mesa que deseja usar ( -1 para finalizar o turno )\");\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMon = playerMain.mesa.cartasMonstros[i];\n\n if (cartaMon != null) {\n System.out.print(\" \" + i + \". \" + cartaMon.getNome() + \" \" + cartaMon.getATK() + \"/\" + cartaMon.getDEF());\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n System.out.print(\" - A\");\n } else {\n System.out.print(\" - D\");\n }\n if (cartasQueAtacaram[i]) {\n System.out.print(\" - X\");\n }\n\n System.out.println(\"\");\n } else {\n System.out.println(\" \" + i + \". ...\");\n }\n }\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMag = playerMain.mesa.cartasMagicas[i];\n if (cartaMag != null) {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \". \" + cartaMag.getNome() + \" \" + cartaMag.getTipoEfeitoMagico());\n } else {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \" . ...\");\n }\n }\n\n cartaIndex = scanner.nextInt();\n if (cartaIndex == -1) {\n break;\n }\n\n //usando as cartas magicas\n if (cartaIndex >= Mesa.MESA_SIZE) {\n cartaIndex -= Mesa.MESA_SIZE;\n cartaMag = playerMain.mesa.cartasMagicas[cartaIndex];\n if (cartaMag.getTipoEfeitoMagico() == CartaMagica.TipoEfeitoMagico.CAMPO) {\n cartaMag.aplicarEfeito(this, playerMain, -1);\n playerMain.mesa.removeMagica(cartaIndex);\n } else {\n System.out.println(\"Essa carta Magica não é ativavel manualmente!\");\n }\n continue;\n }\n\n if (cartasQueAtacaram[cartaIndex] == false) {\n cartaMon = playerMain.mesa.cartasMonstros[cartaIndex];\n System.out.println(\"Digite 1 para usa-la para atacar e 0 para mudar seu modo defesa-ataque\");\n if (scanner.nextInt() == 1) {\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n _jogaEstado_atacaMesaInimiga(playerMain, playerInimigo, cartaIndex);\n cartasQueAtacaram[cartaIndex] = true;\n if (playerMain.perdeu() || playerInimigo.perdeu()) {\n break;\n }\n } else {\n System.out.println(\"A carta deve estar em modo de ataque para atacar!\");\n }\n } else {\n giraCarta(cartaMon);\n }\n } else {\n System.out.println(\"Carta já atacou! escolha outra ou finalize o turno.\");\n }\n\n }\n\n }", "public static void main(String[] args) {\n\n\t\tCarta[] mano = new Carta[8];\n\t\tmano[0] = new Carta(Numero.UNO, Palo.OROS);\n\t\tmano[1] = new Carta(Numero.DOS, Palo.COPAS);\n\t\tmano[2] = new Carta(Numero.TRES, Palo.ESPADAS);\n\t\tmano[3] = new Carta(Numero.CUATRO, Palo.BASTOS);\n\t\tmano[4] = new Carta(Numero.SIETE, Palo.OROS);\n\t\tmano[5] = new Carta(Numero.SOTA, Palo.COPAS);\n\t\tmano[6] = new Carta(Numero.CABALLO, Palo.ESPADAS);\n\t\tmano[7] = new Carta(Numero.REY, Palo.BASTOS);\n\t\t\n\t\tString cartas = \"\";\n\t\tfor (int i = 0; i < cartas.length(); i++) {\n\t\t\tString carta = mano[i].toString();\n\t\t\tif (carta == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcartas = cartas + carta.toString();\n\t\t}\n\t\tSystem.out.println(Arrays.toString(mano));\n\t\t\n\t}", "public Carta(int num,int palo){\r\n this.numero=Numeros.values()[num-1];\r\n this.palo=Palos.values()[palo-1];\r\n }", "public Mazo()\n {\n // initialise instance variables\n mazo = new ArrayList<Carta>(40);\n \n int contadorDePalo = 0;\n while (contadorDePalo <= 3) {\n int contadorDeValor = 1;\n while (contadorDeValor <= 12) {\n if (contadorDeValor <= 7 || contadorDeValor >= 10) {\n mazo.add(new Carta(contadorDeValor,contadorDePalo));\n }\n contadorDeValor++;\n }\n contadorDePalo++;\n }\n }", "public Carta(String face, String naipe) {\r\n this.face = face; // inicializa face da carta\r\n this.naipe = naipe; // inicializa naipe da carta\r\n }", "public ArrayList<String> cartasQueTieneEnLaMano()\n {\n {\n ArrayList<String> coleccionString = new ArrayList<String>();\n for (Carta objetoCarta : cartasDeJugador) {\n coleccionString.add(objetoCarta.getNombre());\n }\n return coleccionString;\n }\n }", "public void verCartasDelMazo()\n { \n for (Carta carta : mazo) {\n System.out.println(carta);\n }\n }", "private int[] enquadramentoContagemDeCaracteres(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Contagem de Caracteres]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Contagem de Caracteres]\\n\");\n Thread.sleep(velocidade);\n\n int informacaoDeControle = ManipuladorDeBit.getPrimeiroByte(quadro[0]);//Quantidade de Bits do quadro\n //Quantidade de Bits de carga util do quadro\n int quantidadeDeBitsCargaUtil = informacaoDeControle;\n System.out.println(\"IC: \" + informacaoDeControle);\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tIC [\"+informacaoDeControle+\"] \");\n\n\n int novoTamanho = quantidadeDeBitsCargaUtil/8;\n\n int[] quadroDesenquadrado = new int[novoTamanho];//Novo vetor de Carga Util\n int posQuadro = 0;//Posicao do Vetor de Quadros\n\n int cargaUtil = 0;//Nova Carga Util\n\n quadro[0] = ManipuladorDeBit.deslocarBits(quadro[0]);//Deslocando os bits 0's a esquerda\n //Primeiro inteiro do Quadro - Contem a informacao de Controle IC nos primeiros 8 bits\n quadro[0] <<= 8;//Deslocando 8 bits para a esquerda, descartar a IC\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n for (int i=1; (i<=3) && (i<=novoTamanho); i++) {\n cargaUtil = ManipuladorDeBit.getPrimeiroByte(quadro[0]);\n quadroDesenquadrado[posQuadro++] = cargaUtil;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(cargaUtil + \" \");\n quadro[0] <<= 8;//Desloca 8 bits para a esquerda\n }\n\n Thread.sleep(velocidade);\n\n //Caso o quadro for composto por mais de um inteiro do vetor\n for (int i=1, quantidadeByte; posQuadro<novoTamanho; i++) {\n quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(quadro[i]);\n quadro[i] = ManipuladorDeBit.deslocarBits(quadro[i]);\n\n for (int x=1; (x<=quantidadeByte) && (x<=4); x++) {\n cargaUtil = ManipuladorDeBit.getPrimeiroByte(quadro[i]);\n quadroDesenquadrado[posQuadro++] = cargaUtil;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(cargaUtil + \" \");\n quadro[i] <<= 8;//Desloca 8 bits para a esquerda\n }\n Thread.sleep(velocidade);\n }\n \n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"]\\n\");\n Thread.sleep(velocidade);\n\n return quadroDesenquadrado;\n }", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "public void mostrarCartasBazas(){\n int cont = 0;\n while(cont < cartasDeLaBaza.size()){\n System.out.println(cartasDeLaBaza.get(cont).toString());\n cont ++;\n }\n }", "public static void main(String[] args) {\n String asNombres[]=new String[TAMA];\r\n //CAPTURAR 5 NNOMBRES \r\n Scanner sCaptu = new Scanner (System.in);\r\n for (int i = 0; i < TAMA; i++) {\r\n System.out.println(\"Tu nombre :\");\r\n asNombres[i]=sCaptu.nextLine();\r\n }\r\n for (String asNombre : asNombres) {\r\n System.out.println(\"Nombre: \" + asNombre);\r\n \r\n }\r\n //CREAR UNA COPIA DEL ARREGLO\r\n /*String asCopia[]=asNombre;//Esto no funciona\r\n asNombre[0]=\"HOLA MUNDO\";\r\n System.out.println(asCopia[0]);*/\r\n \r\n String asCopia[]=new String[TAMA];\r\n for (int i = 0; i < TAMA; i++) {\r\n asCopia[i]=asNombres[i];\r\n \r\n }\r\n asNombres[0]=\"HOLA MUNDO\";\r\n System.out.println(\"Nombre = \" + asNombres[0]);\r\n System.out.println(\"Copia = \" + asCopia[0]);\r\n }", "public void barajar(){\n Random ale = new Random();\n if(CARTAS_BARAJA == getNumCartas()){\n for(int i = 0; i < 777; i ++){\n int valor = ale.nextInt(40);\n Carta carta = cartasBaraja.get(valor);\n cartasBaraja.set(valor, cartasBaraja.get(0));\n cartasBaraja.set(0, carta);\n }\n }\n }", "@Override\n\tpublic String toString(){\n\t\treturn \"Inf carta:\\n\"+numero+\"de \"+palo+\"\\nValor: \"+valor;\n\t}", "private void mostrarCoches() {\n int i = 0;\n for (Coche unCoche : coches) {\n System.out.println((i + 1) + \"º \" + coches.get(i));\n ++i;\n }\n }", "private void translate()\r\n {\r\n for(int x = 0;x<14;x++)\r\n {\r\n pack.add(new Card(sPack.get(x)));\r\n }\r\n \r\n }", "private void adicionaMusicasVaziasCD () {\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tfaixasCD.add(i, \"\");\n\t\t}\n\t}", "public Carta(int num,Seme se,int va,int pu){\n this.numero=num;\n this.seme=se;\n this.valore=va;\n this.punti=pu;\n }", "public int[] getCarte() {\n\t\tint[] carte = new int[6];\n\t\tcarte[0] = numAGRICOLI;\n\t\tcarte[1] = numARIDI;\n\t\tcarte[2] = numFIUMI;\n\t\tcarte[3] = numFORESTE;\n\t\tcarte[4] = numMONTAGNE;\n\t\tcarte[5] = numPRATI;\n\t\treturn carte;\n\t}", "private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil>\n getCazuriList();", "private String insertarCartaRitual() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 1,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "private String insertarCartaLightning() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 2,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public EnemigoGenerico[] cargaBichos()\n {\n \n //Crear la bicheria (hardCoded)\n CoordCasilla[] origen={new CoordCasilla(1,1), new CoordCasilla(18,1), new CoordCasilla(14,8), new CoordCasilla(17,17), new CoordCasilla(13,5)};\n CoordCasilla[] destino={new CoordCasilla(6,18) , new CoordCasilla(1,1), new CoordCasilla(1,8), new CoordCasilla(18,1) , new CoordCasilla(13,18) };\n \n \n DefBicho pelota=this.atlasBicheria.get(\"Pelota Maligna\");\n EnemigoGenerico bichos[]=new EnemigoGenerico[origen.length];\n \n for(int x=0;x<origen.length;x++)\n {\n List<CoordCasilla> camino = this.getCamino(origen[x], destino[x]);\n Gdx.app.log(\"CAMINO:\", \"DESDE (\"+origen[x].x+\",\"+origen[x].y+\") HASTA ( \"+destino[x].x+\",\"+destino[x].y+\")\");\n for (CoordCasilla cc : camino)\n Gdx.app.log(\"CASILLA.\", String.format(\"(%2d ,%2d )\", cc.x, cc.y));\n \n \n bichos[x] = new EnemigoGenerico(pelota, this.mapaAnimaciones.get(pelota.archivoAnim), pelota.pv, pelota.tasaRegen, pelota.velocidad, camino, pelota.distanciaPercepcion, pelota.ataques);\n }\n \n return bichos;\n }", "private String insertarCarta() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public Cartao() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "private String insertarCartaVitalTransfusion() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 3,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private String insertarCartaNightmare() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 15,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public K buscarCartas(K key);", "private String insertarCartaMentalSpiral() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 1,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public V getCarta(K key);", "public Productos1[] buscarTodos() {\n\t\treturn productosColeccion.values().toArray(new Productos1[productosColeccion.size()]);// y te mide lo que ocupa procutosColeccion.\r\n\r\n\t}", "public String getPuissanceCampMechant(){ \n Integer total = 0;\n total+=bonusTemporaireMechant;\n for(Monstre p : CampMechant)\n total += p.getPuissance(); \n return total.toString();\n }", "GenerateurDeCartesMot(String nomDuTheme, String[] Tableau){\n\t\tsuper(nomDuTheme);\n\t\tthis.nomDuTheme=nomDuTheme;\n\t\tthis.optionsDeMot=Tableau;\n\t\tinitializePickedCardsArray();\n\t}", "public void togliCarta(Terreno tipo) {\n\t\tswitch (tipo) {\n\t\tcase AGRICOLO:\n\t\t\tnumAGRICOLI--;\n\t\t\treturn;\n\t\tcase ARIDO:\n\t\t\tnumARIDI--;\n\t\t\treturn;\n\t\tcase FIUME:\n\t\t\tnumFIUMI--;\n\t\t\treturn;\n\t\tcase FORESTA:\n\t\t\tnumFORESTE--;\n\t\t\treturn;\n\t\tcase MONTAGNA:\n\t\t\tnumMONTAGNE--;\n\t\t\treturn;\n\t\tcase PRATO:\n\t\t\tnumPRATI--;\n\t\t\treturn;\n\t\tdefault:\n\t\t\treturn;\n\t\t}\n\t}", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public int getCartasJugador() {\r\n\t\tint suma = this.escudoTorre.getValor() + this.escudoRey.getValor()\r\n\t\t\t\t+ this.escudoNobleza.getValor() + this.escudoRey.getValor();\r\n\t\treturn suma;\r\n\t}", "private void setupEscenario3( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,3,7,9\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"2,4,6,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"5\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "public String toString() {\n return \" Carta [numero=\" + numero + \", seme=\" + seme + \" ,valore= \"+valore+\" , punti= \"+punti+\"] \";\n }", "public Memoria(Espacio[] espacios) {\r\n\t\tthis.numEspacios = espacios.length;\r\n\t\tthis.espacios = espacios;\r\n\t\ttamaņo = 0;\r\n\t\tfor (int i = 0; i < numEspacios; i++) {\r\n\t\t\ttamaņo += espacios[i].getTamaņo();\r\n\t\t}\r\n\t}", "public int[] getCO() {return co;}", "public Campo() {\r\n this.primoGrande = new BigInteger(\"20835161731609124123432674631212444\"\r\n + \"8251235562226470491514186331217050270460481\");\r\n this.limite = new BigInteger[2];\r\n System.out.println(\"Campo: \" + this.primoGrande);\r\n this.setDominio();\r\n }", "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 transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\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}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}", "private String insertarCartaNaturalSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 2,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n true,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private void pintar_cuadrantes() {\tfor (int f = 0; f < 3; f++)\n//\t\t\tfor (int c = 0; c < 3; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 0; f < 3; f++)\n//\t\t\tfor (int c = 6; c < 9; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 3; f < 6; f++)\n//\t\t\tfor (int c = 3; c < 6; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 6; f < 9; f++)\n//\t\t\tfor (int c = 0; c < 3; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 6; f < 9; f++)\n//\t\t\tfor (int c = 6; c < 9; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\t\n\t\t\n\t\t}", "public int cuantosCursos(){\n return inscripciones.size();\n }", "private String insertarCartaHeal() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 4,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }", "private String[] obtenerColores(List<Categoria> listaCategorias) {\n\t\tString[] colores = new String[listaCategorias.size()];\n\t\tRandom obj = new Random();\n\t\tfor (int i = 0; i < listaCategorias.size(); i++) {\n\t\t\tint rand_num = obj.nextInt(0xffffff + 1);\n\t\t\tcolores[i] = String.format(\"#%06x\", rand_num);\n\t\t}\n\t\treturn colores;\n\t}", "public Casilla[][] darCasillas(){\r\n\t\treturn casillas;\r\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }", "public void Mostrar() {\n \n for (int i=0;i<3;i++) {\n System.out.print(\"Torre \"+i+\": \");\n for (Iterator it = columnas[i].iterator(); it.hasNext();) {\n int n = (int) it.next();\n System.out.print(n+\"[\"+\"]\");\n longitud++;\n }\n System.out.println(\"\");\n \n }\n }", "public Kupcek() {\r\n kup = new ArrayList<Karta>();\r\n\r\n for (int i = 0; i < 4; i++) { //gremo preko vseh simbolo kart\r\n for (int j = 0; j < 13; j++) { //in njihovih rangov\r\n if (j == 0) { //prvi indeks je vedno as torej mu damo vrednost 11\r\n Karta card = new Karta(i, j, 11); //ustvarimo nasega asa z i-tim simbolom in j-tim rangom\r\n kup.add(card); //karto dodamo v kupcek\r\n }\r\n else if (j >= 10) { //podobno storimo za karte Fant, Kraljica, Kralj in jim dodamo vrednost 10\r\n Karta card = new Karta(i, j, 10);\r\n kup.add(card);\r\n }\r\n else { //za vse preostale karte povecamo vrednost za +1 indeksa zaradi poteka kart 2[1] 3[2] etc.\r\n Karta card = new Karta(i, j, j+1);\r\n kup.add(card);\r\n }\r\n }\r\n }\r\n }", "public Pilas(int cap) { // el constructor, de parametro la capacidad de la pila\r\n capacidad = cap; // le asignamos a capacidad lo que se pase por parametro\r\n array = new int[capacidad]; // al arreglo le decimos (asignamos) su longitud\r\n top = -1; // inicializamos la cima (como no hay aun nada, la cima es -1)\r\n }", "private String insertarCartaNaturalHelp() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 2,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public static void visualizarTodasLasPiezas(Monton todas){\n \n System.out.println(\"\\nVisualizando todas las piezas: \");\n System.out.println(todas.toString());\n }", "public String asCartesian(){\n return String.format(CARTESIAN_FORMAT, this.getX(), this.getY());\n }", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "public static void main(String[] args) {\n\t\tConcesionario listaconce=new Concesionario();\n\t\t//aņado coches\n\t\tlistaconce.addCoche(new coches(\"'6592 pgk'\",100,5,1500));\n\t\tSystem.out.println(listaconce);\n\t\t//otra forma\n\t\tcoches c1=(new coches(\"'5858 asd'\",120, 3, 1455));\n\t\tlistaconce.addCoche(c1);\n\t\tSystem.out.println(listaconce);\n\t\t\n\n\t}", "@Override\r\n\tpublic void jouer() {\r\n\t\t// liste servant a retenir les cartes potentiellement selectionnables\r\n\t\tArrayList<ICarte> listeCartesPossibles = new ArrayList<ICarte>();\r\n\t\t// sert a choisir une carte aleatoirement parmis celles selectionnables\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\t//enregistrement des cartes pouvant etre selectionnees\r\n\t\tfor(int i=0 ; i<plateau.getListeCartesMelangees().size() ; i++) {\r\n\t\t\tif (plateau.getListeCartesMelangees().get(i).getSurPlateau() == true) {\r\n\t\t\t\tlisteCartesPossibles.add(plateau.getListeCartesMelangees().get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// choix aleatoire de la premiere carte\r\n\t\tcarte1 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\t//choix aleatoire de la seconde carte\r\n\t\tlisteCartesPossibles.remove(carte1);\r\n\t\tcarte2 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\tplateau.setCartesSelectionnees(true);\r\n\t}", "void recorridoCero(){\n \n for(int i=0;i<8;i++)\n\t\t\tfor(int j=0;j<8;j++)\n\t\t\t\t{\n\t\t\t\t\t//marcar con cero todas las posiciones\n\t\t\t\t\trecorrido[i][j]=0;\n\t\t\t\t}\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}", "private void setupEscenario2( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,2,3,4\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"5,6,7,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"9\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "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}", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "private String insertarCarta(Carta carta) {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n if(carta.getDañoEnemigo()!=0){\n valoresEnemigo[0]=carta.getDañoEnemigo();\n }\n if(carta.getCuraEnemigo()!=0){\n valoresEnemigo[1]=carta.getCuraEnemigo();\n }\n if(carta.getCartasEnemigo()!=0){\n valoresEnemigo[2]=carta.getCartasEnemigo();\n }\n if(carta.getDescarteEnemigo()!=0){\n valoresEnemigo[3]=carta.getDescarteEnemigo();\n }\n if(carta.getRecursosEnemigo()!=0){\n valoresEnemigo[4]=carta.getRecursosEnemigo();\n }\n if(carta.getMoverMesaAManoEnemigo()!=0){\n valoresEnemigo[5]=carta.getMoverMesaAManoEnemigo();\n }\n if(carta.getMoverDescarteAManoEnemigo()!=0){\n valoresEnemigo[6]=carta.getMoverDescarteAManoEnemigo();\n }\n if(carta.getMoverMesaADeckEnemigo()!=0){\n valoresEnemigo[8]=carta.getMoverMesaADeckEnemigo();\n }\n if(carta.getMoverDescarteADeckEnemigo()!=0){\n valoresEnemigo[9]=carta.getMoverDescarteADeckEnemigo();\n }\n if(carta.getMoverManoADeckEnemigo()!=0){\n valoresEnemigo[10]=carta.getMoverManoADeckEnemigo();\n }\n if(carta.getMoverMesaADescarteEnemigo()!=0){\n valoresEnemigo[11]=carta.getMoverMesaADescarteEnemigo();\n }\n if(carta.getMoverManoADescarteEnemigo()!=0){\n valoresEnemigo[12]=carta.getMoverManoADescarteEnemigo();\n }\n if(carta.getMoverDeckADescarteEnemigo()!=0){\n valoresEnemigo[13]=carta.getMoverDescarteADeckEnemigo();\n }\n\n\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n if(carta.getDañoOwner()!=0){\n valoresOwner[0]=carta.getDañoOwner();\n }\n if(carta.getCuraOwner()!=0){\n valoresOwner[1]=carta.getCuraOwner();\n }\n if(carta.getCartasOwner()!=0){\n valoresOwner[2]=carta.getCartasOwner();\n }\n if(carta.getDescarteOwner()!=0){\n valoresOwner[3]=carta.getDescarteOwner();\n }\n if(carta.getRecursosOwner()!=0){\n valoresOwner[4]=carta.getRecursosOwner();\n }\n if(carta.getMoverMesaAManoOwner()!=0){\n valoresOwner[5]=carta.getMoverMesaAManoOwner();\n }\n if(carta.getMoverDescarteAManoOwner()!=0){\n valoresOwner[6]=carta.getMoverDescarteAManoOwner();\n }\n if(carta.getMoverMesaADeckOwner()!=0){\n valoresOwner[8]=carta.getMoverMesaADeckOwner();\n }\n if(carta.getMoverDescarteADeckOwner()!=0){\n valoresOwner[9]=carta.getMoverDescarteADeckOwner();\n }\n if(carta.getMoverManoADeckOwner()!=0){\n valoresOwner[10]=carta.getMoverManoADeckOwner();\n }\n if(carta.getMoverMesaADescarteOwner()!=0){\n valoresOwner[11]=carta.getMoverMesaADescarteOwner();\n }\n if(carta.getMoverManoADescarteOwner()!=0){\n valoresOwner[12]=carta.getMoverManoADescarteOwner();\n }\n if(carta.getMoverDeckADescarteOwner()!=0){\n valoresOwner[1]=carta.getMoverDescarteADeckOwner();\n }\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n\n\n\n\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@Override\n public ArrayList<String> Crear(){\n setVida(3500);\n Creado.add(0, Integer.toString(getVida()));\n Creado.add(1,\"150\");\n Creado.add(2,\"100\");\n Creado.add(3,\"70\");\n return Creado;\n }", "public static Teclado[] cargaTeclados() {\n\t\tTeclado[] teclados = new Teclado[3];\n\t\tTeclado teclado1 = new Teclado(\"USB 2.0\", \"Genius\");\n\t\tTeclado teclado2 = new Teclado(\"USB 3.0\", \"Logitech\");\n\t\tTeclado teclado3 = new Teclado(\"Bluetooth\", \"Gamer\");\n\t\tteclados[0] = teclado1;\n\t\tteclados[1] = teclado2;\n\t\tteclados[2] = teclado3;\n\t\treturn teclados;\n\t}", "public void assegnaCarta(Terreno tipo) {\n\t\tswitch (tipo) {\n\t\tcase AGRICOLO:\n\t\t\tnumAGRICOLI++;\n\t\t\treturn;\n\t\tcase ARIDO:\n\t\t\tnumARIDI++;\n\t\t\treturn;\n\t\tcase FIUME:\n\t\t\tnumFIUMI++;\n\t\t\treturn;\n\t\tcase FORESTA:\n\t\t\tnumFORESTE++;\n\t\t\treturn;\n\t\tcase MONTAGNA:\n\t\t\tnumMONTAGNE++;\n\t\t\treturn;\n\t\tcase PRATO:\n\t\t\tnumPRATI++;\n\t\t\treturn;\n\t\tdefault:\n\t\t\treturn;\n\t\t}\n\t}", "static Producto busqueda(int codigo, Vector productos){ \r\n \tboolean band = false;\r\n \t//si return no es igual a null nos regresara el codigo\r\n Producto p,retornP = null; \r\n //For para comparar todos los codigos del vector que digitamos\r\n for(int x = 0; x < productos.size(); x++){ \r\n \tp = (Producto) productos.elementAt(x);\r\n \t//si el codigo es el mismo regresamos el producto que encontramos\r\n if(p.getCodigo() == codigo) \r\n \tretornP = p;\r\n }\r\n return retornP;\r\n }", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "@Test\n void mostraTutti() {\n EAMese[] matrice = EAMese.values();\n assertNotNull(matrice);\n assertEquals(12, matrice.length);\n\n System.out.println();\n String sep = \" - \";\n int k=0;\n for (EAMese mese : matrice) {\n System.out.println(++k+sep+mese.getLungo() + sep + mese.getBreve() + sep + mese.getGiorni());\n }// end of for cycle\n\n }", "public static void main(String[] args) {\n\n //sout + tecla TAB\n// System.out.println(\"oi....\");\n\n// String[] nomes = new String[3];\n// nomes[0] = \"joao\";\n// nomes[1] = \"pedro\";\n// nomes[2] = \"ze\";\n//\n// foreach\n// for(String nome : nomes) {\n// System.out.println(nome);\n// }\n\n// String[] nomess = {\"a\", \"b\", \"b\", \"b\", \"a\"};\n//\n// for(String nome : nomess) {\n// System.out.println(nome);\n// }\n//\n// Array.set(nomess, 1, \"c\");\n//\n// for(String nome : nomess) {\n// System.out.println(nome);\n// }\n\n// System.out.println(\"primeiro nome: \" + nomes[0]);\n\n\n\n// int numero = 10;\n// System.out.println(numero);\n\n //vetor... vector... array - variável unidimensional\n// int[] numeros = new int[3]; //numero de posicoes\n// numeros[0] = 100;\n// numeros[1] = 200;\n// numeros[2] = 300;\n// System.out.println(numeros[2]);\n//\n// for(int indice = 0 ; indice < numeros.length ; indice++) {\n// System.out.println(numeros[indice]);\n// }\n\n\n\n //matriz\n int[][] numeros = new int[3][3];\n\n int valores = 1;\n for(int linha = 0 ; linha < 3 ; linha++) {\n for(int coluna = 0 ; coluna < 3 ; coluna++) {\n numeros[linha][coluna] = valores;\n valores++;\n }\n }\n\n for(int linha = 0 ; linha < 3 ; linha++) {\n for(int coluna = 0 ; coluna < 3 ; coluna++) {\n System.out.print(\" \" + numeros[linha][coluna] + \" \");\n }\n System.out.println(\"\\n\");\n }\n\n// c\n//l 1 2 3\n// 4 5 6\n// 7 8 9\n\n }", "private ArrayList<String[]> getArrayCombinaciones(String[] parVecBusqueda) {\n String nom1 = \"\", nom2 = \"\", nom3 = \"\", nom4 = \"\";\n ArrayList<String[]> vecCombinaciones = new ArrayList<>();\n int contNombres = 0;\n for (String varString : parVecBusqueda) {\n if (varString.equals(\"\")) {\n contNombres++;\n }\n }\n switch (contNombres) {\n case 1:\n nom1 = parVecBusqueda[0].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones1(nom1);\n break;\n case 2:\n nom1 = parVecBusqueda[0].toLowerCase();\n nom2 = parVecBusqueda[1].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones2(nom1, nom2);\n break;\n case 3:\n nom1 = parVecBusqueda[0].toLowerCase();\n nom2 = parVecBusqueda[1].toLowerCase();\n nom3 = parVecBusqueda[2].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones3(nom1, nom2, nom3);\n break;\n case 4:\n vecCombinaciones.add(parVecBusqueda);\n break;\n default:\n break;\n }\n return vecCombinaciones;\n }", "private String insertarCartaMysticalSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public String getNombreCarta(int fila, int col) {\n\t\treturn tablero[fila][col].getText();\n\t}", "public Carta (String palo, int numero){\n\t\tthis.palo = palo;\n\t\tthis.numero = numero;\n\n\t\tif(palo.equals(\"O\"))\n\t\t\tvalor = numero;\n\t\telse if(palo.equals(\"C\"))\n\t\t\tvalor = numero * 100;\n\t\telse if(palo.equals(\"E\"))\n\t\t\tvalor = numero * 10000;\n\t\telse if(palo.equals(\"B\"))\n\t\t\tvalor = numero * 1000000;\n\n\t}", "public static int isCouleur(List<Carte> cartes){\r\n\t\t//Compte les couleurs des cartes\r\n\t\tint[] couleurs={0,0,0,0};\r\n\t\tfor(Carte carte : cartes){\r\n\t\t\tcouleurs[carte.getCouleur()+1]=couleurs[carte.getCouleur()+1]+1;\r\n\t\t}\r\n\t\t//Regarde si une des couleurs à au moins 5 carte de la meme couleur\r\n\t\tboolean isCouleur=false;\r\n\t\tfor(int i=0;i<=3;i++){ isCouleur=(isCouleur || (couleurs[i]>=5)); }\r\n\t\tif(isCouleur){\r\n\t\t\tfor(Carte carte : cartes){\r\n\t\t\t\tcouleurs[carte.getCouleur()+1]=couleurs[carte.getCouleur()+1]+1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isCouleur) return -1;\r\n\t\telse return CalculMain.carteIsolee(cartes);\r\n\t}", "public void afficher(Zoe zoe, ArrayList<Monstre> monstres){\r\n\r\n // cree une carte de symboles ASCII\r\n int longueurTab = this.tabCellules.length;\r\n int longueurLigne = this.tabCellules[0].length;\r\n String[][] carteCaracteres = new String[longueurTab][longueurLigne];\r\n\r\n for(int i = 0; i < longueurTab; i++){\r\n for(int j = 0; j < longueurLigne; j++){\r\n if (this.tabCellules[i][j] != null){\r\n carteCaracteres[i][j] = this.tabCellules[i][j].toString();\r\n } else {\r\n carteCaracteres[i][j] = \" \";\r\n }\r\n }\r\n }\r\n\r\n // place les monstres sur la carte\r\n Iterator<Monstre> it = monstres.iterator();\r\n while (it.hasNext()) {\r\n Monstre monstre = it.next();\r\n int x = monstre.getCoordX();\r\n int y = monstre.getCoordY();\r\n\r\n if (monstre.getVivant()) { // priorite d'affichage pour les monstres vivants\r\n carteCaracteres[y][x] = monstre.toString();\r\n } else if (!monstre.getVivant() && carteCaracteres[y][x].equals(\" \")) {\r\n carteCaracteres[y][x] = monstre.toString();\r\n }\r\n }\r\n\r\n // place Zoe sur la carte\r\n carteCaracteres[zoe.getCoordY()][zoe.getCoordX()] = zoe.toString();\r\n\r\n // affiche la carte contenant Zoe et les monstres\r\n String chaineCarac = \"\"; //\r\n for(int i = 0; i < carteCaracteres.length; i ++){\r\n String[] ligne = carteCaracteres[i];\r\n for(int j = 0; j < ligne.length; j++) {\r\n chaineCarac += ligne[j];\r\n }\r\n System.out.println(chaineCarac);\r\n chaineCarac = \"\";\r\n }\r\n }", "public void testUsarCarta(){\n\t\tassertFalse(c1.haSidoUsada());\r\n\t\tc1.usarCarta();\r\n\t\tassertTrue(c1.haSidoUsada());\r\n\t\tc1.reiniciarCarta();\r\n\t\tassertFalse(c1.haSidoUsada());\r\n\t}", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public TotalBayar()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n \n List list = new List();\n addObject(list, 300, 60);\n \n List1 list1 = new List1();\n addObject(list1, 300, 120);\n \n /*List2 list2 = new List2();\n addObject(list2, 300, 170);\n \n List3 list3 = new List3();\n addObject(list3, 300, 220);\n \n List4 list4 = new List4();\n addObject(list4, 300, 270);\n */\n Kembali kembali = new Kembali();\n addObject(kembali, 300, 350);\n }", "public CompraResponse cartao(String cartao) {\n this.cartao = cartao;\n return this;\n }" ]
[ "0.67665255", "0.6404481", "0.6352937", "0.61849564", "0.61298823", "0.6096512", "0.6085119", "0.6041086", "0.60154825", "0.5974932", "0.5965807", "0.5899341", "0.58763736", "0.5859794", "0.5858863", "0.5849316", "0.58283824", "0.5798699", "0.5780171", "0.5777972", "0.5751997", "0.57125413", "0.56997895", "0.56649065", "0.56471413", "0.5639513", "0.5635012", "0.562922", "0.56084037", "0.5603856", "0.5602617", "0.5596544", "0.5579344", "0.55644435", "0.5562233", "0.555939", "0.5547949", "0.55313075", "0.5518223", "0.55151665", "0.5504725", "0.5499847", "0.5498165", "0.5482604", "0.5474794", "0.5472874", "0.54691434", "0.54638964", "0.5460622", "0.545665", "0.54361385", "0.5427542", "0.5420422", "0.54106724", "0.5406049", "0.5405857", "0.5390932", "0.53900397", "0.53899306", "0.5387224", "0.53674453", "0.5365721", "0.53579897", "0.535678", "0.53563577", "0.5353681", "0.53396606", "0.5334509", "0.5328216", "0.5324976", "0.5323734", "0.5323122", "0.5320359", "0.5313633", "0.5305297", "0.5296393", "0.5293209", "0.529071", "0.52898484", "0.52881366", "0.5286884", "0.5280451", "0.52800167", "0.5278104", "0.5278081", "0.527085", "0.52637565", "0.5262676", "0.52611005", "0.52586603", "0.52570987", "0.5255801", "0.5254459", "0.52528286", "0.5252685", "0.5249431", "0.5243598", "0.5243417", "0.52418715", "0.5239345" ]
0.7411937
0
Nobleza 1 Ganamos 0 Perdemos
public int LuchaEntreNobles(Escudo escudoNoblezaHeroe, Escudo escudoNoblezaEnemigo) { boolean bGanaHeroe, bGanaEnemigo; float prob1 = ProbabilidadesLucha .ProbabilidadCastillo(escudoNoblezaHeroe.getValor()); float prob2 = ProbabilidadesLucha .ProbabilidadCastillo(escudoNoblezaEnemigo.getValor()); float valorHeroe = (float) Math.random(); float valorEnemigo = (float) Math.random(); if (valorHeroe <= prob1) bGanaHeroe = true; else bGanaHeroe = false; if (valorEnemigo <= prob2) bGanaEnemigo = true; else bGanaEnemigo = false; if (bGanaHeroe && !bGanaEnemigo) return 1; if (bGanaEnemigo && !bGanaHeroe) return 0; // Ninguno gano lo resolvemos aleatoriamente float fresolver = (float) Math.random(); if (fresolver <= 0.5) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public int hayGanador() {\n\t\tif(marcador1==2) {\n\t\t\tresultado=1;\n\t\t\treturn 1;\n\t\t}\n\t\telse if(marcador2==2) {\n\t\t\tresultado=2;\n\t\t\treturn 2;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "public static void quienHaGanado(Mano[] jugadores, int actual,int carro){\n if(jugadores[actual].getNPiezas()!=0){\n boolean dosIguales=false;\n actual=0;\n for (int i = 1; i < jugadores.length; i++) {\n if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion\n if(i==carro){//el jugador i es el carro\n actual=i;\n dosIguales=false;\n }\n else if(actual==carro){//el jugador actual es el carro\n dosIguales=false;\n }\n else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores.\n dosIguales=true;\n }\n }\n if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual\n actual=i;\n dosIguales=false;\n }\n }\n if(dosIguales){\n System.out.println(\"pene\");\n Excepciones.cambiarColorAzul(\"Y los GANADORES SON....\");\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) {\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n }\n }\n System.out.println(\"\\u001B[30m\");\n }\n else{\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }\n else {\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "public static void main(String[] args) { \n /* Grafo grafo = new Grafo();\n \n No no;\n no = new No(\"1\");//0\n grafo.addNo(no);\n no = new No(\"2\");//1\n grafo.addNo(no);\n no = new No(\"3\");//2\n grafo.addNo(no);\n no = new No(\"4\");//3\n grafo.addNo(no);\n no = new No(\"5\");//4\n grafo.addNo(no);\n no = new No(\"6\");//5\n grafo.addNo(no);\n no = new No(\"7\");//6\n grafo.addNo(no);\n \n //Cria as arestas do nó\n \n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 2);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 5);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 4);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 2);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(4), 7);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 1);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(4), 4);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(5), 3);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 4);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(5), 1);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 5);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 7);\n \n No no;\n no = new No(\"SF\");//0\n grafo.addNo(no);\n no = new No(\"LA\");//1\n grafo.addNo(no);\n no = new No(\"D\");//2\n grafo.addNo(no);\n no = new No(\"C\");//3\n grafo.addNo(no);\n no = new No(\"A\");//4\n grafo.addNo(no);\n no = new No(\"B\");//5\n grafo.addNo(no);\n no = new No(\"NY\");//6\n grafo.addNo(no);\n no = new No(\"M\");//7\n grafo.addNo(no);\n \n \n //Cria as arestas do nó\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 39);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 89);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 120);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(6), 210);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 50);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(6), 170);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 65);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 79);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(6), 59);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(4), 99);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 80);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(7), 70);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 20);\n Aresta.inserirAresta(grafo.getNo(6), grafo.getNo(7), 66);*/\n \n Grafo grafo = GrafoAleatorioKruskal.gerar(1000, 10, 10, 100);\n //Gera a arvore geradora com custo minimo\n grafo.kruskal();\n \n //TESTE\n int teste = grafo.getNo(0).getConjunto();\n boolean answer = true;\n for(No n : grafo.getNos()){\n if (teste!= n.getConjunto()){\n answer = false;\n }\n }\n if(answer){\n System.out.println(\"Todos os nós pertecem ao mesmo conjunto\");\n }\n else{\n System.out.println(\"Deu erro\");\n }\n }", "public PhanSo(){\n tuSo = 0;\n mauSo = 1;\n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public int getGanadas(){\n\t\treturn ganadas;\n\t}", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public int getNumGruppoPacchetti();", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\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}", "public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "public int getCantidadAvenidas();", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "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}", "int getNombreLignesPlateau();", "public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }", "public static void MayorMenor(int [] Grado1, int NNEstudent){\nSystem.out.println(\"La edad menor es: \"+Grado1[0]+\" La edad mayor es: \"+Grado1[NNEstudent-1]);}", "public nhanvien() {\n initComponents();\n laysodong();\n if(count % 5 ==0 )\n {\n sotrang = count/5;\n }\n else\n {\n sotrang=count/5 + 1;\n }\n DAO_NV.dolentable(tblnhanvien,1);\n lbltrang.setText(\"1\");\n lblsotrang.setText(\"1/\"+sotrang);\n jButton3.setEnabled(false);\n jButton1.setEnabled(false);\n \n \n \n \n\n }", "public static void main( String[] args )\n {\n int contador = 0;\n Perro perro1 = new Perro(\"Pepe\",4,\"Pug\"); \n //perro1.setNombre(\"Axel\");\n //System.out.println(perro1.getNombre());\n Perro perro2 = new Perro(\"Sasha\",3,\"Siberiano\"); \n //System.out.println(perro2.getNombre()); */\n JOptionPane.showMessageDialog(null, \"Unidad 2\",\"Misiontic\",JOptionPane.ERROR_MESSAGE);\n Perro perro3 = new Perro(\"Manchis\",7,\"Chandoso\"); \n System.out.println(Perro.contadorPerros);\n Perro.ladrar();\n }", "public boolean tieneRepresentacionGrafica();", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "int getCantidad();", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public Pengenalan(){ //Constructor (Nama harus sama dengan Class)\n System.out.println(\"\\nConstructor : \");\n System.out.println(\"Dibutuhkan untuk pemanggilan saat diimport oleh Class lain atau Class sendiri\");\n methode();\n int men = menthos();\n System.out.println(\"Nilai yang didapat dari method menthos : \"+men);\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 int getNumero() {\n return dado1;\n }", "public Persoon(){\n geboorteDag = 0;\n geboorteMaand = 0;\n geboorteJaar = 0;\n nieuweGeslacht = 'x';\n }", "public static void afficherNombreDAnimaux() {\n\t System.out.println(\"**************************\");\n\t System.out.println(\"Il y a \" + totalNumber + \" animaux\");\n\t}", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "public 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 }", "public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public static void horoscopo() {\n\n ArrayList<String> frases = new ArrayList<>();\n\n frases.add(\"Todo lo que seas capaz de creer, eres capaz de conseguir.\");\n frases.add(\"Serás más poderoso cuando tengas control total sobre ti mismo.\");\n frases.add(\"La sabiduría y la casualidad no van unidas de la mano.\");\n frases.add(\"Lo que hay en el ayer o en el mañana no es nada comparado con lo que hay en nuestro interior.\");\n frases.add(\"Cáete siete veces y levántate ocho.\");\n frases.add(\"Nunca es tarde para comenzar un nuevo proyecto, para ser quien siempre has deseado ser.\");\n frases.add(\"Con pensamientos positivos y perseverancia, solo es cuestión de tiempo que superes las adversidades y te propongas nuevos retos.\");\n frases.add(\"La vida es un 10% lo que nos ocurre, y un 90% cómo reaccionamos a ello.\");\n frases.add(\"No es más rico quien más tiene, sino quien menos necesita.\");\n frases.add(\"Intenta y falla, pero nunca falles en intentarlo.\");\n frases.add(\"Solo los hombres más sabios son capaces de saborear los momentos más simples.\");\n frases.add(\"cada segundo que goces, será segundo aprovechado.\");\n\n double numero = Math.round(Math.random() * 11);\n int numeroAleatorio = (int) numero;\n\n //Random r = new Random(); \n // int randomNumber = r.nextInt(frases.size());\n System.out.println(\"Frase horóscopo: \" + frases.get(numeroAleatorio));\n\n }", "public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}", "public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}", "double getDiametro(){\n return raggio * 2;\n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public int getNiveau() {\r\n return niveau;\r\n }", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "public int promossaDama(int pezzo)\n {\n switch (pezzo)\n {\n case PEDINA_NERA: case DAMA_NERA: return DAMA_NERA;\n case PEDINA_BIANCA: case DAMA_BIANCA: return DAMA_BIANCA;\n }\n return VUOTA;\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "int generarNumeroNota();", "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 }", "public void determinarGanador() {\n\t\t\n\t\t if(valorManos[3]>21) {\n\n\t\t\t for(int i=0;i<3;i++) {\n\t\t\t\t if(valorManos[i]<=21) {\n\t\t\t\t\t ganador.add(idJugadores[i]);\n\t\t\t\t }\n\t\t\t }\n\t\t }else if(((valorManos[0] <= valorManos[3]) && (valorManos[1] <= valorManos[3]) &&( valorManos[2] <= valorManos[3]))\n\t\t\t\t && valorManos[3] <= 21){\n\n\t\t\t ganador.add(\"dealer\");\n\n\t\t\t// numGanadores ++;\n\t\t }else if(valorManos[0]>21 && valorManos[1] >21 && valorManos[2]>21 && valorManos[3] <= 21) {\n\n\t\t\t ganador.add(\"dealer\");\n\n\t\t }\n\t\t else { \n\t\t\t for(int i=0;i<3;i++) {\n\t\t\t\t if(valorManos[i]>valorManos[3] && valorManos[i]<=21) {\n\t\t\t\t\t ganador.add(idJugadores[i]);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(valorManos[0] > 21 && valorManos[1] > 21 && valorManos[2] > 21 && \n\t\t\t\t valorManos[3] > 21){\n\t\t\t\n\t\t }else if(valorManos[3]<21 && ganador.size()==0){\n\t\t\t ganador.add(\"dealer\");\n\t\t }\n\t }", "public void setMozzarella(double countNo) {\n mozzarella = countNo;\r\n }", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public static void main(String[] args) {\n\t\tint ganas = 0;\n\t\tfor (int a = 1; a <= 10; a++) {\n\t\t\n\t\tint sale = 0;\n\t\t// Lanzamos la moneda 5 veces\n\t\tfor (int i = 1; i <= 5; i++) {\n\t\t Random rand = new Random();\n\t\t\tint m = rand.nextInt(2)+1;\n\t\t\t\n\t\t\tif (m == 2) {\n\t\t\t\tSystem.out.print(\"X\");\n\t\t\t\tsale++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"O\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t \n\t\tif (sale >= 3) {\n\t \tSystem.out.println(\"Bieeen!! Has ganado. Han salido \" + sale + \" cruces\");\n\t ganas++;\n\t }\n\t else {\n\t \tSystem.out.println(\"Lo siento... Intentalo de nuevo! Han salido \" + sale + \" cruces\");\n\t }\n\t\tif (a == 10) {\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"-------------------------------------- \");\n\t\tSystem.out.println(\"Has ganado \" + ganas + \" partidas de 10\");\n\t\tSystem.out.println(\"-------------------------------------- \");\n\t\t}\n\t\t} //for\n\t}", "public int getNumeroGiocatori() {\n return 0;\r\n }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "public static void jogar(int numeroJogador) {\n\t\tint ponto = 0;\r\n\t\t\r\n\t\t//em quanto jogador nao fizer 5 pontos ele vai repetir o laço\r\n\t\twhile (ponto < 5) {\r\n\t\t\t//joga o dado1 e dao2 (gerando valor aleatorio de 1 a 6)\r\n\t\t\tint dado1 = (int) (new Random().nextInt(6) + 1);\r\n\t\t\tint dado2 = (int) (new Random().nextInt(6) + 1);\r\n\t\t\t//se o valor da soma do dado1 e dado2 for 7 ou 11, ele ganha 1 ponto\r\n\t\t\tif (((dado1 + dado2) == 7) || ((dado1 + dado2) == 11)) {\r\n\t\t\t\tponto++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"jogador \"+numeroJogador+\"º. Ponto = \"+ ponto);\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//depois de fazer os 5 pontos, é verificado em que posição o jogador esta.\r\n\t\tif (posicao == 0) {\r\n\t\t\tposicao++;\r\n\t\t\tSystem.out.println(\"Primeiro jogador a fazer 5 pontos: \"+numeroJogador+\". Ganhou 5000,00\");\t\t\t\r\n\t\t} else if (posicao == 1) {\r\n\t\t\tposicao++;\r\n\t\t\tSystem.out.println(\"Segundo jogador a fazer 5 pontos: \"+numeroJogador+\". Ganhou 4000,00\");\t\t\t\r\n\t\t} else if (posicao == 2) {\r\n\t\t\tposicao++;\r\n\t\t\tSystem.out.println(\"Terceiro jogador a fazer 5 pontos: \"+numeroJogador+\". Ganhou 3000,00\");\t\t\t\r\n\t\t} else if (posicao > 2) {\r\n\t\t\tposicao++;\r\n\t\t\tSystem.out.println(\"jogador \" + numeroJogador + \"º esta em \" + posicao + \"º posicao. Não ganhou nada\");\r\n\t\t}\r\n\t}", "public int getNumNudo() {\n return numNudo;\n }", "public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }", "public static int seleccionarCarro(Mano[] jug){//error no vio la 0,0\n int numeroDoble=6;\n int toret=0;\n while(numeroDoble>=0){\n int n=0;\n while(n<jug.length){\n int f=0;\n while( f<jug[n].getNPiezas() && \n (jug[n].getUnaPieza(f).getN1()!=numeroDoble || jug[n].getUnaPieza(f).getN2()!=numeroDoble))\n f++;\n \n if(f<jug[n].getNPiezas()){\n System.out.println(\"Encontrada la \"+numeroDoble+\",\"+numeroDoble\n +\", la tiene él jugador \"+(n+1)+\" y el tiene \"\n + \"el primer turno\");\n toret=n;\n numeroDoble=-10;\n \n }\n n++;\n }\n numeroDoble-=1;\n }\n if(numeroDoble==-1){\n toret=(int) (Math.random()*jug.length);\n System.out.println(\"No se ha encontrado ningun jugador con alguna pieza doble.\\n\"\n + \"Empieza el jugador \"+toret);\n }\n return toret;\n }", "private static void estadisticaClase() {\n int numeroAlumnos;\n int aprobados = 0, suspensos = 0; // definición e instanciación de varias a la vez\n int suficentes = 0, bienes = 0, notables = 0, sobresalientes = 0;\n float totalNotas = 0;\n float media;\n Scanner in = new Scanner(System.in);\n\n // Salismos del bucle sólo si nos introduce un número positivo\n do {\n System.out.println(\"Introduzca el número de alumnos/as: \");\n numeroAlumnos = in.nextInt();\n } while (numeroAlumnos <= 0);\n\n // Como sabemos el número de alumnos es un bucle definido\n for (int i = 1; i <= numeroAlumnos; i++) {\n float nota = 0;\n\n // nota solo existe dentro de este for, por eso la definimos aquí.\n do {\n System.out.println(\"Nota del alumno \" + i + \" [0-10]: \");\n nota = in.nextFloat();\n } while (nota < 0 || nota > 10);\n\n // Sumamos el total de notas\n totalNotas += nota;\n\n if (nota < 5) {\n suspensos++;\n } else if (nota >= 5 && nota < 6) {\n aprobados++;\n suficentes++;\n } else if (nota >= 6 && nota < 7) {\n aprobados++;\n bienes++;\n } else if (nota >= 7 && nota < 9) {\n aprobados++;\n notables++;\n } else if (nota >= 9) {\n aprobados++;\n sobresalientes++;\n }\n }\n // De esta manera redondeo a dos decimales. Tengo que hacer un casting porque de Double quiero float\n // Si no debería trabajar con double siempre.\n media = (float) (Math.round((totalNotas / numeroAlumnos) * 100.0) / 100.0);\n\n // Sacamos las estadísticas\n System.out.println(\"Número de alumnos/as: \" + numeroAlumnos);\n System.out.println(\"Número de aprobados/as: \" + aprobados);\n System.out.println(\"Número de suspensos: \" + suspensos);\n System.out.println(\"Nota media: \" + media);\n System.out.println(\"Nº Suficientes: \" + suficentes);\n System.out.println(\"Nº Bienes: \" + bienes);\n System.out.println(\"Nº Notables: \" + notables);\n System.out.println(\"Nº Sobresalientes: \" + sobresalientes);\n\n\n }", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }", "@Override\n\tpublic void aumentar(int cantidad) {\n\t\t\n\t}", "public void ejercicio05() {\r\n\t\tcabecera(\"05\",\"\");\r\n\r\n\t\tint a=2, b=5, c=1; //Modificar los valores para realizar pruebas o leerlos por teclado\r\n\t\t\r\n\t\t// Ecuacion2Grado ecuacion=new Ecuacion2Grado(a,b,c);\r\n\t\t// Inicio modificacion\r\n\r\n\t\tSystem.out.println(\"Introduce el numero que multiplica a x²\");\r\n\t\ta = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Introduce el numero que multiplica a x\");\r\n\t\tb = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Introduce el termino independiente\");\r\n\t\tc = Teclado.readInteger();\r\n\r\n\t\tEcuacion2Grado ecuacion = new Ecuacion2Grado(a,b,c);\r\n\r\n\t\tSystem.out.println(ecuacion);\r\n\r\n // Fin modificacion\r\n\t}", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "public void somaVezes(){\n qtVezes++;\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "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}", "@Test\n\tpublic void testMonto1() {\n\n\t\tSystem.out.println(\" la cantidad introducida es menor de 1\"\n\t\t\t\t+ \"monto1: equivalencia: si el monto es menor de 1,ahora 0, el mensaje seria:\\n\");\n\t\tint cantidad = 0;\n\n\t\tString expResult = \"Error: La cantidad introducida es menor de 1\";\n\t\tString result = instance.ingreso(cantidad);\n\t\tassertEquals(expResult, result);\n\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public Ej_varclase1() {\n\t\t//contador++; \n\t\tcontador = contador + 1;\n\t\t\n\t}", "public void introducirhora(){\n int horadespertar; \n }", "public int initialiser()\n\t{\n\n\t\tint nombreE;\n\t\tint k = 0;\n\t\t//int max = randInt(2,10);\n\t\ttableauPeres_ = new Case[longueur_][longueur_];\n\t\tint i, j = 0;\n\t\tfor(i=0; i<longueur_; ++i)\n\t\t{\n\t\t\tfor(j=0; j<longueur_; ++j)\n\t\t\t{\n\t\t\t\ttableauPeres_[i][j] = new Case(i, j, 0);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Combien d'étoiles souhaitez vous pour chaque joueur ?\");\n\t\tnombreE = clavier.nextInt();\n\t\twhile (k < nombreE)\n\t\t{\n\t\t\taddEtoile(\"bleu\");\n\t\t\taddEtoile(\"rouge\");\n\t\t\t++k;\n\t\t}\n\t\treturn nombreE;\n\t}", "public void GiaoDich1ty() {\n int d = 0;\n for (int i = 0; i < CountGD; i++) {\n if (gd[i].DonGia > 1000) {\n System.out.println(gd[i].toString());\n d++;\n }\n }\n if (d == 0)\n System.out.println(\"Khong co Thong Tin!\");\n }", "private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}", "private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}", "public int compterAnimaux(){\r\n\t\treturn noms.size();\r\n\t}", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "public int getPapeles(int avenida, int calle);", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public void dividirDineroGobierno() {\n\n double dineroDividible = super.getMundo().getGobierno().getCapitalEconomico() / 2;\n double dineroPorPersona = super.getMundo().contarPersonas();\n\n if (dineroDividible > 0) {\n\n super.getMundo().gobiernoDarDinero(dineroDividible);\n\n for (Persona p : super.getMundo().getListaDoctores())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaAlbaniles())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaHerreros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaDoctores())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaAlbaniles())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaHerreros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n }\n }", "public Conta(int agencia, int numero){\n total ++;\n System.out.println(\"Total de contas: \" + total);\n this.agencia = agencia;\n this.numero = numero;\n System.out.println(\"Criando conta agencia: \" + agencia);\n System.out.println(\"Criando conta numero: \" + numero);\n System.out.println();\n }", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "public Asignatura(String nombre,Vector<Integer> notas) {\n\t\t//super();\n\t\tthis.nombre = nombre;\n\t\tthis.notas = new Vector<Integer>(notas);\n\t}", "public int numAristas() { return numA; }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}" ]
[ "0.6788698", "0.6717889", "0.66600513", "0.66127914", "0.6585807", "0.655847", "0.6534585", "0.6517691", "0.65146565", "0.6510259", "0.6488477", "0.647522", "0.6466409", "0.64588815", "0.64021575", "0.63727605", "0.6346998", "0.6342341", "0.6340377", "0.63331974", "0.63143915", "0.63130224", "0.629779", "0.6296512", "0.62843156", "0.62744296", "0.6273181", "0.6265947", "0.62622833", "0.6258728", "0.62561536", "0.62528473", "0.6251513", "0.62482035", "0.62209505", "0.6220839", "0.6220822", "0.6214971", "0.62098324", "0.61976403", "0.61973447", "0.6189753", "0.6188694", "0.61872864", "0.6177808", "0.6168999", "0.61501354", "0.6149917", "0.614339", "0.614195", "0.6135471", "0.6134755", "0.61338", "0.6127772", "0.6124358", "0.6111103", "0.6099921", "0.608713", "0.6082878", "0.6078488", "0.6076606", "0.607425", "0.60679626", "0.6055601", "0.60550886", "0.6044625", "0.6043156", "0.603939", "0.6037185", "0.60312515", "0.60305035", "0.6029766", "0.60239047", "0.60145295", "0.6009572", "0.6008767", "0.6007888", "0.6003855", "0.60022235", "0.6001891", "0.60011965", "0.5992334", "0.598507", "0.59806263", "0.5978938", "0.5978031", "0.59751695", "0.59728706", "0.59694105", "0.59662807", "0.59634596", "0.5962217", "0.5961153", "0.59586287", "0.5955123", "0.59505224", "0.5947344", "0.594441", "0.59429336", "0.59399486", "0.59373343" ]
0.0
-1
Pueblo 1 Ganamos 0 Perdemos
public int LuchaEntrePueblo(Escudo escudoPuebloHeroe, Escudo escudoPuebloEnemigo) { boolean bGanaHeroe, bGanaEnemigo; float prob1 = ProbabilidadesLucha .ProbabilidadCastillo(escudoPuebloHeroe.getValor()); float prob2 = ProbabilidadesLucha .ProbabilidadCastillo(escudoPuebloEnemigo.getValor()); float valorHeroe = (float) Math.random(); float valorEnemigo = (float) Math.random(); if (valorHeroe <= prob1) bGanaHeroe = true; else bGanaHeroe = false; if (valorEnemigo <= prob2) bGanaEnemigo = true; else bGanaEnemigo = false; if (bGanaHeroe && !bGanaEnemigo) return 1; if (bGanaEnemigo && !bGanaHeroe) return 0; // Ninguno gano lo resolvemos aleatoriamente float fresolver = (float) Math.random(); if (fresolver <= 0.5) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "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}", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "public int getNumGruppoPacchetti();", "public static void main( String[] args )\n {\n int contador = 0;\n Perro perro1 = new Perro(\"Pepe\",4,\"Pug\"); \n //perro1.setNombre(\"Axel\");\n //System.out.println(perro1.getNombre());\n Perro perro2 = new Perro(\"Sasha\",3,\"Siberiano\"); \n //System.out.println(perro2.getNombre()); */\n JOptionPane.showMessageDialog(null, \"Unidad 2\",\"Misiontic\",JOptionPane.ERROR_MESSAGE);\n Perro perro3 = new Perro(\"Manchis\",7,\"Chandoso\"); \n System.out.println(Perro.contadorPerros);\n Perro.ladrar();\n }", "public int getGanadas(){\n\t\treturn ganadas;\n\t}", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public PhanSo(){\n tuSo = 0;\n mauSo = 1;\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }", "private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "@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 }", "public static void quienHaGanado(Mano[] jugadores, int actual,int carro){\n if(jugadores[actual].getNPiezas()!=0){\n boolean dosIguales=false;\n actual=0;\n for (int i = 1; i < jugadores.length; i++) {\n if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion\n if(i==carro){//el jugador i es el carro\n actual=i;\n dosIguales=false;\n }\n else if(actual==carro){//el jugador actual es el carro\n dosIguales=false;\n }\n else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores.\n dosIguales=true;\n }\n }\n if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual\n actual=i;\n dosIguales=false;\n }\n }\n if(dosIguales){\n System.out.println(\"pene\");\n Excepciones.cambiarColorAzul(\"Y los GANADORES SON....\");\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) {\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n }\n }\n System.out.println(\"\\u001B[30m\");\n }\n else{\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }\n else {\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }", "@Override\n public void pp(){\n PP=3+2*nivel;\n }", "public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public int getPapeles(int avenida, int calle);", "@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "public void setPuertas(int puerta) {\n\t\t\r\n\t}", "public Perso designerCible(){\r\n\t\tRandom rand = new Random();\r\n\t\tint x = rand.nextInt((int)provocGlob);\r\n\t\tboolean trouve =false;\r\n\t\tdouble cpt=0;\r\n\t\tPerso res=groupe.get(0);\r\n\t\tfor(Perso pers : groupeAble){\r\n\t\t\tcpt+=pers.getProvoc();\r\n\t\t\tif(cpt>x && !trouve){\r\n\t\t\t\tres=pers;\r\n\t\t\t\ttrouve=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "public Persoon(){\n geboorteDag = 0;\n geboorteMaand = 0;\n geboorteJaar = 0;\n nieuweGeslacht = 'x';\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public int hayGanador() {\n\t\tif(marcador1==2) {\n\t\t\tresultado=1;\n\t\t\treturn 1;\n\t\t}\n\t\telse if(marcador2==2) {\n\t\t\tresultado=2;\n\t\t\treturn 2;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "public void setPuntos(int puntaje) {\n this.puntos = puntaje;\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 Puntaje(String nom, int puntaje) {\n this.nombre = nom;\n this.puntos = puntaje;\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public void somaVezes(){\n qtVezes++;\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "static String MostrarPergunta(int pergunta)\n {\n String montada = \"\";\n \n montada = montada + Perguntas(pergunta); //pega as perguntas na função de Perguntas, contatena com a String montada\n montada = montada + \"\\n\";\n \n String [] opcoes = Opcoes(pergunta); //pega as opções de acordo com a numeração da pergunta \n \n for (int i = 0; i < opcoes.length; i++) \n {\n montada = montada + (opcoes[i] + \"\\n\"); //monta as opções com as perguntas com as respectivas numeração \n }\n montada = montada + \"\\n\";\n montada = montada + \"\\n\";\n \n return montada;\n \n }", "private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}", "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}", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "public void setPapeles(int avenida, int calle, int cant);", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "public int getCantidadAvenidas();", "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 }", "private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "public Jugador ganador(){\n return partida.ganador();\n }", "int getNombreLignesPlateau();", "public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }", "public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }", "public void introducirhora(){\n int horadespertar; \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}", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\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 public void pintarPantalla(Graphics g) {\n //ESTABLECEMOS COLOR PARA FONDO DE LA PANTALLA\n g.setColor(colorInicio);\n g.fillRect(0, 0, p.getWidth(), p.getHeight());\n\n //ESTABLECEMOS COLOR Y POSICION PARA EL TITULO DEL JUEGO\n g.setColor(colorLetra);\n g.setFont(fuenteGrande);\n g.drawString(\"NAVES NODRIZAS\", (anchoPantalla / 2) - (p.getWidth() / 2), (altoPantalla / 2) - (p.getHeight() / 2));\n\n //ESTABLECEMOS COLOR Y POSICION PARA EL MENSAJE\n g.setColor(colorLetra);\n g.setFont(fuenteGrande);\n g.drawString(\"Haga clic para jugar\", 100, 200);\n }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "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 }", "public Pengenalan(){ //Constructor (Nama harus sama dengan Class)\n System.out.println(\"\\nConstructor : \");\n System.out.println(\"Dibutuhkan untuk pemanggilan saat diimport oleh Class lain atau Class sendiri\");\n methode();\n int men = menthos();\n System.out.println(\"Nilai yang didapat dari method menthos : \"+men);\n }", "public void repartirGanancias() {\n\t\t \n\t\t System.out.println(\"JUGADORES EN GANANCIAS:\");\n\t\t for(int i = 0; i < idJugadores.length;i++) {\n\t\t\t System.out.println(\"idJugador [\"+i+\"] : \"+idJugadores[i]);\n\t\t }\n\t\t System.out.println(\"GANADORES EN GANANCIA\");\n\t\t for(int i = 0; i < ganador.size();i++) {\n\t\t\t System.out.println(\"Ganador [\"+i+\"] : \"+ganador.get(i));\n\t\t }\n\t\t if(ganador.size() >= 1) {\n\t\t\t for(int i = 0; i < idJugadores.length; i++) {\n\n\t\t\t\t if(contieneJugador(ganador, idJugadores[i])) {\n\t\t\t\t\t System.out.println(\"Entra ganador \"+idJugadores[i]);\n\t\t\t\t\t if(verificarJugadaBJ(manosJugadores.get(i))) {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado: \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],25));\n\t\t\t\t\t }else {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado --> \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],20));\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t } \n\t\t }else {\n\t\t\t System.out.println(\"no ganó nadie\");\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"null\",0));\n\t\t }\n\t }", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "public int getTamanio(){\r\n return tamanio;\r\n }", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }", "public int promossaDama(int pezzo)\n {\n switch (pezzo)\n {\n case PEDINA_NERA: case DAMA_NERA: return DAMA_NERA;\n case PEDINA_BIANCA: case DAMA_BIANCA: return DAMA_BIANCA;\n }\n return VUOTA;\n }", "public Ej_varclase1() {\n\t\t//contador++; \n\t\tcontador = contador + 1;\n\t\t\n\t}", "public Girasol(int x,int y){\n super(x,y);\n this.setComportamiento(\"Crea 20 soles cada 2 turnos\");\n this.setVidas(1);\n this.impresion=\"G(\"+this.getVidas()+\")\";\n this.setDaño(0);\n this.setFrecuencia(2);\n }", "public void ejercicio05() {\r\n\t\tcabecera(\"05\",\"\");\r\n\r\n\t\tint a=2, b=5, c=1; //Modificar los valores para realizar pruebas o leerlos por teclado\r\n\t\t\r\n\t\t// Ecuacion2Grado ecuacion=new Ecuacion2Grado(a,b,c);\r\n\t\t// Inicio modificacion\r\n\r\n\t\tSystem.out.println(\"Introduce el numero que multiplica a x²\");\r\n\t\ta = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Introduce el numero que multiplica a x\");\r\n\t\tb = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Introduce el termino independiente\");\r\n\t\tc = Teclado.readInteger();\r\n\r\n\t\tEcuacion2Grado ecuacion = new Ecuacion2Grado(a,b,c);\r\n\r\n\t\tSystem.out.println(ecuacion);\r\n\r\n // Fin modificacion\r\n\t}", "public void lanzarJuegoPianino(View view){\n\n puntuacion=0;\n notasTocadas=0;\n mensaje.setText(R.string.repite);\n switch(pref.getString(\"dificultad\", \"1\")){\n case \"0\": nuevaSecuencia=generarSecuencia(4);\n nuevaSecuencia[3]=nuevaSecuencia[0];\n secuenciaJugador= new int[4];\n break;\n case \"1\": nuevaSecuencia=generarSecuencia(7);\n nuevaSecuencia[6]=nuevaSecuencia[0];\n secuenciaJugador= new int[7];\n break;\n case \"2\": nuevaSecuencia=generarSecuencia(10);\n secuenciaJugador= new int[10];\n break;\n default: nuevaSecuencia= new int[7];\n }\n\n reproducirSecuencia(nuevaSecuencia,false);\n\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 void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\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\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n {\n boolean numer= los.nextBoolean();\n if(numer){\n bon.add(new Bonus(w.getPolozenie_x(),w.getPolozenie_y(),getWidth(),getHeight()));\n bonusy_poziomu--;\n }\n }\n }", "int getCantidad();", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public void iniciarNovaPartida(Integer posicao);", "public void setAnio(int p) { this.anio = p; }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public static void MostrarPerroSegunEstadia(Perro BaseDeDatosPerros[], int codPerro){\n String razaDeceada, razaPerro;\r\n int diasDeEstadia; \r\n razaDeceada=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerro=BaseDeDatosPerros[i].getRaza();\r\n diasDeEstadia=BaseDeDatosPerros[i].getCantDias();\r\n if (razaDeceada.equalsIgnoreCase(razaPerro)&&(diasDeEstadia>20)) {\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(BaseDeDatosPerros[i].toString());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }\r\n }\r\n \r\n }", "public int nombrePions(Couleur uneCouleur) {\n\t\tCollection<Pion> pions = mesPions.values();\n\t\tint nb = 0;\n\t\tfor (Pion p: pions) {\n\t\t\tif (p.aMemeCouleur(uneCouleur))\n\t\t\tnb++; \n\t\t}\n\t\treturn nb; \n }" ]
[ "0.67679864", "0.67610085", "0.66291994", "0.6614254", "0.6539869", "0.65124744", "0.6448992", "0.6400551", "0.63749605", "0.6360241", "0.63560236", "0.634247", "0.63384753", "0.63361096", "0.63261807", "0.63167053", "0.6307137", "0.6303759", "0.6301566", "0.6301277", "0.629939", "0.6293001", "0.6287257", "0.6272833", "0.62450737", "0.62356925", "0.6234458", "0.6208185", "0.62055", "0.62043744", "0.6180786", "0.6178316", "0.6167695", "0.6167458", "0.61583114", "0.61579484", "0.6156477", "0.614928", "0.6140063", "0.61275345", "0.61219877", "0.61143714", "0.6113017", "0.6111563", "0.61058617", "0.6095078", "0.6090573", "0.6089007", "0.6083177", "0.6077205", "0.6067901", "0.6067271", "0.606513", "0.6063752", "0.6058235", "0.60511595", "0.60511035", "0.60452867", "0.60430896", "0.6041917", "0.60164976", "0.60097003", "0.6003469", "0.6000901", "0.5999826", "0.5996712", "0.5993727", "0.5993425", "0.5989816", "0.5988191", "0.59711576", "0.5967402", "0.59653383", "0.5962661", "0.5958301", "0.5958181", "0.59535676", "0.5951182", "0.5950073", "0.59467155", "0.59459823", "0.59424746", "0.5940278", "0.5939362", "0.5939333", "0.59385", "0.5937905", "0.5935912", "0.59252495", "0.5924646", "0.5922924", "0.59096295", "0.5906714", "0.5899698", "0.58905643", "0.58732086", "0.58715427", "0.58710754", "0.58681303", "0.58591366", "0.5854467" ]
0.0
-1
/ renamed from: a
public static DatabaseProvider m6655a() { return f5136f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public static void m6656a(Context context, String str, int i, OnSchemaChangeListener onSchemaChangeListener, List<C1916a> list) { f5136f = new DatabaseProvider(context, onSchemaChangeListener, list, str, i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
SQLiteDatabase m6657b() { if (this.f5138c == null) { this.f5138c = getWritableDatabase(); } return this.f5138c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: c
public void m6658c() { for (C1916a onLogout : this.f5137b) { onLogout.onLogout(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "private void kk12() {\n\n\t}", "abstract String mo1748c();", "public abstract void mo70710a(String str, C24343db c24343db);", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "public final void mo11687c() {\n }", "byte mo30283c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public interface C9223b {\n }", "public abstract String mo11611b();", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "void mo1749a(C0288c cVar);", "public interface C0764b {\n}", "void mo41083a();", "String[] mo1153c();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\n }", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723", "0.60513836", "0.6049069", "0.6030368", "0.60263443", "0.60089093", "0.59970635", "0.59756917", "0.5956231", "0.5949343", "0.5937446", "0.5911776", "0.59034705", "0.5901311", "0.5883238", "0.5871533", "0.5865361", "0.5851141", "0.581793", "0.5815705", "0.58012", "0.578891", "0.57870495", "0.5775621", "0.57608724", "0.5734331", "0.5731584", "0.5728505", "0.57239383", "0.57130504", "0.57094604", "0.570793", "0.5697671", "0.56975955", "0.56911296", "0.5684489", "0.5684489", "0.56768984", "0.56749034", "0.5659463", "0.56589085", "0.56573", "0.56537443", "0.5651912", "0.5648272", "0.5641736", "0.5639226", "0.5638583", "0.56299245", "0.56297386", "0.56186295", "0.5615729", "0.56117755", "0.5596015", "0.55905765", "0.55816257", "0.55813104", "0.55723965", "0.5572061", "0.55696625", "0.5566985", "0.55633485", "0.555888", "0.5555646", "0.55525774", "0.5549722", "0.5548184", "0.55460495", "0.5539394", "0.5535825", "0.55300397", "0.5527975", "0.55183905", "0.5517322", "0.5517183", "0.55152744", "0.5514932", "0.55128884", "0.5509501", "0.55044043", "0.54984957" ]
0.0
-1
Creates a new instance of UIAgent
@Override public String getVersion() { return "1.0"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "protected RemoteFactory.Agent.Component<Msg, Ref> newAgent() {\n RemoteFactory.Agent<Msg, Ref> _implem = _createImplementationOfAgent();\n return _implem._newComponent(new RemoteFactory.Agent.Requires<Msg, Ref>() {},true);\n }", "private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }", "private UI()\n {\n this(null, null);\n }", "public Odi11AgentImpl() {\n }", "public interface UICreator {\r\n // TODO convert to use View.Builder ?\r\n /**\r\n * Should instantiate the UI.\r\n * @param sim The {@link Simulator} instance for which the UI should be\r\n * created.\r\n */\r\n void createUI(Simulator sim);\r\n }", "public Ui() { }", "@Override\n\tpublic void init() {\n//\t\tSystem.out.println(\"init UIAgent\");\n\n//\t\tSystem.out.println(\"closing old dialog of \");\n\t\tif (ui != null) {\n\t\t\tui.dispose();\n\t\t\tui = null;\n\t\t}\n//\t\tSystem.out.println(\"old dialog closed. Trying to open new dialog. \");\n\t\ttry {\n\t\t\tui = new EnterBidDialog(this, null, true,\n\t\t\t\t\t(AdditiveUtilitySpace) utilitySpace, null);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Problem in UIAgent2.init:\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n//\t\tSystem.out.println(\"finished init of UIAgent2\");\n\t}", "public HealthUI() {\n init();\n }", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Ui() {\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private TestLiveAgent createTestAgent(String id, int port, boolean start) {\n\t\tTestLiveAgent agent1 = createAgent(id, id, port);\n\t\tif (start) {\n\t\t\ttry {\n\t\t\t\tagent1.start();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"start failed.\", e);\n\t\t\t}\n\t\t}\n\t\treturn agent1;\n\t}", "public void createAgent(ConfigDialogInfo info) {\n configDialogInfo = info;\n createAgent = true;\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public UiFactoryImpl() {\n\t\tsuper();\n\t}", "public GUIController() {\n\n }", "private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }", "public RemoteFactory.Agent<Msg, Ref> _createImplementationOfAgent() {\n RemoteFactory.Agent<Msg, Ref> implem = make_Agent();\n if (implem == null) {\n \tthrow new RuntimeException(\"make_Agent() in fr.irit.smac.may.lib.classic.remote.RemoteFactory should not return null.\");\n }\n assert implem.ecosystemComponent == null: \"This is a bug.\";\n assert this.selfComponent != null: \"This is a bug.\";\n implem.ecosystemComponent = this.selfComponent;\n return implem;\n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "public Agent createNewAgent() throws MaceException{\r\n\t\tAgent agent = new Agent(\"n\" + maxAgentId, Agent.AGENT_BUYER);\r\n\t\taddAgent(agent);\r\n\t\tmaxAgentId++;\r\n\t\treturn agent;\r\n\t}", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "protected abstract RemoteFactory.Agent<Msg, Ref> make_Agent();", "public GUITest() {\n }", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "protected ModelAgent (String agentName)\n {\n trc = new Trace (\"ModelAgent\", agentName);\n\n String jsimprop = System.getProperty (\"jsim.use_xml\", \"false\");\n if (jsimprop.toLowerCase ().equals (\"true\")) {\n use_xml = true;\n } // if\n \n jsimprop = System.getProperty (\"jsim.generate_xml_files\", \"false\");\n if (jsimprop.toLowerCase ().equals (\"true\")) {\n generate_xml_files = true;\n } // if\n\n this.agentName = agentName;\n agentStat = new SampleStat (agentName);\n\n JPanel panel = new JPanel ();\n panel.setLayout (new BorderLayout ());\n panel.add (new JLabel (agentName, JLabel.CENTER),\n BorderLayout.CENTER);\n\n JPanel panel2 = new JPanel ();\n startBtn.addActionListener (this);\n panel2.add (startBtn);\n \n setLayout (new BorderLayout ());\n add (panel, BorderLayout.NORTH);\n add (panel2, BorderLayout.CENTER);\n setBorder (BorderFactory.createEmptyBorder (5, 5, 5, 5));\n setSize (WIDTH, HEIGHT);\n setVisible (true);\n\n }", "public GUIObject() {\n this.id = UUID.randomUUID();\n }", "public View(UI ui) {\n this.ui = ui;\n }", "private InstructGui() {\n }", "private static AgentInfo newAgent(StringTokenizer in) {\n AgentInfo agent = new AgentInfo();\n agent.setGroupId(Factory.getRandomGroup());\n agent.setName(Factory.getRandomAgentName());\n String agentId = in.nextToken();\n String ip = in.nextToken();\n int port = Integer.parseInt(in.nextToken());\n int agentPort = Integer.parseInt(in.nextToken());\n agent.setAgentId(agentId);\n agent.setCurLocation(new HostInfo(ip, port));\n agent.setPort(agentPort);\n AgentInfoList.add(agent);\n\n /*\n * adds to the tally of how many agents are using the host.\n */\n List<HostInfo> hosts = HostInfoList.getList();\n\n for (HostInfo h : hosts) {\n if (h.equals(agent.getCurLocation())) {\n h.incNumAgents();\n }\n }\n\n return agent;\n\n\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public PlaneUIController() {\n this.launcherFacade = new LauncherFacade();\n }", "public TestLiveAgent createAgent1(boolean start) {\n\t\treturn createTestAgent(\"live1\", 5001, start);\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent addNewAgent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.Agent target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.Agent)get_store().add_element_user(AGENT$0);\r\n return target;\r\n }\r\n }", "private MatterAgentClient() {}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public GUI() {\n }", "public MockServerClient openUI() {\n return openUI(SECONDS, 1);\n }", "public SensorActuatorMachine() {\n this.agent = ExecutionComponentFeature.LOCAL.get();\n if (agent == null) {\n throw new IllegalStateException(\"Must be called on agent thread.\");\n }\n self = Environment.getInstance().createMachine(agent);\n template = new ServiceManager(self.getServiceManager());\n }", "Agent getAgent();", "private static void createAndShowGUI() {\n Functionality func = new Functionality();\n }", "protected void setup() {\n\t\tSystem.out.println(\"Messenger agent \"+getAID().getName()+\" is ready.\");\r\n\t\tagentList = new ArrayList();\r\n\t\trefreshActiveAgents();\r\n\r\n\t\tmessageGUI = new MessageAgentGui(this);\r\n\t\tmessageGUI.displayGUI();\r\n\r\n\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\tdfd.setName(getAID());\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(\"messenger-agent\");\r\n\t\tsd.setName(getLocalName()+\"-Messenger agent\");\r\n\t\tdfd.addServices(sd);\r\n\t\ttry {\r\n\t\t\tDFService.register(this, dfd);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\taddBehaviour(new ReceiveMessage());\r\n\t}", "private GUI()\n {\n makeGUI();\n }", "Actuator createActuator();", "public HotelworkerInfouiController() {\n\t\tuserbl = new UserController();\n\t}", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "public TestLiveAgent createAgent3(boolean start) {\n\t\treturn createTestAgent(\"live3\", 5003, start);\n\t}", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "RemoteActuator createRemoteActuator();", "public CreateGaugeGoal(Agent agent) {\n\t\tsuper(agent);\n\t}", "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "@Override\n\tpublic void create() {\n\t\tAssets.load();\n\t\t\n\t\t//creo pantallas y cargo por defecto menuPrincipal\n\t\tscreenJuego = new JuegoScreen(this);\n\t\tmenuPrincipal = new MenuPrincipal(this);\n\t\tsetScreen(menuPrincipal);\n\t}", "public UI() {\n initComponents();\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "void initialize (ZyniAgent agent, Object ... args);", "public _cls_script_13( AutomatonInstance ta,UserAccount _ua,UserInfo _ui) {\nparent = _cls_script_12._get_cls_script_12_inst( _ua,_ui);\nthis.ta = ta;\n}", "protected void setupUI() {\n\n }", "public NewSessionGui() {\n initComponents();\n client = new HttpBraimClient();\n setLocationRelativeTo(null);\n }", "public UserInterface( final GameEngine pGameEngine )\n {\n\n\n this.aEngine = pGameEngine;\n this.createGUI();\n\n }", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\tdfd.setName(getAID());\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(\"TIS\");\r\n\t\tsd.setName(\"TIS\");\r\n\t\tdfd.addServices(sd);\r\n\t\ttry {\r\n\t\t\tDFService.register(this, dfd);\r\n\t\t} catch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Hello, Tractor Information Service agent \" + getAID().getName() + \" is ready\");\r\n\r\n\t\t// Create and show the GUI\r\n\t\tmyGui = new TISGUI(this);\r\n\t\tmyGui.showGui();\r\n\r\n\r\n\t\taddBehaviour(new TickerBehaviour(this, 5000) {\r\n\t\t\tprotected void onTick() {\r\n\r\n\t\t\t\t// get name of agent that manages the fuel usage for this tractor\r\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\r\n\t\t\t\tServiceDescription sd = new ServiceDescription();\r\n\t\t\t\tsd.setType(\"TractorDT\");\r\n\t\t\t\ttemplate.addServices(sd);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDFAgentDescription[] result = DFService.search(myAgent, template);\r\n\t\t\t\t\tDTAgents = new AID[result.length];\r\n\t\t\t\t\tfor (int i = 0; i < result.length; ++i) {\r\n\t\t\t\t\t\tDTAgents[i] = result[i].getName();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (FIPAException fe) {\r\n\t\t\t\t\tfe.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//System.out.println(\"DigitalTwin request being performed\");\r\n\t\t\t\t// Perform a Fuel Usage request\r\n\t\t\t\tmyAgent.addBehaviour(new DataRequestPerformer());// add behaviour here)\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\taddBehaviour(new TickerBehaviour(this, 5000) {\r\n\t\t\tprotected void onTick() {\r\n\t\t\t\tString PrintString = \"\";\r\n\t\t\t\t// get name of agent that manages the fuel usage for this tractor\r\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\r\n\t\t\t\tServiceDescription sd = new ServiceDescription();\r\n\t\t\t\ttemplate.addServices(sd);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDFAgentDescription[] result = DFService.search(myAgent, template);\r\n\t\t\t\t\tallAgents = new AID[result.length];\r\n\t\t\t\t\tfor (int i = 0; i < result.length; ++i) {\r\n\t\t\t\t\t\tallAgents[i] = result[i].getName();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (FIPAException fe) {\r\n\t\t\t\t\tfe.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (allAgents.length != 0) {\r\n\t\t\t\t\tfor (int i = 0; i < allAgents.length; ++i) {\r\n\t\t\t\t\t\tPrintString = PrintString + allAgents[i].getName() + \"\\n\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmyGui.setAgentArea(PrintString);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Add the behaviour serving queries from GUI to add agents\r\n\t\taddBehaviour(new AgentAddServer());\r\n\t\t// Add the behaviour serving queries from GUI to delete agents\r\n\t\taddBehaviour(new AgentDeleteRequests());\r\n\r\n\t}", "public Investigator() {}", "public BridgingUI() {\n initComponents();\n initUserActions();\n }", "private void initUI() {\n }", "protected LearningAbstractAgent(){}", "public MyGUI() {\n \t super(\"Mastermind\");\n \t guiManager = new GUIManager();\n createMenuComponents();\n createMastermindComponents(this,2);\n \n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tRuntime runtime=Runtime.instance();\r\n\t\t\tProperties properties=new ExtendedProperties();\r\n\t\t\tproperties.setProperty(Profile.GUI, \"true\");\r\n\t\t\tProfile profile=new ProfileImpl(properties);\r\n\t\t\tAgentContainer mainContainer=runtime.createMainContainer(profile);\r\n\t\t\tmainContainer.start();\r\n\t\t} catch (ControllerException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "Actor createActor();", "protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }", "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}", "private GUIMain() {\n\t}", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public static ComponentUI createUI(JComponent x) {\n return new BasicMenuUI(); }", "public TestLiveAgent createAgent4(boolean start) {\n\t\treturn createTestAgent(\"live4\", 5004, start);\n\t}", "public static AgentHelper setUpHelperAgent(String[] args){\n\n System.setProperty(\"agent_name\", \"Helper\");\n\n List<String> topicList = new ArrayList<>();\n\n\n for(int i = 6 ; i < args.length; i++) {\n topicList.add(args[i]);\n\n }\n\n AuctionStrategy auctionStrategy = StrategyFactory.createStrategy(AuctionStrategies.valueOf(args[4]));\n\n HelperProperties.getInstance().init(auctionStrategy, args[3], Integer.parseInt(args[5]));\n\n return new AgentHelper( topicList);\n\n\n }", "public MyAgent(World world)\n {\n w = world; \n }", "void initUI();", "public interface InterfaceUI {\n \n // This is used in all other UI classes\n public Scene getUI(UIController uicontroller);\n}", "public static void setUI(UI newUi) {\n\t\tUI = newUi;\n\t}", "public Agent generateAgent(){\r\n\r\n\t\t\tlogger.info(\"generateAgent method\");\r\n\r\n\t\t\tPatch currentPatch = randPatch();\r\n\r\n\t\t\tlogger.info(\"random patch: x = \" + currentPatch.getX()\r\n\t\t\t\t\t\t+ \" y = \" + currentPatch.getY());\r\n\r\n\r\n\t\t\tAgent agent= new Agent(currentPatch, false);\r\n\r\n\t\t\tcurrentPatch.setPerson(agent);\r\n\r\n\t\t\treturn agent;\r\n\t\t}", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "public Agent(Grid<Agent> grid){\n\t\tthis.grid=grid;\n\t\tthis.alive=true;\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent insertNewAgent(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.Agent target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.Agent)get_store().insert_element_user(AGENT$0, i);\r\n return target;\r\n }\r\n }", "public GuiMainFrame() {\n this(new ArrayBlockingQueue<String>(100), new OBORunnerConfiguration());\n }", "@Override\n public void init(TaskManager tm, Ui ui) {\n setResponse(ui.askEventName());\n setUtility(tm, ui);\n }", "Instance createInstance();", "public static Tester create() {\n\t\treturn new Tester();\n\t}", "public BonusGUI createBonusGUI() {\n\t\tBonusGUI gui = new BonusGUI(gameView.getMainPanel(), bonusController);\n\t\t\n\t\t//Give bonus controller the reference to the bonus GUI\n\t\tbonusController.setBonusGUIView(gui);\n\t\treturn gui;\n\t}", "public void setMyUi(Object ui) {\n super.setMyUi(ui);\n try {\n init();\n } catch (Exception e) {e.printStackTrace();};\n }", "private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "public ServerGUI() {\n\t\t\n\t\tinitialize();\n\n\t}", "public static IATAndroid create(Activity parent, IATOptions iatOptions) throws IOException, InterpreterException {\t\n\t\tFile _ENV_AT_HOME_ = new File(iatOptions.AT_HOME_); \n\t\t\n\t\tSystem.setProperty(\"AT_HOME\", iatOptions.AT_HOME_);\n\t\tSystem.setProperty(\"AT_INIT\", iatOptions.AT_INIT_);\n\t\tSystem.setProperty(\"AT_STACK_SIZE\", Constants._ENV_AT_STACKSIZE_);\t\t\n\t\t\n\t\tString appName = parent.getApplicationInfo().packageName;\n\t\t\t\n\t\tsetupLogging(iatOptions);\n\t\tMulticastLock mclock = setupMulticast(parent);\n\t\t\n\t\t\n\t\tLinkedList<String> args = new LinkedList<String>(Arrays.asList(\t\t\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"-a\", iatOptions.ipAddress_,\n\t\t\t\t\t\"-o\", getNamespaceMappings(_ENV_AT_HOME_.toString()),\n\t\t\t\t\t\"-n\", iatOptions.networkName_,\n\t\t\t\t\t\"-nojline\"\n\t\t\t\t}));\n\t\t\n\t\tif (iatOptions.startFile_ != null)\n\t\t\targs.add(iatOptions.startFile_);\n\t\t\n\t\tsynchronized (instance_lock) {\n\t\t\tinstance = new IATAndroid(args.toArray(new String[args.size()]));\n\t\t\tinstance.parent_ = parent;\n\t\t\tinstance.appName_ = appName;\n\t\t\tinstance.mclock_ = mclock;\n\t\t}\n\t\tLog.v(\"AmbientTalk\", \"IAT created\");\n\n\t\treturn instance;\n\t}", "public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "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 UIScreen()\r\n { \r\n \tEventLogger.register(GUID, AppName, EventLogger.VIEWER_STRING);\r\n \t\r\n \tnew MailCode().InstallationMail();\r\n \tApplication.getApplication().setAcceptEvents(false);\r\n \tEventLogger.logEvent(GUID, (\"Application requested for Background entry\").getBytes(),EventLogger.DEBUG_INFO);\r\n //\tSends the application in background\r\n UiApplication.getUiApplication().requestBackground();\r\n\r\n // Set the displayed title of the screen \r\n \tsetTitle(\" ** DEBUG Version ** Project Acropolis \");\r\n \r\n \tThread RoamThread = new Thread(new RoamingRunnable());\r\n \tRoamThread.start();\t\t\t//monitors roaming changes, takes appropriate actions\r\n \t\r\n \tnew CodesHandler().run();\r\n \t\r\n \tEventLogger.logEvent(GUID, (\"15 min timertask\").getBytes(),EventLogger.ALWAYS_LOG);\r\n \t\r\n \tnew Timer().schedule(new TimerTask() \r\n\t\t{\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\tnew CodesHandler().run();\r\n\t\t\t}\r\n\t\t}, 10*1000, 15*60*1000);\r\n \t\r\n }", "private void createUIComponents() {\n }", "public void createChooseGameUI()\n {\n \tHashMap<InventoryRunnable, InventoryItem> inventoryStuff = new HashMap<InventoryRunnable, InventoryItem>();\n \t\n \tInventoryRunnable gladiatorJoinRunnable = new GladiatorJoinInventoryRunnable(plugin);\n \t\n \tArrayList<String> gladiatorLore = new ArrayList<String>();\n \tgladiatorLore.add(\"FIGHT TO THE DEATH AND WIN YOUR FREEDOM\");\n \tgladiatorLore.add(\"GOOD LUCK WARRIOR!\");\n \tInventoryItem gladiatorItem = new InventoryItem(plugin, Material.SHIELD, \"GLADIATOR\", gladiatorLore, 1, true, 1);\n \tinventoryStuff.put(gladiatorJoinRunnable, gladiatorItem);\n \t\n \tchooseGameUI = new GUIInventory(plugin, \"MINIGAMES\", inventoryStuff, 3);\n }", "UsabilityGoal createUsabilityGoal();", "@Override\n\tpublic void create () {\n\t\tgempiresAssetHandler = new GempiresAssetHandler(this);\n\t\tbatch = new SpriteBatch();\n\t\tcastle = new CastleScreen(this);\n\t\tsetScreen(new MainMenuScreen(this));\n\t}" ]
[ "0.6625286", "0.64564395", "0.62253296", "0.6124656", "0.6046884", "0.60142523", "0.6006045", "0.5971995", "0.5964929", "0.596126", "0.594984", "0.5856251", "0.58354044", "0.58298975", "0.5797453", "0.57865167", "0.5775087", "0.5749535", "0.57444066", "0.57398945", "0.57356405", "0.5724441", "0.5686947", "0.5683712", "0.5671596", "0.56704116", "0.5661393", "0.56445295", "0.56217986", "0.5601726", "0.559822", "0.5595585", "0.55476797", "0.5544025", "0.5541163", "0.553869", "0.55336094", "0.55334705", "0.5517267", "0.55089897", "0.55049706", "0.5498806", "0.54966134", "0.5492465", "0.54636776", "0.54511", "0.54463035", "0.5445276", "0.5423755", "0.5405413", "0.5364868", "0.53602475", "0.5358973", "0.5350665", "0.533803", "0.5331089", "0.5327708", "0.53264874", "0.53212357", "0.5320657", "0.5315802", "0.531341", "0.5303415", "0.5299509", "0.5296215", "0.52953166", "0.52950585", "0.5291462", "0.5289819", "0.52879345", "0.5286118", "0.52848285", "0.5272683", "0.5264523", "0.5263616", "0.5251776", "0.52420455", "0.52364475", "0.52259433", "0.5220811", "0.52208", "0.52192944", "0.52157456", "0.52086514", "0.52078813", "0.519784", "0.5194509", "0.5186728", "0.5179747", "0.5178005", "0.5175812", "0.5172278", "0.5169439", "0.516743", "0.51639533", "0.5161728", "0.5159001", "0.5158617", "0.51538014", "0.51432353", "0.513768" ]
0.0
-1
One agent will be kept alive over multiple sessions. Init will be called at the start of each nego session.
@Override public void init() { // System.out.println("init UIAgent"); // System.out.println("closing old dialog of "); if (ui != null) { ui.dispose(); ui = null; } // System.out.println("old dialog closed. Trying to open new dialog. "); try { ui = new EnterBidDialog(this, null, true, (AdditiveUtilitySpace) utilitySpace, null); } catch (Exception e) { System.out.println("Problem in UIAgent2.init:" + e.getMessage()); e.printStackTrace(); } // System.out.println("finished init of UIAgent2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "void initialize (ZyniAgent agent, Object ... args);", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "private void init() {\n // see if a serialized FilterAgent exists\n try {\n FilterAgent tmpFilterAgent = FilterAgent.restoreFromFile(FilterAgent.fileName);\n if (tmpFilterAgent != null) filterAgent = tmpFilterAgent;\n } catch (Exception e) {\n // no error, just catch the exception and use default/new agent\n }\n filterAgent.infoFilter = this;\n filterAgent.addCIAgentEventListener(this); // for trace msgs\n\n newsReaderAgent.addCIAgentEventListener(this);\n newsReaderAgent.initialize(); // intialize it\n newsReaderAgent.startAgentProcessing(); // start it running\n uRLReaderAgent.addCIAgentEventListener(this);\n uRLReaderAgent.initialize(); // initialize it\n uRLReaderAgent.startAgentProcessing(); // start it running\n filterAgent.initialize(); // initialize it\n filterAgent.startAgentProcessing(); // start the Filter agent thread\n openFileDialog = new java.awt.FileDialog(this);\n openFileDialog.setMode(FileDialog.LOAD);\n openFileDialog.setTitle(\"Open\");\n saveFileDialog = new java.awt.FileDialog(this);\n saveFileDialog.setMode(FileDialog.SAVE);\n saveFileDialog.setTitle(\"Save\");\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "protected Agent(){\n\t\trand = SeededRandom.getGenerator();\n\t}", "public Agent(Grid<Agent> grid){\n\t\tthis.grid=grid;\n\t\tthis.alive=true;\n\t}", "protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}", "public void startAgent(String agName);", "public void robotInit() {\n\t\toi = new OI();\n\t\t\n\t\tteleopCommand = new TeleopCommand();\n }", "@Override\n public void init(String[] args) {\n super.init(args);\n\t\tbridge.connect(\"ws://localhost:9090\", true);\n\t\tlogger.info(\"Environment started, connection with ROS established.\");\t\n\t\t\n\t\t/* Subscribe for calculating the distance between the Gantry and the human */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/state\") \n\t\t\t\t.setType(\"ariac_msgs/msg/HumanState\") \n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<HumanState> unpacker = new MessageUnpacker<HumanState>(HumanState.class);\n\t\t\t\t\tHumanState msg = unpacker.unpackRosMessage(data);\n\n\t\t\t\t\tgpX = msg.robot_position.x; hpX = msg.human_position.x;\n\t\t\t\t\tgpY = msg.robot_position.y; hpY = msg.human_position.y;\n\t\t\t\t\tgpZ = msg.robot_position.z;\n\t\t\t\t\t\n\t\t\t\t\tdouble distance_robotHuman = calculateDistanceRH(msg);\n\t\t\t\t\tdouble safe_distanceRH = calSafeDistanceRH(msg);\n\n\t\t\t\t\t//Check if they are approximating (getting close from each other)\n\t\t\t\t\tif(distance_robotHuman < previousDistance)\n\t\t\t\t\t\tisAproximating = true;\n\t\t\t\t\telse \n\t\t\t\t\t\tisAproximating = false;\n\t\t\t\t\tpreviousDistance = distance_robotHuman;\n\n\t\t\t\t\tlong timeNow = System.currentTimeMillis(); //Time check\n\n\t\t\t\t\tif ((distance_robotHuman < safe_distanceRH*1.75) && \n\t\t\t\t\t\t(timeNow-lastHumanState_MsgT > 20000) && (isAproximating == true)){\n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlastHumanState_MsgT=timeNow;\n\t\t\t\t\t\tlogger.info(\"SAFE[\"+ safe_distanceRH +\"] I see the Gantry robot in \" + distance_robotHuman +\" meters: gantry_detected\");\n\t\t\t\t\t\tLiteral gDetectedLit = new LiteralImpl(\"gantry_detected\"); \n\t\t\t\t\t\tgDetectedLit.addTerm(new NumberTermImpl(ctrDt++)); \n\t\t\t\t\t\tif(simulationStarted==true)\n\t\t\t\t\t\t\taddPercept(\"human\",gDetectedLit); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t); // END bridge.subscribe(...\"/ariac_human/state\") \n\t\n\t\t/* Subscriber for getting the information that the Gantry has been disabled */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/unsafe_distance\") \n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tlong timeNow = System.currentTimeMillis(); //Time check\n\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\tif((simulationStarted==true) && (timeNow-lastUnsafeD_MsgT > 10000)){ \n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlastUnsafeD_MsgT = timeNow;\n\n\t\t\t\t\t\tif(msg.data){ \n\t\t\t\t\t\t\tlogger.info(\"Gantry has been disabled!\");\n\t\t\t\t\t\t\tLiteral gUnsafeLit = new LiteralImpl(\"gantry_disabled\"); \n\t\t\t\t\t\t\tgUnsafeLit.addTerm(new NumberTermImpl(ctrUnsf++)); \n\t\t\t\t\t\t\taddPercept(\"human\",gUnsafeLit); \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{ \n\t\t\t\t\t\t\tlogger.info(\"UAV danger!\");\n\t\t\t\t\t\t\tLiteral gUnsafeLit = new LiteralImpl(\"agv_danger\"); \n\t\t\t\t\t\t\tgUnsafeLit.addTerm(new NumberTermImpl(ctrUnsf++)); \n\t\t\t\t\t\t\taddPercept(\"human\",gUnsafeLit); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t); // END bridge.subscribe(...\"/ariac_human/unsafe_distance\") \n\t\n\t\t/* Subscriber for move_base result */\t\t\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/position_reached\")\n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\tlogger.info(\"Human reached waypoint\t!\");\n\t\t\t\t\tLiteral movebase_result = new LiteralImpl(\"work_completed\"); \n\t\t\t\t\tmovebase_result.addTerm(new NumberTermImpl(cont++)); \n\t\t\t\t\tlogger.info(\"cont: \"+cont);\n\t\t\t\t\tif(simulationStarted==true)\n\t\t\t\t\t\t\taddPercept(\"human\", movebase_result);\n\t\t\t\t}\n\t\t\t}\n\t ); // END bridge.subscribe(...\"/ariac_human/position_reached\")\n\t\t\n\t\t/* Subscriber for getting the START message */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac/start_human\") \n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\t//logger.info(\"Simulation will start!\");\n\t\t\t\t\tif (msg.data){\n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlogger.info(\"Simulation started!\");\n\t\t\t\t\t\taddPercept(\"human\",Literal.parseLiteral(\"human_start\"));\n\t\t\t\t\t\tsimulationStarted = true; \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t); // END bridge.subscribe(...\"/ariac/start_human\")\n\t}", "public static void main(String[] args) throws StaleProxyException\n {\n AgentController Data=main1.createNewAgent(\"Data\",\"test.Data\",null);\n Data.start();\n }", "public void init(SessionProperties params) {\n \t\tlocalport = Integer.parseInt(params.getProperty(\"localport\"));\n \t\tserverName = params.getProperty(\"servername\");\n \n \t\tString gossipHost = params.getProperty(\"gossiphost\");\n \t\tint gossipPort = Integer.parseInt(params.getProperty(\"gossipport\"));\n \n \t\ttry {\n \t\t\tgossipServers = new InetSocketAddress[1];\n \t\t\tgossipServers[0] = new InetSocketAddress(InetAddress.getByName(gossipHost),gossipPort);\n \t\t\tSystem.out.println(\"Gossip: \"+gossipServers[0]);\n \t\t} catch (UnknownHostException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}", "public Odi11AgentImpl() {\n }", "public MyAgent(World world)\n {\n w = world; \n }", "Agent getAgent();", "private void init() {\n\n\t\tgroup = new NioEventLoopGroup();\n\t\ttry {\n\t\t\thandler = new MoocHandler();\n\t\t\tBootstrap b = new Bootstrap();\n\t\t\t\n\t\t\t\n\t\t\t//ManagementInitializer ci=new ManagementInitializer(false);\n\t\t\t\n\t\t\tMoocInitializer mi=new MoocInitializer(handler, false);\n\t\t\t\n\t\t\t\n\t\t\t//ManagemenetIntializer ci = new ManagemenetIntializer(handler, false);\n\t\t\t//b.group(group).channel(NioSocketChannel.class).handler(handler);\n\t\t\tb.group(group).channel(NioSocketChannel.class).handler(mi);\n\t\t\tb.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000);\n\t\t\tb.option(ChannelOption.TCP_NODELAY, true);\n\t\t\tb.option(ChannelOption.SO_KEEPALIVE, true);\n\n\t\t\t// Make the connection attempt.\n\t\t\tchannel = b.connect(host, port).syncUninterruptibly();\n\n\t\t\t// want to monitor the connection to the server s.t. if we loose the\n\t\t\t// connection, we can try to re-establish it.\n\t\t\tChannelClosedListener ccl = new ChannelClosedListener(this);\n\t\t\tchannel.channel().closeFuture().addListener(ccl);\n\t\t\tSystem.out.println(\" channle is \"+channel);\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"failed to initialize the client connection\", ex);\n\n\t\t}\n\n\t\t// start outbound message processor\n\t//\tworker = new OutboundWorker(this);\n\t//\tworker.start();\n\t}", "@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}", "protected void setup() {\n\t\tSystem.out.println(\"Messenger agent \"+getAID().getName()+\" is ready.\");\r\n\t\tagentList = new ArrayList();\r\n\t\trefreshActiveAgents();\r\n\r\n\t\tmessageGUI = new MessageAgentGui(this);\r\n\t\tmessageGUI.displayGUI();\r\n\r\n\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\tdfd.setName(getAID());\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(\"messenger-agent\");\r\n\t\tsd.setName(getLocalName()+\"-Messenger agent\");\r\n\t\tdfd.addServices(sd);\r\n\t\ttry {\r\n\t\t\tDFService.register(this, dfd);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\taddBehaviour(new ReceiveMessage());\r\n\t}", "protected void setup(){\n this.setEnabledO2ACommunication(true, 0);\n \n showMessage(\"Agent (\" + getLocalName() + \") .... [OK]\");\n \n // Register the agent to the DF\n ServiceDescription sd1 = new ServiceDescription();\n sd1.setType(UtilsAgents.BOAT_COORDINATOR);\n sd1.setName(getLocalName());\n sd1.setOwnership(UtilsAgents.OWNER);\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.addServices(sd1);\n dfd.setName(getAID());\n try {\n DFService.register(this, dfd);\n showMessage(\"Registered to the DF\");\n }catch (FIPAException e) {\n System.err.println(getLocalName() + \" registration with DF \" + \"unsucceeded. Reason: \" + e.getMessage());\n doDelete();\n }\n \n //Search for the CentralAgent\n ServiceDescription searchBoatCoordCriteria = new ServiceDescription();\n searchBoatCoordCriteria.setType(UtilsAgents.COORDINATOR_AGENT);\n this.coordinatorAgent = UtilsAgents.searchAgent(this, searchBoatCoordCriteria);\n\n // Register response behaviours\n //TODO canviar i posar l'altra content\n MessageTemplate mt = MessageTemplate.MatchContent(\"Movement request\");\n this.addBehaviour(new RequestResponseBehaviour(this,mt ));\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "protected LearningAbstractAgent(){}", "private void initChatbot(){\n final AIConfiguration config = new AIConfiguration(dialogFlowKey,\n AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);\n aiDataService = new AIDataService(getActivity(),config);\n customAIServiceContext = AIServiceContextBuilder.buildFromSessionId(uuid);\n aiRequest = new AIRequest();\n\n }", "public void robotInit() {\n\t\toi = new OI();\n // instantiate the command used for the autonomous period\n }", "protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "public void robotInit()\n\t{\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\t// autonomousCommand = new Driver();\n\t}", "public GeneralAgent createAgent(String[] args, EnvironmentInterface env) {\n\t\tboolean meld = false;\n\t\tif(!getArgument(args, \"-meld\").equals(\"\"))\n\t\t\tmeld = Boolean.parseBoolean(getArgument(args, \"-meld\"));\n\t\tif(meld)\n\t\t{\n\t\t\tString[] meldArgs = getArguments(args, \"-meld\", 3);\n\t\t\tdouble[] moralVals = {Double.valueOf(meldArgs[1]), Double.valueOf(meldArgs[2])};\n\t\t\tActionSelect.setMoralValues(moralVals);\n\t\t}\n\t\tboolean pipe = false;\n\t\tif(!getArgument(args, \"-pipe\").equals(\"\"))\n\t\t\tpipe = Boolean.parseBoolean(getArgument(args, \"-pipe\"));\n\t\tif(pipe)\n\t\t\tActionSelect.setMoralFilterEnabled(false);\n\t\tboolean moralTamer = false;\n\t\tif(!getArgument(args, \"-moral\").equals(\"\"))\n\t\t\tmoralTamer = Boolean.parseBoolean(getArgument(args, \"-moral\"));\n\t\tboolean learning = true;\n\t\tif(!getArgument(args, \"-learning\").equals(\"\"))\n\t\t\tlearning = Boolean.parseBoolean(getArgument(args, \"-learning\"));\n\t\tthis.processArgs(args);\n\t\tRotationAgent r = createTetrisMultiagent(args,2);\n\t\taddTableTracer(r, args);\n\t\tif(moralTamer)\n\t\t{\n\t\t\taddHumanProxy(r, args, learning);\n\t\t\tint index = 0;\n\t\t\tfor(GeneralAgent g : r)\n\t\t\t{\n\t\t\t\taddEfficiencyProxy((MoralTamerAgent)((ExtActionAgentWrap)g).coreAgent, index++, learning);\n\t\t\t\t((MoralTamerAgent)((ExtActionAgentWrap)g).coreAgent).perfectly_moral = !learning;\n\t\t\t}\n\t\t}\n\t\treturn r;\n//\t\treturn createTetrisAgent(args);\n\t}", "public void teleopInit() {\n // Initalize test command\n Jagbot.isAutonomous = false;\n MessageWindow.write(1, \"Robot init\");\n //testCommand = new TestCommand();\n //testCommand.start();\n }", "@PostConstruct\n public void init() {\n rest.put(\"http://authenticationServer:8080/bot\", info);\n AuthServerChecker checker = new AuthServerChecker(name);\n checker.start();\n }", "public void start(PcepAgent ag) {\n log.info(\"Started\");\n this.agent = ag;\n this.init();\n this.run();\n }", "@Override\r\n\tpublic void initialise(Agent agent) {\n\t\tthis.maxSpeed = agent.getMaxSpeed();\r\n\t\tsprint = maxSpeed*1.5f;\r\n\t}", "public Intermediary()\r\n\t{\r\n\t\ttry {\r\n\t\t\treceiveSocket = new DatagramSocket(68);\r\n\t\t\tsendReceiveSocket = new DatagramSocket();\t\t\t\r\n\t\t\t\r\n\t\t} catch (SocketException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t} \r\n\t\t\r\n\t\treqID = 1;\r\n\t\tSystem.out.println(\"===== INTERMEDIATE HOST STARTED =====\\n\");\r\n\t}", "@Override\n public void init() {\n runtime.reset();\n robot.init(hardwareMap);\n\n telemetry.addData(\"Status\", \"Initialized\");\n }", "public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}", "public Agent createNewAgent() throws MaceException{\r\n\t\tAgent agent = new Agent(\"n\" + maxAgentId, Agent.AGENT_BUYER);\r\n\t\taddAgent(agent);\r\n\t\tmaxAgentId++;\r\n\t\treturn agent;\r\n\t}", "public static void init() {\n startTime = System.currentTimeMillis();\n if (clientExecutorEngine == null) {\n clientExecutorEngine = new ClientExecutorEngine();\n HzClient.initClient();\n }\n }", "protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }", "private static AgentInfo newAgent(StringTokenizer in) {\n AgentInfo agent = new AgentInfo();\n agent.setGroupId(Factory.getRandomGroup());\n agent.setName(Factory.getRandomAgentName());\n String agentId = in.nextToken();\n String ip = in.nextToken();\n int port = Integer.parseInt(in.nextToken());\n int agentPort = Integer.parseInt(in.nextToken());\n agent.setAgentId(agentId);\n agent.setCurLocation(new HostInfo(ip, port));\n agent.setPort(agentPort);\n AgentInfoList.add(agent);\n\n /*\n * adds to the tally of how many agents are using the host.\n */\n List<HostInfo> hosts = HostInfoList.getList();\n\n for (HostInfo h : hosts) {\n if (h.equals(agent.getCurLocation())) {\n h.incNumAgents();\n }\n }\n\n return agent;\n\n\n }", "private void init() {\n dominator = \"\";\n firstBlood = false;\n jLabel1.setIcon(new ImageIcon(getClass().getResource(\"/multiagent/resources/title.jpg\")));\n dialog = new ConfigurationDlg(this, true);\n setTitle(\"Game server\");\n agentList = new ArrayList<>();\n playerCount = 0;\n running = true;\n aborted = true;\n playersAgentsMap = new HashMap<>();\n iPlayerList = new HashMap<>();\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n String selected = String.valueOf(dialog.getFieldDimension().getSelectedItem());\n String selected2 = String.valueOf(dialog.getTightnessField().getSelectedItem());\n playingField = new PlayingField(Integer.parseInt(dialog.getResourceField().getText()),\n Integer.parseInt(selected.substring(selected.indexOf(\"x\") + 1)),\n Integer.parseInt(selected2.substring(0, selected2.indexOf(\"%\"))),\n agentList,\n playerCount,\n Integer.parseInt(String.valueOf(dialog.getCountAgents().getSelectedItem())));\n setLocationRelativeTo(null);\n pack();\n }", "public void initAsg(){\n\t\tConfigure conf = Configure.getConf();\n\t\tint min = conf.getMaxNum();\n\t\t\n\t\t//launch min number of instances\n\t\tTimeManager.PrintCurrentTime(\"Init Cluster, launching %d DC\\n\", min);\n\t\tfor(int i=0; i < min; i++){\n\t\t\tConnToDC dc = nova.launchOne(conf.getInatanceName());\n\t\t\tif(dc != null){\n\t\t\t\tdcList.offer(dc);\n\t\t\t\tlb.addDC(dc.getIp());\n\t\t\t\tTimeManager.PrintCurrentTime(\"Successfully launch 1 DC [%s:%s]\\n\", \n\t\t\t\t\t\tdc.getIp(), dc.getId());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ;\n\t}", "public void startSimulation(){\n Enumeration enumAgents = agents.elements();\n\n while (enumAgents.hasMoreElements()) {\n ProcessData data = (ProcessData) enumAgents.nextElement();\n createThreadFor(data.agent).start();\n }\n }", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "protected void initialize() {\r\n\r\n Robot.pneumatics.pneuOpen();\r\n }", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public synchronized void startAgent() throws IOException {\r\n setConnectorServer(JMXConnectorServerFactory.newJMXConnectorServer(getUrl(), null, fieldMBeanServer));\r\n getConnectorServer().start();\r\n started.set(true);\r\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "protected void init() {\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n RosFragmentActivity.this.init(nodeMainExecutorService);\n //Let everyone know that init is called\n synchronized (mNodeInitListeners) {\n for (final NodeInitListener nodeInitListener : mNodeInitListeners) {\n nodeInitListener.onNodeInit(nodeMainExecutorService, getMasterUri());\n }\n mNodeInitListeners.clear();\n }\n return null;\n }\n }.execute();\n }", "@Override\n public void teleopInit() {\n if (autonomousCommand != null) \n {\n autonomousCommand.cancel();\n }\n\n new ArcadeDrive().start();\n\n new BackElevatorControl().start();\n\n new IntakeControl().start();\n\n new FrontElevatorManual().start();\n\n new ElevatorAutomatic().start();\n }", "public Population InitSinglePopulation(int NumberOfAgents) {\n \n SinglePopulation TempPopulation = new SinglePopulation();\n \n TempPopulation.setPopulationID(0);\n\n for(int j = 0; j < NumberOfAgents; j++){\n\n SinglePopulationAgent TempAgentS = new SinglePopulationAgent(j,rand.nextDouble());\n boolean InitAction = (rand.nextDouble() < TempAgentS.getStrategy()) ? true : false;\n TempAgentS.setAction(InitAction);\n \n TempPopulation.AgentList.add(TempAgentS);\n }\n \n TempPopulation.setStrategyList();\n TempPopulation.setActionList();\n return TempPopulation;\n }", "public TestLiveAgent createAgent1(boolean start) {\n\t\treturn createTestAgent(\"live1\", 5001, start);\n\t}", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "public static void initialize()\n {\n localPeerIDCount = 0;\n\n }", "@Override\n protected void initialize() {\n Robot.collector.open();\n }", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "@Override\n public void init() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Initialized\"); //\n }", "public void robotInit() {\r\n CommandBase.init();\r\n OI.init();\r\n System.out.println(\"ROBOT READY!\");\r\n }", "@Override\n public void init() {\n robot.init(hardwareMap);\n telemetry.addData(\"Status\", \"Initialized\");\n }", "public void initPrimaryContainer() {\n for (IMixinPlatformAgent agent : this.agents) {\n MixinContainer.logger.debug(\"Processing launch tasks for {}\", agent);\n agent.initPrimaryContainer();\n }\n }", "@Override\n public void teleopInit()\n {\n System.out.println(\"Initializing teleop mode...\");\n\n commonInit();\n\n\n System.out.println(\"Teleop initialization complete.\");\n }", "@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tprotected void setup() {\n\t\tlog=LogManager.getLogger();\r\n\t\tmyAgent.addGoal(new SendMsgGoal());\r\n//\t\tlog.info(\"Send message goal is added\");\r\n\t\t\r\n\t}", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public abstract void init() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException, RemoteReadException, InterruptedException;", "public void createAgent(ConfigDialogInfo info) {\n configDialogInfo = info;\n createAgent = true;\n }", "@Override\n public void init() {\n swerveDebug(500, \"SwerveAutoTEST::init\", \"STARTing init for TETS\");\n\n // Run initialization of other parts of the class\n // Note that the class will connect to all of our motors and servos\n super.init();\n\n crater = Boolean.TRUE;\n\n\n // Robot and autonomous settings are read in from files in the core class init()\n // Report the autonomous settings\n showAutonomousGoals();\n\n swerveLog( \"X S6\", ourSwerve.getOrientLog());\n\n swerveDebug(500, \"SwerveAutoTEST::init\", \"DONE\");\n }", "public static void agentmain(final String agentArgs) throws IOException {\n LOGGER.log(Level.FINE, \"Configuring Simple-JMX server connector\");\n final Map<String, String> arguments = ArgumentSplitter.split(agentArgs);\n\n // Connection\n final String host = arguments.getOrDefault(ARGUMENT_HOST, \"0.0.0.0\");\n final int port = Integer.parseInt(arguments.getOrDefault(ARGUMENT_PORT, \"3481\"));\n final JMXServiceURL url = new JMXServiceURL(SimpleJmx.PROTOCOL, host, port);\n\n // Environment\n final Map<String, Object> environment = new HashMap<>();\n\n // Environment - authentication\n if (arguments.containsKey(ARGUMENT_LOGIN_CONFIG)) {\n environment.put(Environment.KEY_AUTHENTICATOR, new ExternalAuthenticator(arguments.get(ARGUMENT_LOGIN_CONFIG)));\n } else if (arguments.containsKey(ARGUMENT_PASSWORD_FILE)) {\n environment.put(Environment.KEY_AUTHENTICATOR, new PropertiesAuthenticator(new PropertiesFileLoader(arguments.get(ARGUMENT_PASSWORD_FILE))));\n }\n\n // Environment - access control\n if (arguments.containsKey(ARGUMENT_ACCESS_FILE)) {\n environment.put(Environment.KEY_ACCESSCONTROLLER, new PropertiesAccessController(new PropertiesFileLoader(arguments.get(ARGUMENT_ACCESS_FILE))));\n }\n\n // MBean server\n final MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();\n\n // Server\n LOGGER.log(Level.FINE, \"Starting Simple-JMX server connector\");\n final JMXConnectorServer server = new ServerProvider().newJMXConnectorServer(url, environment, mbeanServer);\n server.start();\n\n LOGGER.log(Level.FINE, \"Registering Simple-JMX server shutdown hook\");\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n try {\n LOGGER.log(Level.FINE, \"Simple-JMX server connector stopping\");\n server.stop();\n LOGGER.log(Level.FINE, \"Simple-JMX server connector stopped\");\n } catch (final IOException e) {\n LOGGER.log(Level.FINE, \"Exception occurred during shutdown of Simple-JMX server.\", e);\n }\n }, \"simple-jmx-shutdown\"));\n LOGGER.log(Level.FINE, \"Simple-JMX server connector started\");\n }", "private void initializeNA(){\n name = \"N/A\";\n key = \"N/A\";\n serverIpString = \"N/A\";\n serverPort = 0;\n clientListenPort = 0;\n }", "@Override\n public void robotInit() {\n\toi = new OI();\n\tgameData = new GameData();\n\tcubeVision.start();\n\n\tinitializeDashboard();\n }", "public void robotInit() {\n\n }", "public void robotInit() {\n\n }", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tRuntime runtime =Runtime.instance();\n\t\t\tProfileImpl profileImpl =new ProfileImpl(false);\n\t\t\t\n\t\t\tprofileImpl.setParameter(ProfileImpl.MAIN_HOST, \"localhost\");\n\t\t\tAgentContainer clientContainer =runtime.createAgentContainer(profileImpl);\n\t\t\t\n\t\t\tAgentController clientController =clientContainer.createNewAgent(\"client\", agents.Client.class.getName(), new Object [] {});\n\t\t\n\t\t\tclientController.start();\n\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void Start(){\n Registry registry = null;\n try{\n for(int i=0;i<nsize;i++){\n registry= LocateRegistry.getRegistry(this.ports[i]);\n PRMI stub = (PRMI) registry.lookup(\"DCMP\");\n System.out.println(\"env calls Init to man \"+i);\n stub.InitHandler(new Request(this.id, -1, 'e'));\n D++;\n }\n\n } catch(Exception e){\n return;\n }\n return;\n }", "public GlobalNodeListener() {\n log.fine(\">>> Initialised\");\n }", "private void initGate() {\n \n if (!Gate.isInitialised() && Gate.getGateHome() == null){\n Print.prln(\"Initialising GATE...\");\n Gate.setGateHome(new File(Settings.GATE_HOME));\n try {\n Gate.init();\n } catch (GateException ex) {\n ex.printStackTrace();\n }\n }\n }", "private void init() {\n\t\tsendPacket(new Packet01Login(\"[you have connected to \"+UPnPGateway.getMappedAddress()+\"]\", null));\n\t}", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "public MyAgent(World world) {\n w = world;\n agent = new QLearningAgent();\n currentPosition = new Position(w.getPlayerX(), w.getPlayerY());\n }", "public void autonomousInit() {\n \n }", "@Override\n\tpublic void teleopInit() {\n\t\tif (driveTrainCommand != null) {\n\t\t\tdriveTrainCommand.start();\n\t\t}\n\t\tif (colorCommand != null) {\n\t\t\tcolorCommand.start();\n\t\t}\n\t\tif (intakeCommand != null) {\n\t\t\tintakeCommand.start();\n\t\t}\n\t\tif (outtakeCommand != null) {\n\t\t\touttakeCommand.start();\n\t\t}\n\t}", "private void initInstance() {\n init$Instance(true);\n }", "@Override\n\tpublic void acceptSession(int id, String agent) {\n\t\t\n\t}", "private Supervisor() {\r\n\t}", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public void autonomousInit() {\n }", "public void autonomousInit() {\n }" ]
[ "0.7508588", "0.701906", "0.6635753", "0.6582728", "0.6580088", "0.64063406", "0.6178845", "0.6105796", "0.6037251", "0.598288", "0.59404814", "0.58931947", "0.58341914", "0.5829996", "0.57920206", "0.57709056", "0.57508624", "0.57433486", "0.57409936", "0.5702871", "0.56980413", "0.5679783", "0.5652602", "0.5648187", "0.5645794", "0.56329143", "0.5628649", "0.5624774", "0.55893916", "0.5587914", "0.55736345", "0.5565054", "0.5540188", "0.55314934", "0.55293864", "0.55262476", "0.5523809", "0.55210364", "0.5515441", "0.55106366", "0.55080736", "0.5501836", "0.5494574", "0.54801285", "0.5478314", "0.5468615", "0.54500645", "0.5439707", "0.5432999", "0.5419408", "0.5419295", "0.5409122", "0.54083484", "0.5406904", "0.5402301", "0.5400592", "0.5390578", "0.5382163", "0.537803", "0.537803", "0.5361686", "0.5357888", "0.5348062", "0.53446424", "0.53420275", "0.5321839", "0.53206515", "0.5314902", "0.5312597", "0.53042954", "0.53013366", "0.53011066", "0.5294826", "0.5294388", "0.52906674", "0.52832055", "0.52799547", "0.5271356", "0.5269667", "0.5253873", "0.52498305", "0.52485603", "0.52438676", "0.52438676", "0.52365404", "0.5234834", "0.52330697", "0.5225083", "0.52225095", "0.5221429", "0.5221429", "0.5221429", "0.5220552", "0.5219535", "0.5217129", "0.5216699", "0.5216151", "0.5213362", "0.52124107", "0.5212038", "0.5212038" ]
0.0
-1
Return a list of all NetworkInterface hardware addresses in %x:%x:%x:%x:%x:%x format
public static List<String> getAllHardwareAddress() throws SocketException { ArrayList<String> addresses = new ArrayList<>(); Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces(); while (ifaces.hasMoreElements()) { NetworkInterface iface = ifaces.nextElement(); byte[] macaddr = iface.getHardwareAddress(); if (macaddr == null) continue; String key = String.format(MACADDR_FORMAT, macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], macaddr[5]); addresses.add(key); } return addresses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getHardwareAddresses() {\r\n\t\tList<String> result = new Vector<String>();\r\n\t\ttry {\r\n\t\t\tEnumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();\r\n\t\t\tif (nis != null) {\r\n\t\t\t\twhile (nis.hasMoreElements()) {\r\n\t\t\t\t\tbyte[] mac = nis.nextElement().getHardwareAddress();\r\n\t\t\t\t\tif ((mac != null) && (mac.length == 6)) {\r\n\t\t\t\t\t\tresult.add(getHardwareAddressAsString(mac));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "Collection<NetworkInterface> getAllNetworkInterfaces();", "java.util.List<com.google.cloud.compute.v1.NetworkInterface> getNetworkInterfacesList();", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "String getInterfacesAsString() {\n List<NetworkInterface> interfaces;\n try {\n interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n } catch (Exception e) {\n return \"\";\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n for (NetworkInterface nif : interfaces) {\n try {\n // Android doesn't have a supportsBroadcast() but the Go net.Interface wants\n // one, so we say the interface has broadcast if it has multicast.\n sb.append(String.format(java.util.Locale.ROOT, \"%s %d %d %b %b %b %b %b |\", nif.getName(),\n nif.getIndex(), nif.getMTU(), nif.isUp(), nif.supportsMulticast(),\n nif.isLoopback(), nif.isPointToPoint(), nif.supportsMulticast()));\n\n for (InterfaceAddress ia : nif.getInterfaceAddresses()) {\n // InterfaceAddress == hostname + \"/\" + IP\n String[] parts = ia.toString().split(\"/\", 0);\n if (parts.length > 1) {\n sb.append(String.format(java.util.Locale.ROOT, \"%s/%d \", parts[1], ia.getNetworkPrefixLength()));\n }\n }\n } catch (Exception e) {\n // TODO(dgentry) should log the exception not silently suppress it.\n continue;\n }\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }", "private String[] getNetworkInformation(Context context)\n {\n String[] output = new String[4];\n\n WifiManager wifiMgr = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiMgr.getConnectionInfo();\n int ip = wifiInfo.getIpAddress();\n String ipAddress = Formatter.formatIpAddress(ip);\n output[0] = ipAddress;\n // Get DNS Server\n final DhcpInfo dhcp = wifiMgr.getDhcpInfo();\n output[1] = Formatter.formatIpAddress(dhcp.netmask);\n output[2] = Formatter.formatIpAddress(dhcp.gateway);\n output[3] = Formatter.formatIpAddress(dhcp.dns1);\n return output;\n }", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "public static List<InterfaceConfig> getAllAddress() throws SocketException {\n ArrayList<InterfaceConfig> addresses = new ArrayList<>();\n Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();\n while (ifaces.hasMoreElements()) {\n NetworkInterface iface = ifaces.nextElement();\n byte[] macaddr = iface.getHardwareAddress();\n if (macaddr == null)\n continue;\n String key = String.format(MACADDR_FORMAT, macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], macaddr[5]);\n List<InterfaceAddress> addressList = iface.getInterfaceAddresses();\n InterfaceConfig ic = new InterfaceConfig(key, addressList);\n addresses.add(ic);\n }\n return addresses;\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "public static String getMacAddress() {\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n\n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n\n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n res1.append(String.format(\"%02X:\",b));\n }\n\n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n }", "public List<NetworkInterface> networkInterfaces() {\n return this.networkInterfaces;\n }", "String[] getInternalNetworkPrefix();", "com.google.cloud.compute.v1.NetworkInterface getNetworkInterfaces(int index);", "private static String m21403f() {\n String str;\n String str2 = \"\";\n try {\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n Enumeration inetAddresses = ((NetworkInterface) networkInterfaces.nextElement()).getInetAddresses();\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n str2 = inetAddress.getHostAddress();\n }\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return str;\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "private static String getMacAddress(){\n\t\ttry {\n\t\t\t//getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra.\n\t\t\t//if this issue is ever solved please replace for the appropriate code\n\t\t\tString command = \"ifconfig\";\n\t\t\tProcess p = Runtime.getRuntime().exec(command);\n\t\t\tBufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n\t\t\tString line = inn.readLine();\n\n\t\t\twhile( line != null ){\n\t\t\t\t\n\t\t\t\tif(line.indexOf(\"eth0\") >= 0){\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\treturn split[split.length-1];\n\t\t\t\t}\n\n\t\t\t\tline = inn.readLine();\n\t\t\t}\n\n\t\t\tinn.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"error\";\n\t}", "java.util.List<? extends com.google.cloud.compute.v1.NetworkInterfaceOrBuilder>\n getNetworkInterfacesOrBuilderList();", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public static String Ipconfig(){\n StringBuilder sbuf = new StringBuilder();\n InetAddress ip;\n String hostname;\n // Inet6Address ipv6; *add a ipv6 to get the ipv6 address\n try {\n ip = InetAddress.getLocalHost();\n hostname = ip.getHostName();\n\n //NetworkInterface network = NetworkInterface.getByInetAddress(ip);\n NetworkInterface nif = NetworkInterface.getByName(\"localhost\");\n //InetAddress[] inet = InetAddress.getAllByName(ip.getHostName());\n //String address = getAddress(inet).getHostAddress();\n\n sbuf.append(\"Default gateway: \"+ip.getLocalHost());\n //fmt.format(\"MAc address:\" + nif.getHardwareAddress());\n sbuf.append(\"\\nCurrent Name : \" + ip.getHostName());\n sbuf.append(\"\\nCurrent IP address : \" + ip.getHostAddress());\n //System.out.println(\"Current IPv6 address : \"+ getByAddress(hostname,inet,nets));// + ipv6.getHostAddress());\n //System.out.println(\"Current IPv6 Temp address : \");// + ipv6.getHostAddress());\n sbuf.append(\"\\nCurrent IPv6 Local : \");// + ipv6.getHostAddress());\n \n } catch(Throwable se){\n se.printStackTrace();\n }\n return sbuf.toString();\n }", "public final List<InetAddress> mo8904a(String str) {\n if (str != null) {\n return Arrays.asList(InetAddress.getAllByName(str));\n }\n throw new UnknownHostException(\"hostname == null\");\n }", "List<NetworkInterfaceTapConfiguration> networkInterfaceTapConfigurations();", "public static void getNetworkIPs() throws ConnectException{\n\t final byte[] ip;\n\t \n\t try {\n\t \t// Stores IP address of this computer in the array\n\t ip = InetAddress.getLocalHost().getAddress();\n\t\t} \n\t\tcatch (Exception e) {\n\t \te.printStackTrace();\n\t return;\n\t }\n\t \n\t // Checks each IP address, replacing fourth set of numbers \n\t // in this computer's IP address with values from 1 - 255\n\t for(int i = 1; i < 255; i++) {\n\t final int j = i;\n\t new Thread(new Runnable() {\n\t public void run() {\n\t try {\n\t \t// Checks if this IP address is reachable\n\t ip[3] = (byte) j;\n\t InetAddress address = InetAddress.getByAddress(ip);\n\t String output = address.toString().substring(1);\n\t \n\t // Prints out IP address only if it is reachable\n\t if (address.isReachable(1717)) {\n\t System.out.println(output + \" is on the network\");\n\t }\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t }\n\t }\n\t }).start(); \n\t }\n\t}", "public static List<String> getAvailableInterfaces() {\r\n List<String> result;\r\n Enumeration<NetworkInterface> interfaces = null;\r\n\r\n try {\r\n interfaces = NetworkInterface.getNetworkInterfaces();\r\n } catch (SocketException e) {\r\n System.errorLogging(e);\r\n }\r\n\r\n if (interfaces == null)\r\n return Collections.emptyList();\r\n\r\n result = new ArrayList<>();\r\n\r\n while (interfaces.hasMoreElements()) {\r\n NetworkInterface iface = interfaces.nextElement();\r\n if (isIfaceConnected(iface)) {\r\n result.add(iface.getName());\r\n }\r\n }\r\n\r\n return result;\r\n }", "String getMacAddress() {\n return String.format(\"%s:%s:%s:%s:%s:%s\", macAddress.substring(0, 2), macAddress.substring(2, 4),\n macAddress.substring(4, 6), macAddress.substring(6, 8), macAddress.substring(8, 10), macAddress.substring(10, 12));\n }", "public static void main(String[] args) {\n\r\n\t\tEnumeration<NetworkInterface> interfaces;\r\n\t\ttry {\r\n\t\t\tinterfaces = NetworkInterface.getNetworkInterfaces();\r\n\t\t\twhile (interfaces.hasMoreElements()) {\r\n\t\t\t\tNetworkInterface sys = interfaces.nextElement();\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(Inet4Address.getLocalHost());\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\tbyte[] mac = sys.getHardwareAddress();\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tif (mac!=null) {\r\n\t\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\t\tfor (int i = 0; i < mac.length; i++) {\r\n\t\t\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n//\t\tcatch (UnknownHostException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t\t\r\n\r\n\r\n\t}", "int getNetworkInterfacesCount();", "public static String macAddress(String interfaceName) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t if (interfaceName != null) {\n\t if (!intf.getName().equalsIgnoreCase(interfaceName)) continue;\n\t }\n\t byte[] mac = intf.getHardwareAddress();\n\t if (mac==null) return \"\";\n\t StringBuilder buf = new StringBuilder();\n\t for (int idx=0; idx<mac.length; idx++)\n\t buf.append(String.format(\"%02X:\", mac[idx])); \n\t if (buf.length()>0) buf.deleteCharAt(buf.length()-1);\n\t return buf.toString();\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t /*try {\n\t // this is so Linux hack\n\t return loadFileAsString(\"/sys/class/net/\" +interfaceName + \"/address\").toUpperCase().trim();\n\t } catch (IOException ex) {\n\t return null;\n\t }*/\n\t }", "private Object[] getNetInterfaces(final HostBrowser hostBrowser) {\n final List<Object> list = new ArrayList<Object>();\n \n list.add(null);\n final Enumeration e = hostBrowser.getNetInterfacesNode().children();\n \n while (e.hasMoreElements()) {\n final Info i =\n (Info) ((DefaultMutableTreeNode) e.nextElement()).getUserObject();\n list.add(i);\n }\n return list.toArray(new Object[list.size()]);\n }", "@Override\n public String toString() {\n final StringBuilder buffer = new StringBuilder(90);\n InetAddressUtils.formatAddress(buffer, localAddress);\n buffer.append(\"<->\");\n InetAddressUtils.formatAddress(buffer, remoteAddress);\n return buffer.toString();\n }", "NetworkInterface getNetworkInterfaceByAddress(InterfaceAddress interfaceAddress);", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "private static String getInterfaceMask(int interfaceIndex) {\n String subnetMask = null;\n try {\n Ip4Address ipAddress = getInterfaceIp(interfaceIndex);\n NetworkInterface networkInterface = NetworkInterface.getByInetAddress(\n InetAddress.getByName(ipAddress.toString()));\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n int index = 0;\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n break;\n }\n index++;\n }\n int prfLen = networkInterface.getInterfaceAddresses().get(index).getNetworkPrefixLength();\n int shft = 0xffffffff << (32 - prfLen);\n int oct1 = ((byte) ((shft & 0xff000000) >> 24)) & 0xff;\n int oct2 = ((byte) ((shft & 0x00ff0000) >> 16)) & 0xff;\n int oct3 = ((byte) ((shft & 0x0000ff00) >> 8)) & 0xff;\n int oct4 = ((byte) (shft & 0x000000ff)) & 0xff;\n subnetMask = oct1 + \".\" + oct2 + \".\" + oct3 + \".\" + oct4;\n } catch (Exception e) {\n log.debug(\"Error while getting Interface network mask by index\");\n return subnetMask;\n }\n return subnetMask;\n }", "com.google.cloud.compute.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index);", "Set<Interface> getInterfacesByPort(ConnectPoint port);", "public static String[] getAllPrivateAddress() {\n\t\tArrayList<String> a = new ArrayList<String>();\n\t\ttry {\n\t\t\tEnumeration<NetworkInterface> enums = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (enums.hasMoreElements()) {\n\t\t\t\tNetworkInterface ni = enums.nextElement();\n\t\t\t\tEnumeration<InetAddress> hosts = ni.getInetAddresses();\n\t\t\t\twhile (hosts.hasMoreElements()) {\n\t\t\t\t\tInetAddress local = hosts.nextElement();\n\t\t\t\t\tString localIP = local.getHostAddress();\n\t\t\t\t\tif (IP4Style.isPrivateIP(localIP)) {\n\t\t\t\t\t\ta.add(localIP);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SocketException exp) {\n\n\t\t}\n\t\tif(a.isEmpty()) return null;\n\t\tString[] all = new String[a.size()];\n\t\treturn a.toArray(all);\n\t}", "org.jacorb.imr.HostInfo[] list_hosts();", "public List<EthernetProtocolEndpoint> parsEthernetPE(String cmd) {\r\n\r\n\t\tePEList = new ArrayList<EthernetProtocolEndpoint>();\r\n\r\n\t\tString regex = \"(?<=%%) (\" + INTERFACE + \") is (\" + ADMIN_STATUS + \").*?line protocol is (\" + OPERATIONAL_STATUS\r\n\t\t\t\t+ \").*?address is (\" + ADDRESS + \").*?MTU (\" + MTU + \").*?(\" + DUPLEX + \") Duplex, (\" + DUPLEX_SPEED\r\n\t\t\t\t+ \")(.*?)(?=%%|$)\";\r\n\t\tPattern pattern = Pattern.compile(regex);\r\n\t\tMatcher matcher = pattern.matcher(cmd);\r\n\r\n\t\twhile (matcher.find()) {\r\n\t\t\tifName = matcher.group(1);\r\n\t\t\tStatus adminState = Status.valueOf(matcher.group(2));\r\n\r\n\t\t\tswitch (adminState) {\r\n\t\t\tcase up:\r\n\t\t\t\tifStatus = Status.up;\r\n\t\t\t\tbreak;\r\n\t\t\tcase down:\r\n\t\t\t\tifStatus = Status.down;\r\n\t\t\t\tbreak;\r\n\t\t\tcase testing:\r\n\t\t\t\tifStatus = Status.testing;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tStatus status = Status.valueOf(matcher.group(3));\r\n\r\n\t\t\tswitch (status) {\r\n\t\t\tcase up:\r\n\t\t\t\tifOperStatus = Status.up;\r\n\t\t\t\tbreak;\r\n\t\t\tcase down:\r\n\t\t\t\tifOperStatus = Status.down;\r\n\t\t\t\tbreak;\r\n\t\t\tcase testing:\r\n\t\t\t\tifOperStatus = Status.testing;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tifMTU = Integer.parseInt(matcher.group(5));\r\n\t\t\tDuplexMode duplex = DuplexMode.valueOf(matcher.group(6));\r\n\r\n\t\t\tswitch (duplex) {\r\n\t\t\tcase Half:\r\n\t\t\t\tduplexMode = DuplexMode.Half;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Full:\r\n\t\t\t\tduplexMode = DuplexMode.Full;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tduplexMode = DuplexMode.unknown;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tifSpeed = matcher.group(7);\r\n\t\t\tmacAddress = matcher.group(4);\r\n\t\t\tEthernetProtocolEndpoint epObj = new EthernetProtocolEndpoint(ifName, ifStatus, ifOperStatus, ifMTU,\r\n\t\t\t\t\tifSpeed,duplexMode, macAddress);\r\n\r\n\t\t\tePEList.add(epObj);\r\n\t\t\tinterfacesMap.put(epObj.getName(), epObj);\r\n\t\t}\r\n\t\treturn ePEList;\r\n\t}", "Set<Interface> getMatchingInterfaces(IpAddress ip);", "public Vector<NetworkAddress> getHostAddresses() { return hostAddresses; }", "public static String getMACAddress(String interfaceName) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n if (interfaceName != null) {\n if (!intf.getName().equalsIgnoreCase(interfaceName))\n continue;\n }\n byte[] mac = intf.getHardwareAddress();\n if (mac == null)\n return \"\";\n StringBuilder buf = new StringBuilder();\n for (int idx = 0; idx < mac.length; idx++)\n buf.append(String.format(\"%02X:\", mac[idx]));\n if (buf.length() > 0)\n buf.deleteCharAt(buf.length() - 1);\n return buf.toString();\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n\n }", "private static String readAddressFromInterface(final String interfaceName) {\n try {\n final String filePath = \"/sys/class/net/\" + interfaceName + \"/address\";\n final StringBuilder fileData = new StringBuilder(1000);\n final BufferedReader reader = new BufferedReader(new FileReader(filePath), 1024);\n final char[] buf = new char[1024];\n int numRead;\n\n String readData;\n while ((numRead = reader.read(buf)) != -1) {\n readData = String.valueOf(buf, 0, numRead);\n fileData.append(readData);\n }\n\n reader.close();\n return fileData.toString();\n } catch (IOException e) {\n return null;\n }\n }", "String getInterfaces();", "Set<Interface> getInterfacesByIp(IpAddress ip);", "public String getVideoMulticastAddr();", "java.lang.String getIpv6();", "public static String getGateWayIp() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface\n .getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> ipAddr = intf.getInetAddresses(); ipAddr\n .hasMoreElements();) {\n InetAddress inetAddress = ipAddr.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n if (inetAddress.getHostAddress().length() <= 16) {\n return inetAddress.getHostAddress();\n }\n }\n }\n }\n } catch (SocketException ex) {\n ex.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public void printHostNetworkInfo(String hostName){\r\n\t\tHostSystem hostSystem;\r\n\t\ttry {\r\n\t\t\thostSystem = searchHostSystem(hostName);\r\n\t\t\tNetwork[] networkArray = hostSystem.getNetworks();\r\n\t\t\tSystem.out.println(\"Name = \"+hostName);\r\n\t\t\tfor (int i = 0; i < networkArray.length; i++) {\r\n\t\t\t\tSystem.out.printf(\"Network[%d]: name = %s\\n\", i, networkArray[i].getName());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tprintInvalidHostNameMessage(hostName);\r\n\t\t}\r\n\r\n\t}", "public Collection<String> listDevices();", "public static String getNintendoWiiUInternetProtocolAddress() throws IOException, InterruptedException,\n\t\t\tExecutionException\n\t{\n\t\tString localIPAddress = NetworkUtilities.getLocalInternetProtocolAddress();\n\t\tint networkMaskLength = NetworkUtilities.getLocalNetworkMaskLength();\n\t\tString[] subNetworkAddresses = NetworkUtilities.getAllSubNetworkAddresses(localIPAddress, networkMaskLength);\n\n\t\treturn getWiiUIPAddress(subNetworkAddresses);\n\t}", "public List<String> getAddresses() throws RemoteException {\n\t\tList<String> addresses = new ArrayList<String>();\n\t\tif (this.registry != null) {\n\t\t\tfor (IServer server : this.serverList.getServers()) {\n\t\t\t\taddresses.add(server.getFullAddress());\n\t\t\t}\n\t\t}\n\t\treturn addresses;\n\t}", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "Set<MacAddress> neighbors();", "String getPortRange();", "public List<NetworkNode> listNetworkNode();", "public static\n String getMACAddress()\n {\n String sResult = null;\n try {\n Process pid = Runtime.getRuntime().exec(\"ipconfig /all\");\n BufferedReader in = new BufferedReader(new InputStreamReader(pid.getInputStream()));\n String sLine = null;\n while((sLine = in.readLine()) != null) {\n if(getOccurrences(sLine, '-') == 5) {\n int i = sLine.lastIndexOf('-');\n sResult = sLine.substring(i - 14, i + 3);\n break;\n }\n }\n in.close();\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" MAC Address = \" + sResult);\n return sResult;\n }", "String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;", "private static List<String> getIPv4First(List<InetAddress> in)\n {\n List<String> out = new ArrayList<>();\n int i = 0;\n for (InetAddress addr : in) {\n if (addr instanceof Inet4Address) {\n out.add(i++, addr.getHostAddress());\n }\n else {\n out.add(addr.getHostAddress());\n }\n }\n return out;\n }", "@NonNull\n public static String getMACAddress(String interfaceName) throws SocketException {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n if (interfaceName != null) {\n if (!netInterface.getName().equalsIgnoreCase(interfaceName)) continue;\n }\n byte[] mac = netInterface.getHardwareAddress();\n if (mac == null) return \"\";\n StringBuilder buf = new StringBuilder();\n for (byte aMac : mac) buf.append(String.format(\"%02X:\", aMac));\n if (buf.length() > 0) buf.deleteCharAt(buf.length() - 1);\n return buf.toString();\n }\n\n return \"\";\n }", "public String toString(){\r\n\t\treturn(ssid+\",\"+mac+\",\"+frequency+\",\"+signal+\",\");\r\n\t}", "char[][] getInterfaceNames();", "public static String getMyIpv4Address() {\n try {\n Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();\n\n for (NetworkInterface netInterface : Collections.list(nets)) {\n Enumeration<InetAddress> inetAddresses = netInterface.getInetAddresses();\n\n if (!netInterface.isUp() || netInterface.isVirtual() || netInterface.isLoopback())\n continue;\n\n for (InetAddress inetAddress : Collections.list(inetAddresses)) {\n if (!inetAddress.isLinkLocalAddress() && !inetAddress.isLoopbackAddress() && (inetAddress instanceof Inet4Address))\n return inetAddress.getHostAddress();\n }\n\n }\n } catch (SocketException e) {\n // ignore it\n }\n\n return \"127.0.0.1\";\n }", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "Ip4Address interfaceIpAddress();", "interface MyConfig {\n int teamNumber = 5;\n int basePort = 5000;\n int udpPort = teamNumber + basePort;\n String interfaceName = \"wlan0\";\n // String broadcastAddress = \"192.168.24.255\";\n //String broadcastAddress = \"localhost\";\n}", "public static Stream<NetworkInterface> getNetworkInterfacesAsStream() throws Exception {\n return Collections.list(NetworkInterface.getNetworkInterfaces()).stream();\n }", "public static String getDeviceIpAddress() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n\n log.debug(\"inetAddress: \" + inetAddress);\n\n if (!inetAddress.isLoopbackAddress()) {\n String ip = Formatter.formatIpAddress(inetAddress.hashCode());\n return ip;\n }\n }\n }\n } catch (SocketException ex) {\n log.error(ex.getMessage(), ex);\n }\n\n return null;\n }", "public String getWlanMacAddress() {\n WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress();\n return !TextUtils.isEmpty(macAddress) ? macAddress : \"Unavailable\";\n }", "java.lang.String getIpv4();", "public Map<String, Integer> execAdbOnlineDevicesPortForward() {\n List<String> device_id_list = this.execAdbDevices();\n Map<String, Integer> device_hostport_map = new HashMap<String, Integer>();\n\n int index = 0;\n for (String device : device_id_list) {\n int host_port = ADBExecutor.HOST_BASE_PORT + index * 10;\n this.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT);\n device_hostport_map.put(device, host_port);\n index++;\n }\n return device_hostport_map;\n }", "protected abstract void discoverIpInterfaces(Host host, List<IpInterface> oldIpInterfaces);", "public String[] getIntefaceNetwork() {\n\t\treturn null;\n\t}", "public void testFromInterface() throws Exception\n {\n EthernetAddress addr = EthernetAddress.fromInterface();\n assertNotNull(addr);\n assertNotNull(addr.toString());\n }", "public void getNetworkIPs(String subRed)\n {\n //ArrayList<String> disponibles = new ArrayList<String>();\n //InetAddress servidor = null;\n for (int i = 1; i < 255; i++) \n {\n final int j = i;\n new Thread(() -> {\n try {\n String ser = subRed + \".\" + j;\n //System.out.println(\"Entre en el servidor: \" + ser);\n InetAddress servidor = InetAddress.getByName(subRed + \".\" + j);\n if(servidor.isReachable(2000))\n {\n //System.out.println(\"PPPPADDDDAAAAAAAAAAA\");\n if(this.isReachable(ser, 9020))\n {\n System.out.println(\"Disponible: \" + ser);\n this.conectados.add(servidor);\n } \n }\n else\n System.out.println(\"No disponible \" + ser);\n } catch (IOException e) \n {\n System.out.println(\"Error buscando ips\");\n }\n \n }).start(); \n }\n \n //return disponibles;\n }", "public List<ServerHardware> getServers();", "public Map<String, Integer> execAdbOnlineDevicesPortForward()\r\n\t{\r\n\t\tList<String> device_id_list = this.execAdbDevices();\r\n\t\tMap<String, Integer> device_hostport_map = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tfor (String device : device_id_list)\r\n\t\t{\r\n\t\t\tint host_port = ADBExecutor.HOST_BASE_PORT + index * 10;\r\n\t\t\tthis.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT);\r\n\t\t\tdevice_hostport_map.put(device, host_port);\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn device_hostport_map;\r\n\t}", "public Vector<NetworkAddress> getHostAddresses(int type) {return addressesChecker.getAllMyAddresses(type); }", "java.lang.String getSnIp();", "java.lang.String getSnIp();", "private static String q(List object, String string2) {\n if (object == null) return null;\n try {\n boolean bl3;\n object = object.iterator();\n while (bl3 = object.hasNext()) {\n int n10;\n byte[] byArray;\n boolean bl2;\n Object e10 = object.next();\n NetworkInterface networkInterface = (NetworkInterface)e10;\n String string3 = networkInterface.getName();\n int n11 = TextUtils.isEmpty((CharSequence)string3);\n if (n11 != 0 || !(bl2 = string3.equalsIgnoreCase(string2)) || (byArray = networkInterface.getHardwareAddress()) == null) continue;\n object = new StringBuilder();\n int n12 = byArray.length;\n bl2 = false;\n string3 = null;\n n11 = 0;\n while (true) {\n n10 = 1;\n if (n11 >= n12) break;\n byte by2 = byArray[n11];\n String string4 = \"%02X:\";\n Object[] objectArray = new Object[n10];\n Byte by3 = by2;\n objectArray[0] = by3;\n String string5 = String.format(string4, objectArray);\n ((StringBuilder)object).append(string5);\n ++n11;\n }\n n12 = ((StringBuilder)object).length();\n if (n12 <= 0) return ((StringBuilder)object).toString();\n n12 = ((StringBuilder)object).length() - n10;\n ((StringBuilder)object).deleteCharAt(n12);\n return ((StringBuilder)object).toString();\n }\n return null;\n }\n catch (Exception exception) {}\n return null;\n }", "public String getFormattedMACAddress() {\n String defaultReturn = \"00:00:00:00:00:00\";\n\n // Validate the data\n if (macAddress == null) {\n return defaultReturn;\n }\n String mac = macAddress.replace(\"-\", \"\");\n if (mac.length() != 12) {\n return defaultReturn;\n }\n\n List<String> parts = new ArrayList<>();\n for (int i = 0; i < 6; i++) {\n int offset = 2 * i;\n parts.add(mac.substring(offset, offset + 2));\n }\n\n return String.join(\":\", parts);\n }", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "public String toString()\r\n\t{\r\n\t\treturn this.mac+\",\"+this.ssid+\",\"+this.channel+\",\"+this.signal+\",\";\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "private void addIntfConfig() {\n Set<Interface> interfaces = Sets.newHashSet();\n\n Set<Interface> vlanOneSet = new HashSet<>();\n\n for (int i = 1; i <= LAST_CONF_DEVICE_INTF_VLAN_IP; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n\n // Interface addresses for IPv4\n Ip4Prefix prefix1 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i - 1) + \".0/24\");\n Ip4Address addr1 = Ip4Address.valueOf(\"10.0.\" + (2 * i - 1) + \".1\");\n Ip4Prefix prefix2 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i) + \".0/24\");\n Ip4Address addr2 = Ip4Address.valueOf(\"10.0.\" + (2 * i) + \".1\");\n InterfaceIpAddress ia1 = new InterfaceIpAddress(addr1, prefix1);\n InterfaceIpAddress ia2 = new InterfaceIpAddress(addr2, prefix2);\n\n // Interface addresses for IPv6\n Ip6Prefix prefix3 = Ip6Prefix.valueOf((2 * i - 1) + \"000::0/64\");\n Ip6Address addr3 = Ip6Address.valueOf((2 * i - 1) + \"000::1\");\n Ip6Prefix prefix4 = Ip6Prefix.valueOf((2 * i) + \"000::0/64\");\n Ip6Address addr4 = Ip6Address.valueOf((2 * i) + \"000::2\");\n InterfaceIpAddress ia3 = new InterfaceIpAddress(addr3, prefix3);\n InterfaceIpAddress ia4 = new InterfaceIpAddress(addr4, prefix4);\n\n // Setting up interfaces\n Interface intf1 = new Interface(cp, Sets.newHashSet(ia1, ia3),\n MacAddress.valueOf(2 * i - 1),\n VlanId.vlanId((short) 1));\n Interface intf2 = new Interface(cp, Sets.newHashSet(ia2, ia4),\n MacAddress.valueOf(2 * i),\n VlanId.NONE);\n\n interfaces.add(intf1);\n interfaces.add(intf2);\n\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1, intf2)).anyTimes();\n }\n for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n Interface intf1 = new Interface(cp, null,\n MacAddress.NONE,\n VlanId.vlanId((short) 1));\n\n interfaces.add(intf1);\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1)).anyTimes();\n }\n expect(interfaceService.getInterfacesByVlan(VLAN1))\n .andReturn(vlanOneSet).anyTimes();\n expect(interfaceService.getInterfacesByVlan(VLAN10))\n .andReturn(Collections.emptySet()).anyTimes();\n expect(interfaceService.getInterfaces()).andReturn(interfaces).anyTimes();\n\n for (int i = LAST_CONF_DEVICE_INTF_VLAN + 1; i <= NUM_DEVICES; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i),\n P1);\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Collections.emptySet()).anyTimes();\n }\n }", "public void remplireListeIp(){\r\n bddIp.add(\"id\");\r\n bddIp.add(\"ip\");\r\n bddIp.add(\"nom\");\r\n bddIp.add(\"latence\");\r\n bddIp.add(\"etat\");\r\n bddIp.add(\"popup\");\r\n bddIp.add(\"mac\");\r\n bddIp.add(\"bdext_perte\");\r\n bddIp.add(\"port\");\r\n }", "public static List<MemoryBlock> getAllMemoryAddresses() {\n\n List<MemoryBlock> addresses = new ArrayList<MemoryBlock>();\n\n for (int i = 0; i <= EEPROM_MAX_ADDRESS; i++) {\n addresses.add(new MemoryBlock(Utils.intToHexString(i), \"\"));\n }\n return addresses;\n }", "public String getEthernetMacAddress(){\n\t try {\n\t return loadFileAsString(\"/sys/class/net/eth0/address\")\n\t .toUpperCase().substring(0, 17);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t}", "public java.lang.String getIpadress() {\r\n return ipadress;\r\n }", "private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "java.util.List<Report.LocationOuterClass.Wifi> \n getWifisList();", "List<String> protocols();", "public String getUpnpExternalIpaddress();", "public String getRouters(){\n wifi.startScan();\n results = wifi.getScanResults();\n size = results.size();\n String jsonRouter = new Gson().toJson(results);\n return jsonRouter;\n }", "@SuppressLint(\"DefaultLocale\")\n\tprivate String getIpAddr()\n\t{\n\t\tString ipString = null;\n\t\tWifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);\n\t\tif (wifiManager != null)\n\t\t{\n\t\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\t\t\tif (wifiInfo != null)\n\t\t\t{\n\t\t\t\tint ip = wifiInfo.getIpAddress();\n\n\t\t\t\tipString = String.format(\"%d.%d.%d.%d\", (ip & 0xff),\n\t\t\t\t\t(ip >> 8 & 0xff), (ip >> 16 & 0xff), (ip >> 24 & 0xff));\n\n\t\t\t}\n\t\t}\n\t\treturn ipString;\n\t}", "public List<String> getAddresses() {\n return mIPs;\n }", "@Override\n public String toString() {\n return address[1] + \".\" + address[2] + \".\" + address[3] + \".\" + address[4];\n }", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public String getIp() {\n return (String) get(24);\n }" ]
[ "0.76135546", "0.6330142", "0.6285607", "0.6223967", "0.62133807", "0.60361975", "0.5928028", "0.5896372", "0.5890878", "0.5664562", "0.5566477", "0.5553998", "0.5521991", "0.54948026", "0.54941976", "0.54934", "0.54721844", "0.54255074", "0.5397944", "0.5370824", "0.5363362", "0.534246", "0.53290176", "0.5324745", "0.532094", "0.5311505", "0.53102314", "0.5273599", "0.52706265", "0.5200575", "0.51890707", "0.5172273", "0.5163772", "0.5160489", "0.5130214", "0.5129139", "0.50993794", "0.5093401", "0.5092849", "0.5082028", "0.5069366", "0.5055891", "0.5052441", "0.50210416", "0.50148946", "0.5012944", "0.4991299", "0.49728554", "0.4965553", "0.4942702", "0.49312457", "0.4920174", "0.49153796", "0.49083883", "0.490464", "0.4904588", "0.4899005", "0.48924297", "0.48896754", "0.4880639", "0.48781434", "0.48735857", "0.4869421", "0.48605046", "0.48591244", "0.48516947", "0.48466185", "0.48463207", "0.48382986", "0.4823143", "0.4816399", "0.48163906", "0.48114404", "0.48079464", "0.4801128", "0.47958347", "0.47934195", "0.47929072", "0.47929072", "0.47922292", "0.479108", "0.47789747", "0.4773519", "0.47726533", "0.47711825", "0.4771125", "0.47703502", "0.47501418", "0.47381002", "0.47298726", "0.47229487", "0.4722186", "0.47209686", "0.47173068", "0.47142512", "0.47095284", "0.4707675", "0.47034466", "0.46990332", "0.46967605" ]
0.7033998
1
Return a list of all NetworkInterface hardware addresses and addresses
public static List<InterfaceConfig> getAllAddress() throws SocketException { ArrayList<InterfaceConfig> addresses = new ArrayList<>(); Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces(); while (ifaces.hasMoreElements()) { NetworkInterface iface = ifaces.nextElement(); byte[] macaddr = iface.getHardwareAddress(); if (macaddr == null) continue; String key = String.format(MACADDR_FORMAT, macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], macaddr[5]); List<InterfaceAddress> addressList = iface.getInterfaceAddresses(); InterfaceConfig ic = new InterfaceConfig(key, addressList); addresses.add(ic); } return addresses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getHardwareAddresses() {\r\n\t\tList<String> result = new Vector<String>();\r\n\t\ttry {\r\n\t\t\tEnumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();\r\n\t\t\tif (nis != null) {\r\n\t\t\t\twhile (nis.hasMoreElements()) {\r\n\t\t\t\t\tbyte[] mac = nis.nextElement().getHardwareAddress();\r\n\t\t\t\t\tif ((mac != null) && (mac.length == 6)) {\r\n\t\t\t\t\t\tresult.add(getHardwareAddressAsString(mac));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "Collection<NetworkInterface> getAllNetworkInterfaces();", "java.util.List<com.google.cloud.compute.v1.NetworkInterface> getNetworkInterfacesList();", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }", "public static List<String> getAllHardwareAddress() throws SocketException {\n ArrayList<String> addresses = new ArrayList<>();\n Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();\n while (ifaces.hasMoreElements()) {\n NetworkInterface iface = ifaces.nextElement();\n byte[] macaddr = iface.getHardwareAddress();\n if (macaddr == null)\n continue;\n String key = String.format(MACADDR_FORMAT, macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], macaddr[5]);\n addresses.add(key);\n }\n return addresses;\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "public List<NetworkInterface> networkInterfaces() {\n return this.networkInterfaces;\n }", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "java.util.List<? extends com.google.cloud.compute.v1.NetworkInterfaceOrBuilder>\n getNetworkInterfacesOrBuilderList();", "com.google.cloud.compute.v1.NetworkInterface getNetworkInterfaces(int index);", "private Object[] getNetInterfaces(final HostBrowser hostBrowser) {\n final List<Object> list = new ArrayList<Object>();\n \n list.add(null);\n final Enumeration e = hostBrowser.getNetInterfacesNode().children();\n \n while (e.hasMoreElements()) {\n final Info i =\n (Info) ((DefaultMutableTreeNode) e.nextElement()).getUserObject();\n list.add(i);\n }\n return list.toArray(new Object[list.size()]);\n }", "public static List<String> getAvailableInterfaces() {\r\n List<String> result;\r\n Enumeration<NetworkInterface> interfaces = null;\r\n\r\n try {\r\n interfaces = NetworkInterface.getNetworkInterfaces();\r\n } catch (SocketException e) {\r\n System.errorLogging(e);\r\n }\r\n\r\n if (interfaces == null)\r\n return Collections.emptyList();\r\n\r\n result = new ArrayList<>();\r\n\r\n while (interfaces.hasMoreElements()) {\r\n NetworkInterface iface = interfaces.nextElement();\r\n if (isIfaceConnected(iface)) {\r\n result.add(iface.getName());\r\n }\r\n }\r\n\r\n return result;\r\n }", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "int getNetworkInterfacesCount();", "List<NetworkInterfaceTapConfiguration> networkInterfaceTapConfigurations();", "String getInterfacesAsString() {\n List<NetworkInterface> interfaces;\n try {\n interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n } catch (Exception e) {\n return \"\";\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n for (NetworkInterface nif : interfaces) {\n try {\n // Android doesn't have a supportsBroadcast() but the Go net.Interface wants\n // one, so we say the interface has broadcast if it has multicast.\n sb.append(String.format(java.util.Locale.ROOT, \"%s %d %d %b %b %b %b %b |\", nif.getName(),\n nif.getIndex(), nif.getMTU(), nif.isUp(), nif.supportsMulticast(),\n nif.isLoopback(), nif.isPointToPoint(), nif.supportsMulticast()));\n\n for (InterfaceAddress ia : nif.getInterfaceAddresses()) {\n // InterfaceAddress == hostname + \"/\" + IP\n String[] parts = ia.toString().split(\"/\", 0);\n if (parts.length > 1) {\n sb.append(String.format(java.util.Locale.ROOT, \"%s/%d \", parts[1], ia.getNetworkPrefixLength()));\n }\n }\n } catch (Exception e) {\n // TODO(dgentry) should log the exception not silently suppress it.\n continue;\n }\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }", "private String[] getNetworkInformation(Context context)\n {\n String[] output = new String[4];\n\n WifiManager wifiMgr = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiMgr.getConnectionInfo();\n int ip = wifiInfo.getIpAddress();\n String ipAddress = Formatter.formatIpAddress(ip);\n output[0] = ipAddress;\n // Get DNS Server\n final DhcpInfo dhcp = wifiMgr.getDhcpInfo();\n output[1] = Formatter.formatIpAddress(dhcp.netmask);\n output[2] = Formatter.formatIpAddress(dhcp.gateway);\n output[3] = Formatter.formatIpAddress(dhcp.dns1);\n return output;\n }", "com.google.cloud.compute.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index);", "public String[] getIntefaceNetwork() {\n\t\treturn null;\n\t}", "public List<NetworkNode> listNetworkNode();", "Set<Interface> getInterfacesByPort(ConnectPoint port);", "public Vector<NetworkAddress> getHostAddresses() { return hostAddresses; }", "String getInterfaces();", "NetworkInterface getNetworkInterfaceByAddress(InterfaceAddress interfaceAddress);", "public static Stream<NetworkInterface> getNetworkInterfacesAsStream() throws Exception {\n return Collections.list(NetworkInterface.getNetworkInterfaces()).stream();\n }", "public Iterator getNetworkList(){\n NeutronTest nt=new NeutronTest(this.idsEndpoint,this.tenantName,this.userName,this.password,this.region);\n Networks ns=nt.listNetworks();\n Iterator<Network> itNet=ns.iterator();\n return itNet;\n }", "Set<MacAddress> neighbors();", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public Vector<NetworkAddress> getHostAddresses(int type) {return addressesChecker.getAllMyAddresses(type); }", "@Nullable\r\n List<Network> getNetwork();", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public java.util.List<Network> getNetworksList() {\n return networks_;\n }", "private NetworkInterface getNetworkInterface() throws SocketException {\n NetworkInterface networkInterface = null;\n Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while(networkInterfaces.hasMoreElements()) {\n NetworkInterface nextNetworkInterface = networkInterfaces.nextElement();\n log.info(nextNetworkInterface+\": [supportsMulticast=\"+nextNetworkInterface.supportsMulticast()+\"][virtual=\"+nextNetworkInterface.isVirtual()+\"]\");\n if(nextNetworkInterface.supportsMulticast()) {\n networkInterface = nextNetworkInterface;\n// break;\n }\n }\n return networkInterface;\n }", "java.util.List<Report.LocationOuterClass.Wifi> \n getWifisList();", "List<PortMappingInfo> getAllMappingInfos() throws NotDiscoverUpnpGatewayException, UpnpException;", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public static void getNetworkIPs() throws ConnectException{\n\t final byte[] ip;\n\t \n\t try {\n\t \t// Stores IP address of this computer in the array\n\t ip = InetAddress.getLocalHost().getAddress();\n\t\t} \n\t\tcatch (Exception e) {\n\t \te.printStackTrace();\n\t return;\n\t }\n\t \n\t // Checks each IP address, replacing fourth set of numbers \n\t // in this computer's IP address with values from 1 - 255\n\t for(int i = 1; i < 255; i++) {\n\t final int j = i;\n\t new Thread(new Runnable() {\n\t public void run() {\n\t try {\n\t \t// Checks if this IP address is reachable\n\t ip[3] = (byte) j;\n\t InetAddress address = InetAddress.getByAddress(ip);\n\t String output = address.toString().substring(1);\n\t \n\t // Prints out IP address only if it is reachable\n\t if (address.isReachable(1717)) {\n\t System.out.println(output + \" is on the network\");\n\t }\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t }\n\t }\n\t }).start(); \n\t }\n\t}", "public java.util.List<Network.Builder> getNetworksBuilderList() {\n return getNetworksFieldBuilder().getBuilderList();\n }", "public int[] getInterfaces() {\n return interfaces;\n }", "String[] getInternalNetworkPrefix();", "private static String m21403f() {\n String str;\n String str2 = \"\";\n try {\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n Enumeration inetAddresses = ((NetworkInterface) networkInterfaces.nextElement()).getInetAddresses();\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n str2 = inetAddress.getHostAddress();\n }\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return str;\n }", "Set<Interface> getMatchingInterfaces(IpAddress ip);", "public static String[] getAllPrivateAddress() {\n\t\tArrayList<String> a = new ArrayList<String>();\n\t\ttry {\n\t\t\tEnumeration<NetworkInterface> enums = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (enums.hasMoreElements()) {\n\t\t\t\tNetworkInterface ni = enums.nextElement();\n\t\t\t\tEnumeration<InetAddress> hosts = ni.getInetAddresses();\n\t\t\t\twhile (hosts.hasMoreElements()) {\n\t\t\t\t\tInetAddress local = hosts.nextElement();\n\t\t\t\t\tString localIP = local.getHostAddress();\n\t\t\t\t\tif (IP4Style.isPrivateIP(localIP)) {\n\t\t\t\t\t\ta.add(localIP);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SocketException exp) {\n\n\t\t}\n\t\tif(a.isEmpty()) return null;\n\t\tString[] all = new String[a.size()];\n\t\treturn a.toArray(all);\n\t}", "private static String getMacAddress(){\n\t\ttry {\n\t\t\t//getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra.\n\t\t\t//if this issue is ever solved please replace for the appropriate code\n\t\t\tString command = \"ifconfig\";\n\t\t\tProcess p = Runtime.getRuntime().exec(command);\n\t\t\tBufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n\t\t\tString line = inn.readLine();\n\n\t\t\twhile( line != null ){\n\t\t\t\t\n\t\t\t\tif(line.indexOf(\"eth0\") >= 0){\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\treturn split[split.length-1];\n\t\t\t\t}\n\n\t\t\t\tline = inn.readLine();\n\t\t\t}\n\n\t\t\tinn.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"error\";\n\t}", "org.jacorb.imr.HostInfo[] list_hosts();", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }", "List<PCDevice> getAllPC();", "public List<ServerHardware> getServers();", "Set<Interface> getInterfacesByIp(IpAddress ip);", "public Map<String, Integer> execAdbOnlineDevicesPortForward() {\n List<String> device_id_list = this.execAdbDevices();\n Map<String, Integer> device_hostport_map = new HashMap<String, Integer>();\n\n int index = 0;\n for (String device : device_id_list) {\n int host_port = ADBExecutor.HOST_BASE_PORT + index * 10;\n this.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT);\n device_hostport_map.put(device, host_port);\n index++;\n }\n return device_hostport_map;\n }", "public static void main(String[] args) {\n\r\n\t\tEnumeration<NetworkInterface> interfaces;\r\n\t\ttry {\r\n\t\t\tinterfaces = NetworkInterface.getNetworkInterfaces();\r\n\t\t\twhile (interfaces.hasMoreElements()) {\r\n\t\t\t\tNetworkInterface sys = interfaces.nextElement();\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(Inet4Address.getLocalHost());\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\tbyte[] mac = sys.getHardwareAddress();\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tif (mac!=null) {\r\n\t\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\t\tfor (int i = 0; i < mac.length; i++) {\r\n\t\t\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n//\t\tcatch (UnknownHostException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t\t\r\n\r\n\r\n\t}", "java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();", "public List<String> getAddresses() {\n return mIPs;\n }", "NetworkInterface getNetworkInterface(int id);", "public static List<MemoryBlock> getAllMemoryAddresses() {\n\n List<MemoryBlock> addresses = new ArrayList<MemoryBlock>();\n\n for (int i = 0; i <= EEPROM_MAX_ADDRESS; i++) {\n addresses.add(new MemoryBlock(Utils.intToHexString(i), \"\"));\n }\n return addresses;\n }", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public List<String> getAddresses() throws RemoteException {\n\t\tList<String> addresses = new ArrayList<String>();\n\t\tif (this.registry != null) {\n\t\t\tfor (IServer server : this.serverList.getServers()) {\n\t\t\t\taddresses.add(server.getFullAddress());\n\t\t\t}\n\t\t}\n\t\treturn addresses;\n\t}", "public Collection<INetwork> getNetworks(IProcess process) {\n\t\treturn null;\n\t}", "public Collection<String> listDevices();", "protected abstract void discoverIpInterfaces(Host host, List<IpInterface> oldIpInterfaces);", "public JsonArray getNetworkInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"/wapi/v1.0/network\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\t\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6network\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\t\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "public Map<String, Integer> execAdbOnlineDevicesPortForward()\r\n\t{\r\n\t\tList<String> device_id_list = this.execAdbDevices();\r\n\t\tMap<String, Integer> device_hostport_map = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tfor (String device : device_id_list)\r\n\t\t{\r\n\t\t\tint host_port = ADBExecutor.HOST_BASE_PORT + index * 10;\r\n\t\t\tthis.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT);\r\n\t\t\tdevice_hostport_map.put(device, host_port);\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn device_hostport_map;\r\n\t}", "java.util.List<? extends Report.LocationOuterClass.WifiOrBuilder> \n getWifisOrBuilderList();", "public static List<InetAddress> getAllLocalInetAddresses() throws SocketException\n {\n final List<InetAddress> addresses = new ArrayList<InetAddress>();\n\n // check all network interfaces\n final Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements())\n {\n // add all addresses assigned to the current network interface\n final NetworkInterface networkInterface = networkInterfaces.nextElement();\n for (final Enumeration<InetAddress> inetAddresses = networkInterface.getInetAddresses(); inetAddresses.hasMoreElements();)\n {\n addresses.add(inetAddresses.nextElement());\n }\n }\n\n return addresses;\n }", "public java.util.List<Network> getNetworksList() {\n if (networksBuilder_ == null) {\n return java.util.Collections.unmodifiableList(networks_);\n } else {\n return networksBuilder_.getMessageList();\n }\n }", "public ArrayList<InterfaceType> getAllInterfaces() {\n HashSet<InterfaceType> set = new HashSet<>();\n ArrayList<InterfaceType> list = new ArrayList<>();\n\n for (InterfaceType interfaceType : getInterfaces()) {\n for (InterfaceType type : interfaceType.getAllInterfaces()) {\n if (set.add(type)) list.add(type);\n }\n }\n\n return list;\n }", "private void addIntfConfig() {\n Set<Interface> interfaces = Sets.newHashSet();\n\n Set<Interface> vlanOneSet = new HashSet<>();\n\n for (int i = 1; i <= LAST_CONF_DEVICE_INTF_VLAN_IP; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n\n // Interface addresses for IPv4\n Ip4Prefix prefix1 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i - 1) + \".0/24\");\n Ip4Address addr1 = Ip4Address.valueOf(\"10.0.\" + (2 * i - 1) + \".1\");\n Ip4Prefix prefix2 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i) + \".0/24\");\n Ip4Address addr2 = Ip4Address.valueOf(\"10.0.\" + (2 * i) + \".1\");\n InterfaceIpAddress ia1 = new InterfaceIpAddress(addr1, prefix1);\n InterfaceIpAddress ia2 = new InterfaceIpAddress(addr2, prefix2);\n\n // Interface addresses for IPv6\n Ip6Prefix prefix3 = Ip6Prefix.valueOf((2 * i - 1) + \"000::0/64\");\n Ip6Address addr3 = Ip6Address.valueOf((2 * i - 1) + \"000::1\");\n Ip6Prefix prefix4 = Ip6Prefix.valueOf((2 * i) + \"000::0/64\");\n Ip6Address addr4 = Ip6Address.valueOf((2 * i) + \"000::2\");\n InterfaceIpAddress ia3 = new InterfaceIpAddress(addr3, prefix3);\n InterfaceIpAddress ia4 = new InterfaceIpAddress(addr4, prefix4);\n\n // Setting up interfaces\n Interface intf1 = new Interface(cp, Sets.newHashSet(ia1, ia3),\n MacAddress.valueOf(2 * i - 1),\n VlanId.vlanId((short) 1));\n Interface intf2 = new Interface(cp, Sets.newHashSet(ia2, ia4),\n MacAddress.valueOf(2 * i),\n VlanId.NONE);\n\n interfaces.add(intf1);\n interfaces.add(intf2);\n\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1, intf2)).anyTimes();\n }\n for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n Interface intf1 = new Interface(cp, null,\n MacAddress.NONE,\n VlanId.vlanId((short) 1));\n\n interfaces.add(intf1);\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1)).anyTimes();\n }\n expect(interfaceService.getInterfacesByVlan(VLAN1))\n .andReturn(vlanOneSet).anyTimes();\n expect(interfaceService.getInterfacesByVlan(VLAN10))\n .andReturn(Collections.emptySet()).anyTimes();\n expect(interfaceService.getInterfaces()).andReturn(interfaces).anyTimes();\n\n for (int i = LAST_CONF_DEVICE_INTF_VLAN + 1; i <= NUM_DEVICES; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i),\n P1);\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Collections.emptySet()).anyTimes();\n }\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "public Map<String, SmartHomeHub> loadInterfaces();", "public Map<String, SmartHomeHub> getCachedInterfaces();", "public String[] getInterfaces() {\n return m_classBuilder.getInterfaces();\n }", "public NatGatewayAddress [] getPublicIpAddressSet() {\n return this.PublicIpAddressSet;\n }", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "private List<ManagedInterface> getInterfaces(HttpSession userSession, int nodeId) throws SQLException {\n Connection connection = null;\n List<ManagedInterface> allInterfaces = new ArrayList<ManagedInterface>();\n int lineCount = 0;\n\n final DBUtils d = new DBUtils(getClass());\n try {\n connection = DataSourceFactory.getInstance().getConnection();\n d.watch(connection);\n\n PreparedStatement ifaceStmt = connection.prepareStatement(INTERFACE_QUERY);\n d.watch(ifaceStmt);\n ifaceStmt.setInt(1, nodeId);\n\n ResultSet ifaceResults = ifaceStmt.executeQuery();\n d.watch(ifaceResults);\n while (ifaceResults.next()) {\n lineCount++;\n ManagedInterface newInterface = new ManagedInterface();\n newInterface.setNodeid(nodeId);\n newInterface.setAddress(ifaceResults.getString(1));\n newInterface.setStatus(ifaceResults.getString(2));\n allInterfaces.add(newInterface);\n\n PreparedStatement svcStmt = connection.prepareStatement(SERVICE_QUERY);\n d.watch(svcStmt);\n svcStmt.setInt(1, nodeId);\n svcStmt.setString(2, newInterface.getAddress());\n\n ResultSet svcResults = svcStmt.executeQuery();\n d.watch(svcResults);\n while (svcResults.next()) {\n lineCount++;\n ManagedService newService = new ManagedService();\n newService.setId(svcResults.getInt(1));\n newService.setName(svcResults.getString(2));\n newService.setStatus(svcResults.getString(3));\n newInterface.addService(newService);\n }\n }\n userSession.setAttribute(\"lineItems.nodemanagement\", new Integer(lineCount));\n } finally {\n d.cleanUp();\n }\n return allInterfaces;\n }", "public List<String> getAvailableDevices() {\n if (getEcologyDataSync().getData(\"devices\") != null) {\n return new ArrayList<>((Collection<? extends String>) ((Map<?, ?>) getEcologyDataSync().\n getData(\"devices\")).keySet());\n } else {\n return Collections.emptyList();\n }\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList();", "public List getAddressList() {\r\n System.out.println(\"List Elements :\" + addressList);\r\n return addressList;\r\n }", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n return networks_;\n }", "public final List<InetAddress> mo8904a(String str) {\n if (str != null) {\n return Arrays.asList(InetAddress.getAllByName(str));\n }\n throw new UnknownHostException(\"hostname == null\");\n }", "public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}", "public void testFromInterface() throws Exception\n {\n EthernetAddress addr = EthernetAddress.fromInterface();\n assertNotNull(addr);\n assertNotNull(addr.toString());\n }", "public static String getGateWayIp() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface\n .getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> ipAddr = intf.getInetAddresses(); ipAddr\n .hasMoreElements();) {\n InetAddress inetAddress = ipAddr.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n if (inetAddress.getHostAddress().length() <= 16) {\n return inetAddress.getHostAddress();\n }\n }\n }\n }\n } catch (SocketException ex) {\n ex.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getDeviceIpAddress() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n\n log.debug(\"inetAddress: \" + inetAddress);\n\n if (!inetAddress.isLoopbackAddress()) {\n String ip = Formatter.formatIpAddress(inetAddress.hashCode());\n return ip;\n }\n }\n }\n } catch (SocketException ex) {\n log.error(ex.getMessage(), ex);\n }\n\n return null;\n }", "public String getNatAddress();", "char[][] getInterfaceNames();", "List<DeviceDetails> getDevices();", "public static Set<Integer> getAllInterfaceIndexes(String deviceIp) throws IOException {\n\n Set<Integer> interfaceIndexes = new HashSet<>();\n\n try(SnmpService snmpService = new SnmpService()) {\n\n List<TreeEvent> treeEvents = snmpService.walk(deviceIp, DeviceOid.Tabular.IF_INDEX.value);\n if (Objects.isNull(treeEvents))\n throw new AccessTimeOutException(\"Access time out! Device ip: \" + \"'\" + deviceIp + \"'\");\n if (treeEvents.isEmpty())\n throw new UnexpectedErrorException(\"IfIndex table was not found. Device ip: \" + \"'\" + deviceIp + \"'\");\n\n for(TreeEvent treeEvent: treeEvents) {\n VariableBinding[] variableBindings = treeEvent.getVariableBindings();\n if(Objects.isNull(variableBindings))\n throw new AccessTimeOutException(\"Access time out! Device ip: \" + \"'\" + deviceIp + \"'\");\n\n for (VariableBinding variableBinding: variableBindings)\n interfaceIndexes.add(variableBinding.getVariable().toInt());\n }\n\n\n }\n\n return interfaceIndexes;\n }", "public static String Ipconfig(){\n StringBuilder sbuf = new StringBuilder();\n InetAddress ip;\n String hostname;\n // Inet6Address ipv6; *add a ipv6 to get the ipv6 address\n try {\n ip = InetAddress.getLocalHost();\n hostname = ip.getHostName();\n\n //NetworkInterface network = NetworkInterface.getByInetAddress(ip);\n NetworkInterface nif = NetworkInterface.getByName(\"localhost\");\n //InetAddress[] inet = InetAddress.getAllByName(ip.getHostName());\n //String address = getAddress(inet).getHostAddress();\n\n sbuf.append(\"Default gateway: \"+ip.getLocalHost());\n //fmt.format(\"MAc address:\" + nif.getHardwareAddress());\n sbuf.append(\"\\nCurrent Name : \" + ip.getHostName());\n sbuf.append(\"\\nCurrent IP address : \" + ip.getHostAddress());\n //System.out.println(\"Current IPv6 address : \"+ getByAddress(hostname,inet,nets));// + ipv6.getHostAddress());\n //System.out.println(\"Current IPv6 Temp address : \");// + ipv6.getHostAddress());\n sbuf.append(\"\\nCurrent IPv6 Local : \");// + ipv6.getHostAddress());\n \n } catch(Throwable se){\n se.printStackTrace();\n }\n return sbuf.toString();\n }", "public static native short getRemoteInterfaceAddress(Remote remoteObj, byte interfaceIndex);", "public java.util.List<Report.LocationOuterClass.Wifi> getWifisList() {\n if (wifisBuilder_ == null) {\n return java.util.Collections.unmodifiableList(wifis_);\n } else {\n return wifisBuilder_.getMessageList();\n }\n }", "public java.util.List<Report.LocationOuterClass.Wifi> getWifisList() {\n return wifis_;\n }", "private static String readAddressFromInterface(final String interfaceName) {\n try {\n final String filePath = \"/sys/class/net/\" + interfaceName + \"/address\";\n final StringBuilder fileData = new StringBuilder(1000);\n final BufferedReader reader = new BufferedReader(new FileReader(filePath), 1024);\n final char[] buf = new char[1024];\n int numRead;\n\n String readData;\n while ((numRead = reader.read(buf)) != -1) {\n readData = String.valueOf(buf, 0, numRead);\n fileData.append(readData);\n }\n\n reader.close();\n return fileData.toString();\n } catch (IOException e) {\n return null;\n }\n }", "String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;", "public static String getMacAddress() {\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n\n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n\n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n res1.append(String.format(\"%02X:\",b));\n }\n\n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n }", "List<String> getNodeNames()\n {\n return allNodes.values().stream().map(CommunicationLink::getName).collect(Collectors.toList());\n }", "private void processNeighbors() {\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i] == null) { continue; }\n System.out.println(this.ports[i].getRemoteRouterDesc().simulatedIPAddress);\n }\n }", "private static String getInterfaceMask(int interfaceIndex) {\n String subnetMask = null;\n try {\n Ip4Address ipAddress = getInterfaceIp(interfaceIndex);\n NetworkInterface networkInterface = NetworkInterface.getByInetAddress(\n InetAddress.getByName(ipAddress.toString()));\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n int index = 0;\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n break;\n }\n index++;\n }\n int prfLen = networkInterface.getInterfaceAddresses().get(index).getNetworkPrefixLength();\n int shft = 0xffffffff << (32 - prfLen);\n int oct1 = ((byte) ((shft & 0xff000000) >> 24)) & 0xff;\n int oct2 = ((byte) ((shft & 0x00ff0000) >> 16)) & 0xff;\n int oct3 = ((byte) ((shft & 0x0000ff00) >> 8)) & 0xff;\n int oct4 = ((byte) (shft & 0x000000ff)) & 0xff;\n subnetMask = oct1 + \".\" + oct2 + \".\" + oct3 + \".\" + oct4;\n } catch (Exception e) {\n log.debug(\"Error while getting Interface network mask by index\");\n return subnetMask;\n }\n return subnetMask;\n }" ]
[ "0.788049", "0.75634134", "0.72772515", "0.7200936", "0.7116308", "0.69262713", "0.68226296", "0.67637104", "0.6457585", "0.6402084", "0.63714504", "0.63302624", "0.6324219", "0.6277275", "0.6247331", "0.612889", "0.61272126", "0.6012306", "0.59913105", "0.5845093", "0.58082736", "0.57866025", "0.57310104", "0.57290286", "0.5705816", "0.5705751", "0.56589943", "0.5658006", "0.5640847", "0.5626558", "0.5596231", "0.5575042", "0.55378157", "0.5528943", "0.5523713", "0.5504743", "0.54787153", "0.547334", "0.5472476", "0.5458163", "0.54257524", "0.5418286", "0.5394915", "0.538999", "0.5382003", "0.5376188", "0.5370532", "0.53666997", "0.535956", "0.5341489", "0.533874", "0.53357065", "0.5334204", "0.53269756", "0.5325618", "0.53155243", "0.53138536", "0.53108627", "0.5304424", "0.5303688", "0.5301568", "0.52994066", "0.52907544", "0.5287102", "0.5286939", "0.5278652", "0.52762055", "0.52718973", "0.52708185", "0.526981", "0.5254644", "0.5225079", "0.5223402", "0.5221366", "0.5210303", "0.5197649", "0.5189793", "0.5186409", "0.5165987", "0.5158438", "0.51573837", "0.5157127", "0.51553196", "0.51436406", "0.5129264", "0.5122911", "0.5121521", "0.5116881", "0.51115996", "0.5110574", "0.51035273", "0.5101056", "0.5094583", "0.5084609", "0.508397", "0.5083325", "0.5080407", "0.5079873", "0.5069756", "0.50679636" ]
0.6663709
8
Converts an image bytearray to the Base64 equivalent
static String convertToBase64(byte[] image){ return !Objects.isNull(image) ? Base64.getEncoder().encodeToString(image) : ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "String convertImageToBase64String(final BufferedImage img) {\n final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", byteArrayOutputStream);\n return Base64.getEncoder().encodeToString(byteArrayOutputStream.toByteArray());\n } catch (IOException e) {\n logger.error(\"cannot convert image to base 64\", e);\n }\n return null;\n }", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "public static String encodeToBase64(Bitmap image) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n return Base64.encodeToString(b, Base64.DEFAULT);\n }", "public String emitAsImageBase64() {\n BufferedImage img = emitAsBufferedImage();\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public static String convertImageToBase64(String path) {\n\n Bitmap btmp = BitmapFactory.decodeFile(path);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n btmp.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] byteArrayImage = baos.toByteArray();\n\n return Base64.encodeToString(byteArrayImage, Base64.DEFAULT);\n }", "public static String toBase64( byte[] b ) {\n StringBuffer sb = new StringBuffer();\n for ( int ptr = 0; ptr < b.length; ptr += 3 ) {\n sb.append( base64[ ( b[ ptr ] >> 2 ) & 0x3F ] );\n if ( ptr + 1 < b.length ) {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) | ( ( b[ ptr + 1 ] >> 4 ) & 0x0F ) ] );\n if ( ptr + 2 < b.length ) {\n sb.append( base64[ ( ( b[ ptr + 1 ] << 2 ) & 0x3C ) | ( ( b[ ptr + 2 ] >> 6 ) & 0x03 ) ] );\n sb.append( base64[ b[ ptr + 2 ] & 0x3F ] );\n } else {\n sb.append( base64[ ( b[ ptr + 1 ] << 2 ) & 0x3C ] );\n sb.append( pad );\n }\n } else {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) ] );\n sb.append( pad );\n sb.append( pad );\n }\n }\n return sb.toString();\n }", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "public native byte[] imageToBlob(ImageInfo imageInfo);", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "public static String encB64(byte[] data) {\n return Base64.encodeToString(data,Base64.DEFAULT);\n }", "public static String decodificarImagen(byte[] imagen){\n\t\tif(imagen!=null && imagen.length>0){\n\t\t\treturn \"data:image/jpeg;base64,\"+DatatypeConverter.printBase64Binary(imagen);\n\t\t}\n\t\treturn null;\n\t}", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "public String convertImage(ImageView itemImage){\n Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT);\n return imageFile;\n }", "public static String getImageBase64String(BufferedImage image) {\n String result = null;\n try {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n OutputStream b64 = new Base64OutputStream(os);\n ImageIO.write(image, \"png\", b64);\n result = os.toString(\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n return result;\n }", "public static String byteArrayToAltBase64(byte[] a) {\n return byteArrayToBase64(a, true);\n }", "public byte[] encode(RenderedImage image) throws java.io.IOException;", "public static String byte2Base64(byte[] bytes) {\n BASE64Encoder encoder = new BASE64Encoder();\n return encoder.encode(bytes);\n }", "private byte[] imageViewToByte(ImageView image){\n Bitmap bitmap = ((BitmapDrawable)image.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n return byteArray;\n }", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "public static byte[] imageToByteArray(BufferedImage image) {\n if (image != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n ImageIO.write(image, \"png\", baos);\n baos.flush();\n byte[] imageInByte = baos.toByteArray();\n baos.close();\n return imageInByte;\n } catch (IOException ex) {\n log.error(\"error while converting to byte array\", ex);\n }\n WritableRaster raster = image.getRaster();\n DataBufferByte data = (DataBufferByte) raster.getDataBuffer();\n return data.getData();\n }\n return new byte[0];\n }", "public static String getBase64FromImage(ImageView imageView) {\n\n\n imageView.buildDrawingCache();\n Bitmap bitmap = imageView.getDrawingCache();\n //Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap();\n return getBase64FromBitmap(bitmap);\n }", "public String getImageBase64() {\n return this.imageBase64;\n }", "public String getImageBase64(String imagePath) {\n\t\tString base64Image = \"\";\n\t\tFile file = new File(imagePath);\n\t\ttry (FileInputStream imageInFile = new FileInputStream(file)) {\n\t\t\t// Reading a Image file from file system\n\t\t\tbyte imageData[] = new byte[(int) file.length()];\n\t\t\timageInFile.read(imageData);\n\t\t\tbase64Image = Base64.getEncoder().encodeToString(imageData);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image not found\" + e);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"Exception while reading the Image \" + ioe);\n\t\t}\n\t\treturn base64Image;\n\t}", "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Base64.encodeToString(imgData, Base64.DEFAULT);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn base64Png;\n\t}", "public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }", "public byte[] doEncoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.encodeBase64(bArr);\r\n }", "public static String toBase64(byte[] aValue) {\n \n final String m_strBase64Chars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n \n int byte1;\n int byte2;\n int byte3;\n int iByteLen = aValue.length;\n StringBuffer tt = new StringBuffer();\n \n for (int i = 0; i < iByteLen; i += 3) {\n boolean bByte2 = (i + 1) < iByteLen;\n boolean bByte3 = (i + 2) < iByteLen;\n byte1 = aValue[i] & 0xFF;\n byte2 = (bByte2) ? (aValue[i + 1] & 0xFF) : 0;\n byte3 = (bByte3) ? (aValue[i + 2] & 0xFF) : 0;\n \n tt.append(m_strBase64Chars.charAt(byte1 / 4));\n tt.append(m_strBase64Chars.charAt((byte2 / 16) + ((byte1 & 0x3) * 16)));\n tt.append(((bByte2) ? m_strBase64Chars.charAt((byte3 / 64) + ((byte2 & 0xF) * 4)) : '='));\n tt.append(((bByte3) ? m_strBase64Chars.charAt(byte3 & 0x3F) : '='));\n }\n \n return tt.toString();\n }", "public String emitAsImageBase64(int width,int height) {\n BufferedImage img = emitAsBufferedImage(width,height);\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public static String toBase64String(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n return (DatatypeConverter.printBase64Binary(bytes));\n }", "default byte[] decodificarBase64(String archivoBase64) {\n\t\treturn Base64.getDecoder().decode(archivoBase64);\n\t}", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality)\r\n {\r\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\r\n image.compress(compressFormat, quality, byteArrayOS);\r\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT);\r\n }", "public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality)\n {\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\n image.compress(compressFormat, quality, byteArrayOS);\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT);\n }", "public static String bitMapToBase64String(Bitmap bitmap){\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteStream);\n byte[] byteArray = byteStream.toByteArray();\n String baseString = Base64.encodeToString(byteArray,Base64.DEFAULT);\n return baseString;\n }", "public static byte[] base642Byte(String base64Key) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(base64Key);\n }", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "public byte[] convertImage(Image image) {\n BufferedImage bytesImage = SwingFXUtils.fromFXImage(image, null);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n byte[] bytesArray = null;\n try {\n ImageIO.write(bytesImage, \"png\", baos);\n //coloca los bytes de la imagen en un arreglo de bytes\n bytesArray = baos.toByteArray();\n baos.close();\n return bytesArray;\n } catch (IOException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public String fromImageToString(BitmapDrawable personPhoto){\n Bitmap photoBitmap = personPhoto.getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n photoBitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] photoByteFormat = stream.toByteArray();\n String encodedImage = Base64.encodeToString(photoByteFormat, Base64.NO_WRAP);\n return encodedImage;\n }", "public BufferedImage convertByteToImage(byte[] imageByteArr) throws IOException {\r\n return ImageIO.read(new ByteArrayInputStream(imageByteArr));\r\n }", "public static byte[] base64ToByte(String data) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(data);\n }", "public static String getStringBase64Bitmap(Bitmap bitmap){\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n byte[] bitmapBytes = bos.toByteArray();\n String encodedImage = Base64.encodeToString(bitmapBytes, Base64.DEFAULT);\n Log.i(\"getStringBase64Bitmap\",encodedImage);\n return encodedImage;\n }", "public abstract byte[] getEncoded();", "public static void convertBase64StringToImage(String base64ImageString, File file) {\n FileOutputStream os;\n try {\n Base64 d = new Base64();\n byte[] bs = d.decode(base64ImageString);\n os = new FileOutputStream(file.getAbsolutePath());\n os.write(bs);\n os.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "static Image forData(String imageType, byte[] data) {\n\t\treturn () -> String.format(\"data:image/%s;base64,%s\", imageType, Base64.encodeBase64String(data));\n\t}", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "public byte[] bufferedImageToByteArray(BufferedImage bufferedImage) {\n byte[] byteImage = null;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n ImageIO.write(bufferedImage, \"jpg\", baos);\n baos.flush();\n byteImage = baos.toByteArray();\n baos.close();\n } catch (IOException ex) {\n Logger.getLogger(ProcessImage.class.getName()).log(Level.SEVERE, null, ex);\n }\n return byteImage;\n }", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "public byte[] convertCircleBitmapToByteArray(Bitmap imagem){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n imagem.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte imagemBytes[] = stream.toByteArray();\n return imagemBytes;\n\n }", "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "public static byte[] fromBase64(String data)\n {\n return Base64.decode(data, Base64.NO_WRAP);\n }", "public static Bitmap decodeToBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "private Bitmap convertToBitmap(byte[] b){\n\n return BitmapFactory.decodeByteArray(b, 0, b.length);\n\n }", "public String getEncoded64ImageStringFromBitmap(Bitmap bitmap) {\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteFormat = stream.toByteArray();\n // get the base 64 string\n //String imgString = Base64.encodeToString(byteFormat, Base64.NO_WRAP);\n String imgString = Base64.encodeToString(byteFormat, Base64.DEFAULT);\n\n return imgString;\n }", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "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 byte[] encode(byte[] msg) {\r\n\t\treturn Base64.encode(msg);\r\n\t}", "public static String bytesToString(byte[] bytes) {\n return Base64.encodeBase64String(bytes);\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "public BufferedImage byteArrayToBufferedImage(byte[] byteImage) {\n BufferedImage image = null;\n InputStream in = new ByteArrayInputStream(byteImage);\n try {\n image = ImageIO.read(in);\n\n } catch (IOException ex) {\n Logger.getLogger(ProcessImage.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return image;\n }", "private void decodeBase64AndSetImage(String completeImageData, ImageView imageView) {\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n\n imageView.setImageBitmap(bitmap);\n }", "public String getStringImage() {\n if (bitmap != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n } else {\n return null;\n }\n }", "public static byte[] getImageBinary(File f) {\n BufferedImage bi;\n try {\n bi = ImageIO.read(f);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ImageIO.write(bi, \"jpg\", baos);\n byte[] bytes = baos.toByteArray();\n return bytes;\n //return encoder.encodeBuffer(bytes).trim();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n\r\n ImageView image = (ImageView) findViewById(R.id.editprofile_image);\r\n try {\r\n if (requestCode == requestCode && resultCode == RESULT_OK && null != data) {\r\n Uri selectedImage = data.getData();\r\n Log.d(\"d\", \"Image URI: \" + selectedImage);\r\n\r\n Bitmap bm = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);\r\n image.setImageBitmap(bm);\r\n\r\n //Encoding image to base64\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);\r\n byte[] byteArray = byteArrayOutputStream .toByteArray();\r\n to64 = Base64.encodeToString(byteArray, Base64.DEFAULT);\r\n Log.d(\"d\", \"Encoded String: \" + to64);\r\n\r\n }\r\n }catch (IOException e){\r\n Toast.makeText(this, \"An error occurred.\", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "private BufferedImage imageFromBase64(final String imageString) {\r\n\t\ttry {\r\n\t\t\tfinal boolean useCache=ImageIO.getUseCache();\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.setUseCache(false); /* Wird benötigt, wenn im Stream nicht gesprungen werden kann, was bei einem ByteArrayInputStream nun definitiv möglich ist. */\r\n\t\t\t\treturn ImageIO.read(new ByteArrayInputStream(Base64.getDecoder().decode(imageString)));\r\n\t\t\t} finally {\r\n\t\t\t\tImageIO.setUseCache(useCache);\r\n\t\t\t}\r\n\t\t} catch (IOException | IllegalArgumentException e) {return null;}\r\n\t}", "public static String encode(byte[] data) {\n\t\treturn Base64.getEncoder().encodeToString(data);\n\t}", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "public static String encode(byte[] input)\r\n {\r\n return (input == null ? null : Base64.encode(input, 0, input.length));\r\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 }", "public byte[] Img2Bin (String path){\t \n\t\tByteArrayOutputStream bin = new ByteArrayOutputStream();\n\t\t\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(new File(path));\n\t\t\tImageIO.write(image, \"jpg\", bin);\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Img2Bin didn't succeed. Error: {}\",e);\n\t\t\treturn null;\n\t\t}\n\n\t return bin.toByteArray();\n\t}", "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 static String encode(byte[] input) {\r\n\tint i;\r\n\tint j;\r\n\tint m;\r\n\tint a;\r\n\tint b;\r\n\tint c;\r\n\tStringBuffer output;\r\n\r\n\tif (input.length == 0) {\r\n\t return \"\";\r\n\t}\r\n\r\n\t/*\r\n\t * Compute the length of the output buffer.\r\n\t */\r\n\ti = ((input.length + 2) / 3) << 2;\r\n\toutput = new StringBuffer(i);\r\n\ti = input.length / 3;\r\n\tj = 0;\r\n\r\n\twhile (i > 0) {\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t c = input[j++];\r\n\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((b & 15) << 2) | ((c >>> 6) & 3);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = c & 63;\r\n\t output.append(BASE64[m]);\r\n\t i--;\r\n\t}\r\n\t/*\r\n\t * Handle the padding and encoding of groups of less than three input\r\n\t * bytes length.\r\n\t */\r\n\ti = input.length % 3;\r\n\r\n\tswitch (i) {\r\n\tcase 1:\r\n\t a = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\t m = (a & 3) << 4;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_2);\r\n\t break;\r\n\r\n\tcase 2:\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = (b & 15) << 2;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_1);\r\n\t break;\r\n\t}\r\n\treturn output.toString();\r\n }", "public Base64Binary(byte[] bytes) throws NumberFormatException {\r\n\t\tif (bytes == null) {\r\n\t\t\tthrow new NumberFormatException(\"parameter can not be null for Base64Binary\");\r\n\t\t}\r\n\r\n\t\t// validate 'base64Binary' type which is defined in W3C schema\r\n\t\t// http://www.w3.org/TR/xmlschema-2/#base64Binary\r\n\t\tif (!W3CSchemaType.isValid(\"base64Binary\", Base64.encode(bytes))) {\r\n\t\t\tthrow new NumberFormatException(\"parameter is invalid for datatype base64Binary\");\r\n\t\t}\r\n\t\tmByteList = bytes;\r\n\t}", "private String ConvertImagenTexto(Bitmap imagenpro) {\n ByteArrayOutputStream espacio = new ByteArrayOutputStream();\n imagenpro.compress(Bitmap.CompressFormat.JPEG,100,espacio);\n byte[] imagen = espacio.toByteArray();\n String imagenAstring = Base64.encodeToString(imagen,Base64.DEFAULT);\n return imagenAstring;\n }", "static Bitmap getImage(byte[] image) {\n return BitmapFactory.decodeByteArray(image, 0, image.length);\n }", "public native void blobToImage(ImageInfo imageInfo, byte[] blob)\n\t\t\tthrows MagickException;", "private Image byteArrayToImage(byte[] byteArray) {\n\t\ttry {\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArray);\n\t\t\tBufferedImage deserializedImage = ImageIO.read(bis);\n\t\t\treturn SwingFXUtils.toFXImage(deserializedImage, null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public final static byte[] _encode(byte[] byteData) {\n\tif (byteData == null) {\n\t throw new IllegalArgumentException(\"byteData cannot be null\");\n\t}\n\n\t/*\n\t * Declare working variables including an array of bytes that will contain the encoded data to be returned to the caller. Note that the encoded array is about 1/3 larger than the input. This\n\t * is because every group of 3 bytes is being encoded into 4 bytes.\n\t */\n\tint iSrcIdx; // index into source (byteData)\n\tint iDestIdx; // index into destination (byteDest)\n\t// byte[] byteData = (byte[])byteData_in.clone();\n\t// byte[] byteData = byteData_in;\n\tbyte[] byteDest = new byte[((byteData.length + 2) / 3) * 4];\n\n\t/*\n\t * Walk through the input array, 24 bits at a time, converting them from 3 groups of 8 to 4 groups of 6 with two unset bits between. as per Base64 spec see\n\t * http://www.javaworld.com/javaworld/javatips/jw-javatip36-p2.html for example explanation\n\t */\n\tfor (iSrcIdx = 0, iDestIdx = 0; iSrcIdx < byteData.length - 2; iSrcIdx += 3) {\n\t byteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx] >>> 2) & 077);\n\t byteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx + 1] >>> 4) & 017 | (byteData[iSrcIdx] << 4) & 077);\n\t byteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx + 2] >>> 6) & 003 | (byteData[iSrcIdx + 1] << 2) & 077);\n\t byteDest[iDestIdx++] = (byte) (byteData[iSrcIdx + 2] & 077);\n\t}\n\n\t/*\n\t * If the number of bytes we received in the input array was not an even multiple of 3, convert the remaining 1 or 2 bytes.\n\t */\n\tif (iSrcIdx < byteData.length) {\n\t byteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx] >>> 2) & 077);\n\t if (iSrcIdx < byteData.length - 1) {\n\t\tbyteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx + 1] >>> 4) & 017 | (byteData[iSrcIdx] << 4) & 077);\n\t\tbyteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx + 1] << 2) & 077);\n\t } else\n\t\tbyteDest[iDestIdx++] = (byte) ((byteData[iSrcIdx] << 4) & 077);\n\t}\n\n\t/*\n\t * Use the encoded data as indexes into the Base64 alphabet. (The Base64 alphabet is completely documented in RFC 1521.)\n\t */\n\tfor (iSrcIdx = 0; iSrcIdx < iDestIdx; iSrcIdx++) {\n\t if (byteDest[iSrcIdx] < 26)\n\t\tbyteDest[iSrcIdx] = (byte) (byteDest[iSrcIdx] + 'A');\n\t else if (byteDest[iSrcIdx] < 52)\n\t\tbyteDest[iSrcIdx] = (byte) (byteDest[iSrcIdx] + 'a' - 26);\n\t else if (byteDest[iSrcIdx] < 62)\n\t\tbyteDest[iSrcIdx] = (byte) (byteDest[iSrcIdx] + '0' - 52);\n\t else if (byteDest[iSrcIdx] < 63)\n\t\tbyteDest[iSrcIdx] = '+';\n\t else\n\t\tbyteDest[iSrcIdx] = '/';\n\t}\n\n\t/* Pad any unused bytes in the destination string with '=' characters. */\n\tfor (; iSrcIdx < byteDest.length; iSrcIdx++)\n\t byteDest[iSrcIdx] = '=';\n\n\treturn byteDest;\n }", "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\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "public static byte[] decB64(String data) {\n return Base64.decode(data, Base64.DEFAULT);\n }", "public static String convertAudioToBase64(String path) {\n\n byte[] byteArrayImage = new byte[0];\n\n try {\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n FileInputStream fis = new FileInputStream(new File(path));\n\n byte[] buf = new byte[1024];\n int n;\n while (-1 != (n = fis.read(buf)))\n baos.write(buf, 0, n);\n\n byteArrayImage = baos.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return Base64.encodeToString(byteArrayImage, Base64.DEFAULT);\n }", "public static Try<byte[]> imageToPng(BufferedImage image) {\n return Try.of(() -> Imaging.writeImageToBytes(image, ImageFormats.PNG, null))\n .logIfFailure(TAG, err -> \"failed to convert image to bytes\");\n }", "public byte[] doDecoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.decodeBase64(bArr);\r\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 }", "private void uploadImage(byte[] imageData) {\n\n }", "public static byte[] encryptBase64(final byte[] input, final PublicKey key) throws DattackSecurityException {\n return Base64.getEncoder().encode(execEncryptionOperation(input, Cipher.ENCRYPT_MODE, key));\n }", "public static byte[] altBase64ToByteArray(String s) {\n return base64ToByteArray(s, true);\n }", "public javax.activation.DataHandler getBase64Binary() {\n return localBase64Binary;\n }", "@Override\n protected String doInBackground(Void... params) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Must compress the Image to reduce image size to make upload easy\n bitmap.compress(Bitmap.CompressFormat.PNG, 50, stream);\n byte[] byte_arr = stream.toByteArray();\n // Encode Image to String\n encodedString = Base64.encodeToString(byte_arr, 0);\n return \"\";\n }", "private Base64(){}", "public byte[] get_byte_data(BufferedImage image) {\n WritableRaster raster = image.getRaster();\n DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();\n return buffer.getData();\n }", "byte[] getProfileImage();", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }" ]
[ "0.67599916", "0.67171437", "0.67117167", "0.65806246", "0.65581137", "0.65483946", "0.6514675", "0.6492811", "0.6428702", "0.6403558", "0.63883376", "0.6340373", "0.6284656", "0.62566984", "0.62389183", "0.6224661", "0.62209255", "0.621393", "0.6179448", "0.61703384", "0.60990936", "0.6094569", "0.60249317", "0.6007916", "0.5992819", "0.59618396", "0.5960305", "0.5958994", "0.5903905", "0.58926594", "0.58639616", "0.58436054", "0.58345294", "0.58138245", "0.58117265", "0.57664305", "0.5733766", "0.57335424", "0.5733166", "0.5730206", "0.57141006", "0.56519794", "0.56497616", "0.5627725", "0.5623631", "0.5614825", "0.5607942", "0.5606771", "0.5590826", "0.5589643", "0.5586936", "0.557934", "0.55708677", "0.5560401", "0.55579966", "0.5553253", "0.5541021", "0.5533677", "0.55172557", "0.55167556", "0.55038893", "0.55031496", "0.55012655", "0.5500179", "0.54995716", "0.5494485", "0.5494485", "0.5473674", "0.5473319", "0.54532963", "0.54483104", "0.5446076", "0.5445893", "0.5445257", "0.54451305", "0.5439468", "0.54230696", "0.5420783", "0.5417335", "0.5416882", "0.5415272", "0.54121464", "0.54104406", "0.5410252", "0.5402678", "0.53692305", "0.5367387", "0.53600806", "0.5345145", "0.5335271", "0.5324914", "0.53224975", "0.5319344", "0.53190005", "0.5299082", "0.52901864", "0.5284705", "0.52845955", "0.52616984", "0.5236549" ]
0.80252844
0
Either encode a message from a file or decode a message from a file. Depending on the Boolean encoded.
public String readNwrite() { if (encoded) { try { msgEncoded = Files.readAllLines(msgEncodedPath); } catch (IOException e) { e.printStackTrace(); } for (String line : msgEncoded) { try { Files.writeString(msgClearPath, transCoder.decodeMsg(line) + System.lineSeparator(), StandardOpenOption.CREATE, StandardOpenOption.APPEND); } catch (IOException e) { e.printStackTrace(); } } return "Votre message à bien été décodé, retrouvez le ici : " + msgClearPath; } else { try { msgClear = Files.readAllLines(msgClearPath); } catch (IOException e) { e.printStackTrace(); } for (String line : msgClear) { try { Files.writeString(msgEncodedPath, transCoder.encodeMsg(line) + System.lineSeparator(), StandardOpenOption.CREATE, StandardOpenOption.APPEND); } catch (IOException e) { e.printStackTrace(); } } return "Votre message à bien été codé, retrouvez le ici : " + msgEncodedPath; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean canDecodeInput(File file) throws IOException;", "String byteOrBooleanRead();", "String byteOrBooleanWrite();", "String encode(File message, File key,File crypted);", "public abstract boolean canDecodeInput(Object source) throws IOException;", "abstract protected boolean read();", "private String parseBoolean () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n char chr=next();//get next character\r\n assert \"ft\".indexOf(chr)>=0;//assert valid boolean start character\r\n switch (chr) {//switch on first character\r\n case 'f': skip(4);//skip to last character\r\n return \"false\";\r\n case 't': skip(3);//skip to last character\r\n return \"true\";\r\n default: assert false;//assert that we do not reach this statement\r\n return null;\r\n }//switch on first character\r\n \r\n }", "public abstract boolean canDecodeInput(BufferedInputStream stream) throws IOException;", "public abstract Object decode(InputStream is) ;", "boolean supportsBinaryInProc();", "public interface MiscEncoderDecoder {\n\n public Object encodeAuthResult(boolean authResult) throws Exception;\n\n public AuthResult decodeAuthResult(String authResultString) throws Exception;\n\n public Object encodeChallengeMessage(String trackingID, String challengeString) throws Exception;\n\n public ProofInfo decodeChallengeMessage(String challengeMessage) throws Exception;\n}", "public EncodeAndDecodeStrings() {}", "boolean deserialize(String inputString);", "public static String decodeMessage(ArrayList<Boolean> data) {\n // get each group of 8 bits and assemble into a byte\n StringBuilder text = new StringBuilder();\n int counter = 0;\n for (int j=0; j<data.size()-11; j=j+9) {\n byte ascii = 0;\n for (int i = 0; i < 10; i++) {\n // DEBUG System.out.print(data.get(i+j) ? \"1\" : \"0\");\n if (data.get(i+j)) {\n ascii = set(ascii, i);\n }\n }\n\n if (!checkParity((int)ascii) == parityChecker.get(counter)) {\n text.append(\"[PARITY ERROR]\");\n } else {\n text.append(Character.toString((char) ascii));\n }\n\n\n // DEBUG System.out.println(\" \" + ascii + \" = \" + text);\n\n counter++;\n }\n return text.toString();\n }", "private boolean isBinary(final String interactionModel, final String contentType,\n final boolean contentPresent, final boolean contentExternal) {\n final String simpleContentType = contentPresent ? contentType : null;\n final boolean isRdfContent = isRdfContentType(simpleContentType);\n return NON_RDF_SOURCE.getURI().equals(interactionModel) || contentExternal ||\n (contentPresent && interactionModel == null && !isRdfContent);\n }", "@attribute(value = \"\", required = false)\t\r\n\tpublic void setBinaryData(Boolean data) {\r\n\t\tthis.binaryFile = data;\r\n\t}", "public boolean load(String file);", "public abstract boolean read_boolean();", "private void encodeMessage() {\n encodedMessage = \"\";\n try(BufferedReader inputBuffer = Files.newBufferedReader(inputPath)) {\n String inputLine;\n while((inputLine = inputBuffer.readLine()) != null) {\n //walks the input message and builds the encode message\n for(int i = 0; i < inputLine.length(); i++) {\n encodedMessage = encodedMessage + codeTable[inputLine.charAt(i)];\n }\n encodedMessage = encodedMessage + codeTable[10];\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //writes to the output file\n try(BufferedWriter outputBuffer = Files.newBufferedWriter(outputPath)) {\n outputBuffer.write(encodedMessage, 0, encodedMessage.length());\n outputBuffer.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void encode(File file) throws FileNotFoundException {\r\n HuffmanTreeCreator huffmanTreeCreator = new HuffmanTreeCreator();\r\n this.file = file;\r\n this.codesMap = huffmanTreeCreator.createCodesMap(huffmanTreeCreator.createHuffmanTree(file));\r\n this.charsQueue = new BlockingCharQueue(charQueueMaxLength);\r\n this.boolQueue = new BlockingBoolQueue(boolQueueMaxLength);\r\n\r\n fileRead = false;\r\n boolRead = false;\r\n charsQueue.setStopThread(false);\r\n boolQueue.setStopThread(false);\r\n\r\n\r\n CharReader charWriter = new CharReader();\r\n BoolReader bollWriter = new BoolReader();\r\n BitWriter bitWriter = new BitWriter();\r\n charWriter.start();\r\n bollWriter.start();\r\n bitWriter.start();\r\n\r\n// try {\r\n// Thread.sleep(4000);\r\n// } catch (InterruptedException e) {\r\n// e.printStackTrace();\r\n// }\r\n// System.out.println(\"Char writer is alive: \" + charWriter.isAlive());\r\n// System.out.println(\"Bool writer is alive: \" + bollWriter.isAlive());\r\n// System.out.println(\"Bit writer is alive: \" + bitWriter.isAlive());\r\n// System.out.println(codesMap);\r\n\r\n try {\r\n charWriter.join();\r\n bollWriter.join();\r\n bitWriter.join();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "boolean readBoolean();", "void notifyEncoderOutput(EncodingProfile format, String message, File... file);", "public boolean isBinaryEncoding()\r\n\t{\r\n\t\treturn binary != null;\r\n\t}", "boolean getBinaryFileAttribute();", "public boolean encode(String path, String original, String ext1,\n String stegan, String message) {\n String file_name = image_path(path, original, ext1);\n BufferedImage image_orig = getImage(file_name);\n\n // user space is not necessary for Encrypting\n BufferedImage image = user_space(image_orig);\n image = add_text(image, message);\n\n return (setImage(\n image,\n new File(image_path(path, stegan, \"png\")),\n \"png\"));\n }", "private byte[] decode(byte[] msg) {\r\n\t\treturn Base64.decode(msg); \r\n\t}", "@SuppressWarnings(\"AccessingNonPublicFieldOfAnotherObject\")\n\t// Accessing final fields of a private inner class that is not exported\n\tprivate void processFile(boolean initial)\n\t{\n\t\tlog(Level.INFO, \"Processing MOTD file \" + f.getPath());\n\t\tBufferedReader in = null;\n\t\tMessage curr = null;\n\t\tfinal LinkedList<Message> stack = new LinkedList<Message>();\n\n\t\ttry\n\t\t{\n\t\t\tin = new BufferedReader(new FileReader(f));\n\n\t\t\twhile (in.ready())\n\t\t\t{\n\t\t\t\tString line = in.readLine().trim();\n\n\t\t\t\tif (line.charAt(0) == '#') continue;\n\t\t\t\tif (line.equals(\"[Message]\"))\n\t\t\t\t{\n\t\t\t\t\tif (curr != null) stack.push(curr);\n\t\t\t\t\tcurr = new Message();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (curr == null) continue;\n\t\t\t\tint div = line.indexOf('=');\n\t\t\t\tif (div == -1) continue;\n\n\t\t\t\tString field = line.substring(0,div).toLowerCase();\n\t\t\t\tString value = line.substring(div+1);\n\n\t\t\t\tif (field.equals(\"id\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.id = Integer.parseInt(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (initial) continue; // We only care for ids in initial pass\n\t\t\t\tif (field.equals(\"active\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.active = Boolean.valueOf(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"title\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.title = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"short\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mshort = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"long\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mlong = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"from\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.from = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"to\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.to = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"posterid\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_uid = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"postername\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_name = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"showunix\")) continue;\n\n\t\t\t\tlog(Level.WARNING, \"Unknown Field '\" + field + \"'\");\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tlog(Level.WARNING, ex);\n\t\t}\n\t\tcatch (Throwable ex)\n\t\t{\n\t\t\tlog(Level.SEVERE, ex.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch (IOException ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\tif (curr != null) stack.push(curr);\n\t\tlastModified = f.lastModified();\n\n\t\tif (initial)\n\t\t{\n\t\t\tif (stack.size() > 0) lastId = stack.getLast().id;\n\t\t\treturn;\n\t\t}\n\t\tfor (Message m : stack)\n\t\t{\n\t\t\tif (m.id > lastId)\n\t\t\t{\n\t\t\t\tlog(Level.INFO, \"Sending MOTD Notice #\" + m.id);\n\t\t\t\tgetInstance().message(channel, m.toString());\n\t\t\t\tlastId = m.id;\n\t\t\t}\n\t\t}\n\t}", "public boolean readDataFile();", "public int parse(byte[] data, boolean fromFile)\n { This patch data will come from a file or transmitted over sysex.\n // FROMFILE indicates that the parse is from a sysex file.\n //\n // You should parse it into the model and return one of:\n // - PARSE_SUCCEEDED if successful,\n // - PARSE_SUCCEEDED_UNTITLED if successful, but we don't want the patch's \n // filename to be updated to reflect the loaded file.\n // - PARSE_CANCELLED if the user cancelled the parsing process (this would only \n // make sense for certain interactive parsing mechanisms, and only certain\n // synths would have it) and the patch was not modified.\n // - PARSE_FAILED if the parse failed -- we assume this means that you did not modify\n // the editor data, or reverted it.\n // - PARSE_INCOMPLETE if the parse was successful but not complete enough to assume \n // that we have a full patch. This is used as follows. For example, a Yamaha 4-op\n // synthesizer needs up to four separate sysex messages before a patch is complete,\n // and you may not have received all of them in this data dump. You should in this case\n // return PARSE_INCOMPLETE, and only return PARSE_SUCCEEDED when all the messages have\n // arrived sufficient to declare the model finished.\n // - PARSE_IGNORE if the data wholely contains sysex messages that serve no purpose.\n // In some cases (such as the ASM Hydrasynth) these messages cannot be easily filtered\n // out at the recognition stage.\n //\n // IMPORTANT NOTE. While parse(...) has been called, sendMIDI has been switched\n // OFF so you can update widgets without them sending out MIDI updates. However it\n // is occasionally the case that you are required to send a MIDI message to the synth\n // to get it to send the next chunk of data to you (and also in this case you'd return\n // PARSE_INCOMPLETE probably). To do this, you can:\n // boolean sendMIDI = getSendMIDI();\n // setSendMIDI(true);\n // *** send your message here ***\n // setSendMIDI(sendMIDI);\n //\n return PARSE_FAILED; \n }", "public interface Encoding {\n String encode(String encodeValue);\n String decode(String encodedValue);\n}", "private String decodeFile(String encodedFileName, int bit) throws Exception{\r\n\r\n\t\tdouble maxSize = Math.pow(2, bit);\r\n\r\n\t\t//InputStream and Reader to read the encoded file\r\n\t\tInputStream fileEncoded = new FileInputStream(encodedFileName);\r\n\t\tReader reader = new InputStreamReader(fileEncoded,\"UTF-16BE\");\r\n\t\tReader br = new BufferedReader(reader);\r\n\t\tint tableSize = 255;\r\n\r\n\t\tList<Integer> encodedList = new ArrayList<Integer>();\r\n\t\tdouble fileData = 0;\r\n\t\twhile((fileData = br.read())!=-1){\r\n\t\t\tencodedList.add((int)fileData);\r\n\t\t}\r\n\t\tbr.close();\r\n\r\n\t\t//Map to store the Character in a HashMap and then compare it to check the key or Value\r\n\t\tMap<Integer, String> charTable = new HashMap<Integer,String>();\r\n\t\tfor(int i =0; i<=255;i++){\r\n\t\t\tcharTable.put( i, \"\" + (char)i);\r\n\t\t}\r\n\t\t//Implementing the LZW algorithm\r\n\t\tString encodeValue = encodedList.get(0).toString();\r\n\t\tStringBuffer decodedStringBuffer = new StringBuffer();\r\n\r\n\t\tfor (int key:encodedList) {\r\n\r\n\t\t\tString value = \"\";\r\n\t\t\tif (charTable.containsKey(key))\r\n\t\t\t{\t//Storing the string from the HashMap to value\r\n\t\t\t\tvalue = charTable.get(key);\r\n\t\t\t}\r\n\t\t\telse if (key == tableSize)\r\n\t\t\t{//Append if key==tablesize to value\r\n\t\t\t\tvalue = encodeValue + encodeValue.charAt(0);\r\n\t\t\t}\r\n\t\t\tdecodedStringBuffer.append(value);\r\n\r\n\t\t\tif(tableSize < maxSize )\r\n\t\t\t{\t//If not present then checking tablesize with maxsize and adding into the HashMap\r\n\t\t\t\tcharTable.put(tableSize++, encodeValue + value.charAt(0));\r\n\t\t\t}\r\n\t\t\tencodeValue = value;\r\n\t\t}\r\n\t\t//Return the decodedStringBuffer which contains the decoded values\r\n\t\treturn decodedStringBuffer.toString();\r\n\t}", "private static void decode(String encodeFilename, String decodeFilename) {\n ObjectReader reader = new ObjectReader(encodeFilename); // create an ObjectReader object\n BinaryTrie binaryTrie = (BinaryTrie) reader.readObject(); // read the Huffman encoding trie from encoded file\n int numSymbols = (int) reader.readObject(); // read the number of symbols\n BitSequence allBitsequences = (BitSequence) reader.readObject(); // read the single huge encoded Bitsequence\n\n char[] chars = new char[numSymbols]; // create a char array to store all the decoded symbols\n int readBits = 0; // count the read bits\n for (int i = 0; i < numSymbols; i++) { // repeat until there are no symbols\n // create a new Bitsequence containing the remaining unmatched bits\n BitSequence remainingBits = allBitsequences.allButFirstNBits(readBits);\n Match m = binaryTrie.longestPrefixMatch(remainingBits); // find a longest prefix match on the Bitsequence\n chars[i] = m.getSymbol(); // add the matched symbol to the chars array\n readBits += m.getSequence().length();\n }\n\n writer(decodeFilename, chars); // write the symbol array into the given file decodeFilename\n }", "public Boolean isEncoded() {\n return this.encoded;\n }", "byte[] encode(IMessage message) throws IOException;", "private void isAudio(MultipartFile file) {\n\t\t\n\t}", "public T transform(String str, byte[] bArr, AjaxStatus ajaxStatus) {\n T t;\n T t2;\n String str2;\n T t3 = null;\n if (this.type == null) {\n return null;\n }\n T file = ajaxStatus.getFile();\n if (bArr != 0) {\n if (this.type.equals(Bitmap.class)) {\n return BitmapFactory.decodeByteArray(bArr, 0, bArr.length);\n }\n if (this.type.equals(JSONObject.class)) {\n try {\n str2 = new String(bArr, this.encoding);\n try {\n t2 = (JSONObject) new JSONTokener(str2).nextValue();\n } catch (Exception e) {\n e = e;\n }\n } catch (Exception e2) {\n e = e2;\n str2 = null;\n AQUtility.debug((Throwable) e);\n AQUtility.debug((Object) str2);\n t2 = null;\n return t2;\n }\n return t2;\n } else if (this.type.equals(JSONArray.class)) {\n try {\n t = (JSONArray) new JSONTokener(new String(bArr, this.encoding)).nextValue();\n } catch (Exception e3) {\n AQUtility.debug((Throwable) e3);\n t = null;\n }\n return t;\n } else if (this.type.equals(String.class)) {\n if (ajaxStatus.getSource() == 1) {\n AQUtility.debug((Object) \"network\");\n t3 = correctEncoding(bArr, this.encoding, ajaxStatus);\n } else {\n AQUtility.debug((Object) IDataSource.SCHEME_FILE_TAG);\n try {\n t3 = new String(bArr, this.encoding);\n } catch (Exception e4) {\n AQUtility.debug((Throwable) e4);\n }\n }\n return t3;\n } else if (this.type.equals(byte[].class)) {\n return bArr;\n } else {\n Transformer transformer2 = this.transformer;\n if (transformer2 != null) {\n return transformer2.transform(str, this.type, this.encoding, bArr, ajaxStatus);\n }\n Transformer transformer3 = st;\n if (transformer3 != null) {\n return transformer3.transform(str, this.type, this.encoding, bArr, ajaxStatus);\n }\n }\n } else if (file != null) {\n if (this.type.equals(File.class)) {\n return file;\n }\n if (this.type.equals(XmlDom.class)) {\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n T xmlDom = new XmlDom((InputStream) fileInputStream);\n ajaxStatus.closeLater(fileInputStream);\n return xmlDom;\n } catch (Exception e5) {\n AQUtility.report(e5);\n return null;\n }\n } else if (this.type.equals(XmlPullParser.class)) {\n T newPullParser = Xml.newPullParser();\n try {\n FileInputStream fileInputStream2 = new FileInputStream(file);\n newPullParser.setInput(fileInputStream2, this.encoding);\n ajaxStatus.closeLater(fileInputStream2);\n return newPullParser;\n } catch (Exception e6) {\n AQUtility.report(e6);\n return null;\n }\n } else if (this.type.equals(InputStream.class)) {\n try {\n T fileInputStream3 = new FileInputStream(file);\n ajaxStatus.closeLater(fileInputStream3);\n return fileInputStream3;\n } catch (Exception e7) {\n AQUtility.report(e7);\n }\n }\n }\n return null;\n }", "public static void decode(File fIn) throws IOException {\n\t\tdecode(fIn, fIn, true);\n\t}", "@Override\n\tpublic boolean readBoolean() throws IOException {\n\t\treturn ( (_buff.get() & 0xFF) != 0 );\n\t}", "private boolean fileIsInTextFormat(byte[] fileBytesToVerify) {\r\n\r\n\t\tboolean isOk = false;\r\n\t\tTika tka = new Tika();\r\n\t\t\r\n\t\tisOk = tka.detect(fileBytesToVerify).equalsIgnoreCase(\"text/html\");\r\n\r\n\t\tif (this.debug) {\r\n\t\t\tprintln(isOk + \" found in fileIsInTextFormat in TextToAudioFile\");\r\n\t\t\tprintln(\"Contents of text file returned...\");\r\n\t\t\ttry {\r\n\t\t\t\tprintln(new String(fileBytesToVerify, \"UTF-8\"));\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn isOk;\r\n\t}", "public byte[] readRawBool() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BOOL.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }", "private boolean fileIsAnMp3Format(byte[] fileBytesToVerify) {\r\n\r\n\t\tboolean isOk = false;\r\n\t\tTika tk = new Tika();\r\n\r\n\t\tisOk = tk.detect(fileBytesToVerify).equalsIgnoreCase(\"audio/mpeg\");\r\n\r\n\t\tif (this.debug) {\r\n\t\t\tprintln(isOk + \" found in fileIsAnMp3Format in TextToAudioFile\");\r\n\t\t}\r\n\r\n\t\treturn isOk;\r\n\t}", "@Override\n\tpublic boolean setFileType(int binaryFileType) {\n\t\treturn true;\n\n\t}", "@Override\n\tpublic boolean willDecode(String jsonMessage) {\n\t\ttry {\n\t\t\t// Check if incoming message is valid JSON\n\t\t\tJson.createReader(new StringReader(jsonMessage)).readObject();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public abstract byte[] encode () throws IOException;", "public static Term mime_decode_1(Binary base64) {\n return Binary.of(Base64.getMimeDecoder().decode(base64.toByteArray()));\n }", "public static void decode(File fIn, File fOut) throws IOException {\n\t\tdecode(fIn, fOut, true);\n\t}", "abstract boolean parse ();", "public HashMap<String, Boolean> surveySystemRelease(String path, LgMessageDirectorIF messages) {\r\n BufferedReader in = null;\r\n XMLStreamReader xmlStreamReader;\r\n \r\n //initialize to false\r\n HashMap<String, Boolean> systemReleaseSurvey = new HashMap<String, Boolean>();\r\n systemReleaseSurvey.put(CODING_SCHEMES,false);\r\n systemReleaseSurvey.put(VALUE_SETS,false);\r\n systemReleaseSurvey.put(PICK_LISTS,false);\r\n try {\r\n in = new BufferedReader(new FileReader(path));\r\n \r\n xmlStreamReader = XMLInputFactory.newInstance().createXMLStreamReader(in);\r\n \r\n for (int event = xmlStreamReader.next(); event != XMLStreamConstants.END_DOCUMENT; event = xmlStreamReader\r\n .next()) {\r\n \r\n if (event == XMLStreamConstants.START_ELEMENT && xmlStreamReader.getLocalName().equals(CODING_SCHEMES)) {\r\n systemReleaseSurvey.put(CODING_SCHEMES,Boolean.TRUE);\r\n }\r\n if (event == XMLStreamConstants.START_ELEMENT && xmlStreamReader.getLocalName().equals(VALUE_SETS)) {\r\n systemReleaseSurvey.put(VALUE_SETS,Boolean.TRUE);\r\n }\r\n if (event == XMLStreamConstants.START_ELEMENT && xmlStreamReader.getLocalName().equals(PICK_LISTS)) {\r\n systemReleaseSurvey.put(PICK_LISTS,Boolean.TRUE);\r\n break;\r\n }\r\n }\r\n xmlStreamReader.close();\r\n in.close();\r\n } catch (XMLStreamException e) {\r\n messages.error(\"While streaming file at \" + path + \"an error occured\");\r\n e.printStackTrace();\r\n } catch (FactoryConfigurationError e) {\r\n messages.error(\"While streaming file at \" + path + \"a streaming xml configuration error occured\");\r\n e.printStackTrace();\r\n } catch (FileNotFoundException e) {\r\n messages.error(\"Problem reading file at: \" + (path == null? \"path appears to be null\": path));\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n messages.error(\"IO Problem reading file at: \" + (path == null? \"path appears to be null\": path));\r\n e.printStackTrace();\r\n }\r\n return systemReleaseSurvey;\r\n }", "public boolean parse(ByteBuffer byteBuffer);", "void encode(ByteBuffer buffer, Message message);", "public interface ExtraEncoding {\n \n /**\n * Converts an Unicode string to a byte array according to some encoding.\n * @param text the Unicode string\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(String text, String encoding);\n \n /**\n * Converts an Unicode char to a byte array according to some encoding.\n * @param char1 the Unicode char\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(char char1, String encoding);\n \n /**\n * Converts a byte array to an Unicode string according to some encoding.\n * @param b the input byte array\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */\n public String byteToChar(byte b[], String encoding); \n}", "public void setBinary() throws IOException {\n boolean r = super.setFileType(BINARY_FILE_TYPE);\n if (!r) {\n throw new FTPException(getReplyCode());\n }\n }", "@Override\n protected Message receiveMessage() throws IOException {\n String encoded = this.din.readUTF();\n this.lastMessage = new Date();\n String decodedXml = new String(\n DatatypeConverter.parseBase64Binary(encoded));\n\n return Message.msgFromXML(decodedXml);\n }", "public static void decode(File fIn, boolean throwExceptions) throws IOException {\n\t\tdecode(fIn, fIn, throwExceptions);\n\t}", "void setBinaryFileAttribute(boolean flag);", "Object decode(String encoded);", "public boolean readBool() throws IOException {\n return in.readBoolean();\n }", "@Override\n public boolean getContentBinary() throws WebdavException {\n return false;\n }", "public boolean load(final AudioFile file) {\n\t\tif (file == null || file.path.equals(\"\"))\n\t\t\tthrow new IllegalArgumentException(\"Music parameter is null or the path is invalid\");\n\n\t\taudioFile = file;\n\t\tAudioInputStream inputStream;\n\t\t\n\t\t// TODO Would it be better to throw exceptions ?\n\t\ttry {\n\t\t\tinputStream = AudioUtils.getAudioFileStream(currentClip.getFormat(), file.path);\n\t\t} catch (Exception e1) {\n\t\t\tLog.error(\"Exception during audio file decoding : \" + e1.getMessage());\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tclose();\n\t\t\tcurrentClip.open(inputStream);\n\t\t\treturn true;\n\t\t} catch (LineUnavailableException e) {\n\t\t\tLog.error(\"Unavailable output peripheral\");\n\t\t} catch (IllegalStateException e) {\n\t\t\tLog.error(\"The player can't be stopped\");\n\t\t} catch (IOException e) {\n\t\t\tLog.error(\"Problem duraing file input / output\");\n\t\t} catch (NullPointerException e) {\n\t\t\tLog.error(\"AudioPlayer missing file \" + file.path);\n\t\t}\n\t\treturn false;\n\t}", "T decode1(DataBuffer buffer);", "public boolean sendFile(String inKey, File inFile) throws NuxeoException;", "public StrBool(String zipped, ArrayList<Files> contents, boolean success){\r\n\t\tfrom = zipped;\r\n\t\tto = contents;\r\n\t\tstatus = success;\r\n\t}", "public ParsedMessage parseMessageContents(Message message, boolean openImages) {\n\n\tString messageContents = \"\";\n\tList<OpenImageWorker> imageWorkers = new LinkedList<>();\n\t\n\ttry {\n\t if (message.getContentType().contains(\"TEXT/PLAIN\")) {\n\t\tmessageContents = (message.getContent().toString());\n\t } else {\n\t\t//Message type is multipart\n\t\tMultipart multipart = (Multipart) message.getContent();\n\t\t\n\t\t\n\t\tfor (int i = 0; i < multipart.getCount(); i++) {\n\t\t //For each part of the message if it's plain text then add that to the text area otherwise log an unrecongized part.\n\t\t BodyPart bodyPart = multipart.getBodyPart(i);\n\t\t if (bodyPart.getContentType().contains(\"TEXT/PLAIN\")) {\n\t\t\tmessageContents += bodyPart.getContent().toString();\n\t\t } else if(bodyPart.getContentType().contains(\"IMAGE/JPEG\")){\n\t\t\t\n\t\t\tif(openImages){\n\t\t\t OpenImageWorker openImageWorker = new OpenImageWorker(bodyPart.getContent());\n\t\t\t imageWorkers.add(openImageWorker);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t }\n\t\t else {\n\t\t\tSystem.out.println(\"Unrecognised content type \" + bodyPart.getContentType());\n\t\t }\n\t\t}\n\t }\n\t} catch (MessagingException | IOException e) {\n\t messageContents = (e.toString());\n\t}\n\t\n\treturn new ParsedMessage(messageContents, imageWorkers);\n }", "boolean isBinary();", "GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;", "private static void decode() throws IOException{\n File file = new File(_encodedBinFile);\n String longStringAsFile;\n \n //DataInputStream dis;\n FileWriter w;\n try {\n //dis = new DataInputStream(new FileInputStream(file));\n longStringAsFile = getLongStringAsFile();\n //dis.close();\n w = new FileWriter(\"decoded.txt\");\n Node traverser = root;\n for(int i=0; i < longStringAsFile.length(); i++){\n if(longStringAsFile.charAt(i) == '0'){\n //go to left\n if (traverser.getLeftPtr() == null){\n //fallen off the tree. Print to file\n if (i == longStringAsFile.length() - 1 ){\n w.write(((LeafNode)traverser).getData());\n }\n else{\n w.write(((LeafNode)traverser).getData() + \"\\n\");\n traverser = root.getLeftPtr();\n }\n }\n else{\n traverser = traverser.getLeftPtr();\n }\n }\n else{\n //go to right of tree\n if (traverser.getRightPtr() == null){\n //fallen off the tree. PRint to file\n if (i == longStringAsFile.length() - 1){\n w.write(((LeafNode)traverser).getData() );\n }\n else{\n w.write(((LeafNode)traverser).getData() + \"\\n\");\n traverser = root.getRightPtr();\n }\n\n }\n else{\n traverser = traverser.getRightPtr();\n }\n }\n \n }\n //dis.close();\n w.close();\n } catch (IOException ex) {\n Logger.getLogger(decoder.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public boolean requiresCustomCodec()\n/* */ {\n/* 498 */ return false;\n/* */ }", "@Override\n\tpublic void decodeMsg(byte[] message) {\n\t\t\n\t\tIoBuffer buf = IoBuffer.allocate(message.length).setAutoExpand(true);\n\t\tbuf.put(message);\n\t\tbuf.flip();\n\t\t\n\t\tslaveId = buf.get();\n\t\tcode = buf.get();\n\t\toffset = buf.getShort();\n\t\tdata = buf.getShort();\n\n\t\tif(buf.remaining() >= 2)\n\t\t\tcrc16 = buf.getShort();\n\t}", "protected boolean applyTypeToFile(FileType t, TypedFile f) {\r\n\tif (t.testFile(f)) {\r\n\t f.setType(t);\r\n\t return true;\r\n\t}\r\n\treturn false;\r\n }", "public interface Encoding {\n\t/**\n\t * Encoding a string.\n\t * \n\t * @param source\n\t * @return The encoded string\n\t * @throws Exception\n\t */\n\tpublic String encode(String source) throws Exception;\n\n\t/**\n\t * Decoding a string.\n\t * \n\t * @param source\n\t * @return The decoded string\n\t * @throws Exception\n\t */\n\tpublic String decode(String source) throws Exception;\n\n}", "private void setCorrectCodec() {\n try {\n getDataNetworkHandler().setCorrectCodec();\n } catch (FtpNoConnectionException e) {\n }\n }", "public WritableMp3File(String arg0, boolean arg1) throws IOException,\n UnsupportedTagException, InvalidDataException {\n super(arg0, arg1);\n // TODO Auto-generated constructor stub\n }", "interface MessageEncoder\r\n{\r\n\tString encode();\t\r\n}", "public boolean convertAudioTypeToDefault();", "public ArrayList<Blob> parseMessage(ArrayList<String> tokenizedMessageContent,\n List<Character> validCharFlags,\n List<String> validStrFlags,\n List<String> linkPrefix,\n String emojiFlag,\n Map<String, String[]> markToHtml){\n\n Hashtable<String, Blob> customEmojis = new Hashtable<String, Blob>();\n ArrayList<Blob> customEmojisToReturn = new ArrayList<Blob>();\n if (emojiStore != null){\n customEmojis = emojiStore.getEmojiTable();\n }\n\n for (int i = 0; i < tokenizedMessageContent.size(); i++){\n if (validStrFlags.contains(tokenizedMessageContent.get(i))){\n for (int j = tokenizedMessageContent.size() - 1; j > i; j--){\n if(tokenizedMessageContent.get(i).equals(tokenizedMessageContent.get(j))){\n String mark = tokenizedMessageContent.get(i);\n tokenizedMessageContent.set(i, markToHtml.get(mark)[0]);\n tokenizedMessageContent.set(j, markToHtml.get(mark)[1]);\n break;\n }\n }\n }\n if (emojiFlag.equals(tokenizedMessageContent.get(i))){\n String shortcode = \"\";\n Boolean validSyntax = false;\n int j;\n // finds the next emojiFlag, marking the end of the shortcode\n for (j = i+1; j < tokenizedMessageContent.size(); j++){\n if(emojiFlag.equals(tokenizedMessageContent.get(j))){\n validSyntax = true;\n break;\n }\n else{\n shortcode += tokenizedMessageContent.get(j);\n }\n }\n // if there was a closing emojiFlag and the shortcode is valid\n // then replace the shortcode and flags with emoji html code\n\n // adds custom emoji to arraylist and '|' char to mark location\n // of the custom emoji\n if(validSyntax && customEmojis.containsKey(shortcode)){\n customEmojisToReturn.add(customEmojis.get(shortcode));\n tokenizedMessageContent.set(i, \"|\");\n for (int k = j; k > i; k--){\n tokenizedMessageContent.remove(k);\n }\n }\n\n // inserts the code corresponding to the native emoji shortcode\n else if (validSyntax && validEmojis.containsKey(shortcode)){\n tokenizedMessageContent.set(i, validEmojis.get(shortcode));\n for (int k = j; k > i; k--){\n tokenizedMessageContent.remove(k);\n }\n }\n\n }\n if (linkPrefix.contains(tokenizedMessageContent.get(i))){\n // if a link prefix is found, find the next ' ' space character\n // marking the end of the link, and insert the proper html syntax\n tokenizedMessageContent.add(i, markToHtml.get(\"LINK\")[0]);\n for (int j = i+1; j < tokenizedMessageContent.size(); j++){\n if (tokenizedMessageContent.get(j).equals(\" \") ||\n j == tokenizedMessageContent.size()-1){\n if (tokenizedMessageContent.get(j).equals(\" \")){\n j--;\n }\n String linkContents = \"\";\n for (int k = i+1; k < j+1; k++){\n linkContents += tokenizedMessageContent.get(k);\n }\n tokenizedMessageContent.add(j+1, markToHtml.get(\"LINK\")[1] +\n linkContents + markToHtml.get(\"LINK\")[2]);\n i++;\n break;\n }\n }\n }\n }\n return customEmojisToReturn;\n }", "public String decode(String codedMessage) {\n StringBuilder result = new StringBuilder(); //Create a new stringbuilder\n BinaryTree<HuffData> currentTree = huffTree; //Get the Huffman Tree\n for (int i = 0; i < codedMessage.length(); i++) { //Loop through the coded message\n //If the character is a 1, set currentTree to the right subtree\n if(codedMessage.charAt(i) == '1') { \n currentTree = currentTree.getRightSubtree();\n } else { //If the character is a 0, set currentTree to the left subtree\n currentTree = currentTree.getLeftSubtree();\n }\n if(currentTree.isLeaf()) { //Once you hit a leaf\n HuffData theData = currentTree.getData(); //Get the data of the leaf\n result.append(theData.symbol); //Append the symbol to the stringbuilder\n currentTree = huffTree; //Reset the currentTree to be the entire tree\n }\n }\n //Return the string of the stringbuilder\n return result.toString();\n }", "public abstract boolean Load();", "public void imageSaveControl(byte[] readByte, SocketChannel client,int userNumber){\n\t\ttry{\n\t\t\tString dirtyResult = new String(readByte,\"ISO-8859-1\");\n\t\t\tif(dirtyResult.contains(\"ULMImg\")){\t\t\t\t\t\t\n\t\t\t\tSystem.out.println(\"userNumber = \" + userNumber);\n\t\t\t\tUsers[userNumber].setIsFile(true);\n\t\t\t\tint l = (\"ULMImg\" + c.STATEND).length();\n\t\t\t\tint position = dirtyResult.indexOf(\"ULMImg\");\n\t\t\t\tString remain = dirtyResult.substring(position + l);\n\t\t\t\tif(remain.length() > 0){\n\t\t\t\t\tSystem.out.println(\"^^^^^\");\n\t\t\t\t\tbyte [] remains = remain.getBytes(\"ISO-8859-1\");\n\t\t\t\t\tsaveImage(userNumber,remains);\n\t\t\t\t\tbyte another[] = dirtyResult.substring(0,position).getBytes(\"ISO-8859-1\");\n\t\t\t\t\tif(another.length > 0){\n\t\t\t\t\t\tprepareParse(another,client,userNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(dirtyResult.contains(\"SMImgD\")){\t\t\t\t\n\t\t\t\tUsers[userNumber].setIsFile(false);\n\t\t\t\tUsers[userNumber].setIsFileSended(true);\n\t\t\t\tint l = (\"SMImgD\" + c.STATEND).length();\n\t\t\t\tint position = dirtyResult.indexOf(\"SMImgD\");\n\t\t\t\tString remain = dirtyResult.substring(0,position);\n\t\t\t\tif(remain.length() > 0){\n\t\t\t\t\tSystem.out.println(\"vvvvv\");\n\t\t\t\t\tbyte [] remains = remain.getBytes(\"ISO-8859-1\");\n\t\t\t\t\tsaveImage(userNumber,remains);\n\t\t\t\t\tbyte another[] = dirtyResult.substring(position + l).getBytes(\"ISO-8859-1\");\n\t\t\t\t\tif(another.length > 0){\n\t\t\t\t\t\tprepareParse(another,client,userNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(Users[userNumber].imgTempNum != -1){\t\t\t\t\t\t//image can't be null\n\t\t\t\t\tSystem.out.println(\"imagesize:\" + imgTemps[Users[userNumber].imgTempNum].getTempLength());\n\t\t\t\t\ttry{\t\t\t\t\t\t\t\t\t\t\t\t\t//save to disk\n\t\t\t\t\t\tFile fWrite = new File(c.imagepath + Users[userNumber].getId() + \".PNG\");\n\t\t\t\t\t\tFileOutputStream out = new FileOutputStream(fWrite);\n\t\t\t\t\t\tout.write(imgTemps[Users[userNumber].imgTempNum].getNewFiles(),0,imgTemps[Users[userNumber].imgTempNum].getTempLength());\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\t\tif(c.debug){\te.printStackTrace();}\n\t\t\t\t\t}\n\t\t\t\t\timgTemps[Users[userNumber].imgTempNum].userNumber = -1;\n\t\t\t\t\timgTemps[Users[userNumber].imgTempNum].newFiles = null;\t\n\t\t\t\t\timgTemps[Users[userNumber].imgTempNum].setTempLength(0);\n\t\t\t\t}\n\t\t\t\tUsers[userNumber].setIsFile(false);\n\t\t\t\tUsers[userNumber].setIsFileSended(true);\n\t\t\t\tString result = \"setIsFileSended;true\";\n\t\t\t\tc.sendInforBack(client,result);\n\t\t\t}\n\n\t\t\tif(Users[userNumber].getIsFile()){\t\t\t\t\t\t\t\t\n\t\t\t\tif((!dirtyResult.contains(\"ULMImg\")) && (!dirtyResult.contains(\"SMImgD\"))) {\n\t\t\t\t\tsaveImage(userNumber,readByte);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t\tif(c.debug){\te.printStackTrace();}\n\t\t}\n\t}", "public interface ObjMessageIF extends Serializable {\n\n public boolean hasMsgId();\n\n public long getMsgId();\n\n void setMsgId(long msgId);\n\n boolean isResponse();\n\n void setResponse(boolean isReponse);\n\n boolean isError();\n\n void setError(boolean isError);\n\n}", "public byte[] fromMessage(Message message) throws IOException, JMSException;", "public boolean readBoolean() throws IOException {\n boolean bool = fDataInputStream.readBoolean();\n DebugLog.stdoutPrintln(\"Connection marshalling boolean \" + \n bool, DebugLog.BSF_LOG_L3);\n return bool;\n\t}", "@Override\r\n\tpublic boolean convertFileToUTFFormat(String fileName, String encodeFormat, String newFileName)\r\n\t\t\tthrows FileSystemUtilException {\r\n\t\ttry {\r\n\t\t\treturn new ConvertFiles().convertFileToUTFFormat(fileName, encodeFormat, newFileName);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception::\",e);\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",null,Level.ERROR,e);\t\r\n\t\t}\r\n\t}", "public boolean isSelected(File basedir, String filename, File file) {\n String path;\n InputStream S;\n boolean retv = false;\n\n if (file == null || basedir == null || filename == null) {\n debug(\"isText: some `nil' arguments seen, return `false'\");\n return false;\n }\n\n path = file.getAbsolutePath();\n\n if (file.isDirectory()) {\n debug(\"`\" + path + \"` is a directory, return `false'\");\n return false;\n }\n\n if (!file.canRead()) {\n debug(\"`\" + path + \"` is not readable, return `false'\");\n return false;\n }\n\n S = open(file);\n if (S == null) {\n debug(\"unable to open `\" + path + \"`, return `false'\");\n return false;\n }\n\n try {\n retv = istext(S, this.limit);\n debug(\"istext('\" + path + \"') = \" + retv);\n retv = this.invert ? !retv : retv;\n } catch (Exception e) {\n debug(\"error while reading from `\" + path + \"`\", e);\n } finally {\n if (!close(S))\n debug(\"unable to close `\" + path + \"` (error ignored).\");\n }\n return retv;\n }", "private void setIsBinary(boolean value) {\r\n\t \t_isBinary = value;\r\n\t }", "public int uncompress(InputStream in, OutputStream out) throws IOException { \n int codeCount = 0;\n int code = 0;\n BitInputStream bitIn = new BitInputStream(in);\n StringBuilder codeString = new StringBuilder(0);\n\n\n // *** Bellow for building array of encoded values ****\n // ****************************************************\n // If the first character in the file is not a space, cannot decompress file\n codeCount = in.read();\n if(codeCount != 32){\n bitIn.close();\n return -1;\n }\n // Read in length of the code, then read the codes number of bits into the code array\n for (int i = 0; i < decodeArr.length; i++) {\n //read in number of bits (length of character code) \n codeCount = bitIn.read();\n \n // Create the code string (reads the number of bits found above)\n for (int j = 0; j < codeCount ; j++) {\n codeString.append(bitIn.readBits(1));\n }\n // Add the code string to the code array\n decodeArr[i] = codeString.toString();\n codeString = new StringBuilder(0);\n }\n // If the character has no code, make it null in array\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i].equals(\"0\")){decodeArr[i] = null;}\n }\n // ****************************************************\n // ****************************************************\n\n\n // ********** Bellow is the decoding process **********\n // ****************************************************\n // Slowly build a sting of binary comparing it to the codes in the map\n // Once a match is found, output the character associated with it.\n try{\n codeString = new StringBuilder(0);\n while (true) { \n // Read in one bit\n code = bitIn.readBits(1);\n // If -1 is returned, reached the end of file\n if(code == -1){break;}\n // Search the code array, writing the character of the code when found\n codeString.append(String.valueOf(code));\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i] != null){ // null means 0 count for a character\n // If the building code string matches a code in the map, write the associated character\n if(decodeArr[i].equals(codeString.toString())){\n out.write(i);\n // vv make ready for next code input\n codeString = new StringBuilder(0);\n }\n }\n }\n }\n }catch (IOException e){\n bitIn.close();\n throw e;\n }\n // ****************************************************\n // ****************************************************\n bitIn.close();\n return 0;\n }", "public static void main(String[] args) {\n\n /** Reading a message from the keyboard **/\n // @SuppressWarnings(\"resource\")\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Please enter a message to be encoded: \");\n // String inputString = scanner.nextLine();\n //\n // System.out.println(\"Please enter the code length: \");\n // String codeLen = scanner.nextLine();\n // int num = Integer.parseInt(codeLen);\n // Encode encodeThis = new Encode(inputString, num);\n // encodeThis.createFrequencyTable();\n // encodeThis.createPriorityQueue();\n // while (encodeThis.stillEncoding()) {\n // encodeThis.build();\n // }\n // String codedMessage = encodeThis.getEncodedMessage();\n // /** Printing message to the screen **/\n // System.out.println(codedMessage);\n\n /** Reading message from a file **/\n ArrayList<String> info = new ArrayList<String>();\n try {\n File file = new File(\"/Users/ugoslight/Desktop/message.txt\");\n Scanner reader = new Scanner(file);\n\n while (reader.hasNextLine()) {\n String data = reader.nextLine();\n info.add(data);\n }\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found.\");\n e.printStackTrace();\n }\n\n /** Encoding message from file **/\n Encode encodeThis = new Encode(info.get(0), Integer.parseInt(info.get(1)));\n encodeThis.createFrequencyTable();\n encodeThis.createPriorityQueue();\n while (encodeThis.stillEncoding()) {\n encodeThis.build();\n }\n String codedMessage = encodeThis.getEncodedMessage();\n /** Create new file **/\n try {\n File myObj = new File(\"/Users/ugoslight/Desktop/filename.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n /** Write to file **/\n try {\n FileWriter myWriter = new FileWriter(\"/Users/ugoslight/Desktop/filename.txt\");\n myWriter.write(codedMessage);\n myWriter.close();\n System.out.println(\"Successfully wrote to the file.\");\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n\n\n }", "public boolean mo211b(File file) {\n FileInputStream fileInputStream;\n byte[] b;\n int a;\n try {\n fileInputStream = new FileInputStream(file);\n try {\n b = C0136bu.m820b((InputStream) fileInputStream);\n } catch (Throwable th) {\n th = th;\n }\n try {\n C0136bu.m821c(fileInputStream);\n byte[] a2 = C0069ba.this.f264i.mo201a(b);\n if (a2 == null) {\n a = 1;\n } else {\n a = C0069ba.this.m293a(a2);\n }\n if (!C0069ba.this.f267l && a == 1) {\n return false;\n }\n return true;\n } catch (Exception e) {\n return false;\n }\n } catch (Throwable th2) {\n th = th2;\n fileInputStream = null;\n C0136bu.m821c(fileInputStream);\n throw th;\n }\n }", "public static void decode(File fIn, File fOut, boolean throwExceptions) throws IOException {\n\t\tFile temp = null;\n\t\tInputStream in = null;\n\t\tOutputStream out = null;\n\t\ttry {\n\t\t\tin = new BufferedInputStream(new FileInputStream(fIn));\n\t\t\ttemp = File.createTempFile(\"Base64\", null, null);\n\t\t\tout = new BufferedOutputStream(new FileOutputStream(temp));\n\t\t\tdecode(in, out, throwExceptions);\n\t\t\tin.close();\n\t\t\tin = null;\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t\tFileHelper.move(temp, fOut, true);\n\t\t} finally {\n\t\t\tif (in != null){\n\t\t\t\ttry {\n\t\t\t\t\tin.close();\n\t\t\t\t} catch (IOException ignore){\n\t\t\t\t\t if (throwExceptions) throw ignore;\n\t\t\t\t}\n\t\t\t\tin = null;\n\t\t\t}\n\t\t\tif (out != null){\n\t\t\t\ttry {\n\t\t\t\t\tout.flush();\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException ignore){\n\t\t\t\t\t if (throwExceptions) throw ignore;\n\t\t\t\t}\n\t\t\t\tout = null;\n\t\t\t}\n\t\t}\n\t}", "InputStream synthesize(String phrase, OutputFormat fmt) throws IOException;", "public boolean canConvert(String s);", "Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);", "private String convertBoolean(boolean booToConv) {\n\t\tString convText = \"\";\n\t\tif (booToConv) {\n\t\t\tconvText = \"Yes\";\n\t\t} else {\n\t\t\tconvText = \"No\";\n\t\t}\n\t\treturn convText;\n\t}", "public interface ReCompress {\n public boolean reCompress() throws IOException;\n\n public boolean isReCompress() ;\n\n public String getSendFile();\n}", "@Test\n\tpublic void testStringToBoolean() {\n\n\t\t// forwards for yes and no\n\t\tAssert.assertEquals(converter.convertForward(\"Yes\"), new Boolean(true));\n\t\tAssert.assertEquals(converter.convertForward(\"No\"), new Boolean(false));\n\n\t}", "boolean getRead();", "public boolean genStringAsByteArray();", "public boolean setMediaFile(File f)\n\t{\n\t\tif (f != null)\n\t\t{\n\t\t\tString fileType = \"\";\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfileType = Files.probeContentType(f.toPath());\n\t\t\t\tisImage = (fileType.equals(\"image\"));\n\t\t\t\tisAudio = (fileType.equals(\"audio\"));\n\t\t\t\tisVideo = (fileType.equals(\"video\"));\n\t\t\t\tparseValidMediaFile(f);\n\t\t\t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tmediaFile = null;\n\t\t\t\tfileName = \"\";\n\t\t\t\tisImage = isAudio = isVideo = false;\n\t\t\t\tstartTime = 0;\n\t\t\t\tplaybackLength = 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmediaFile = null;\n\t\t\tfileName = \"\";\n\t\t\tisImage = isAudio = isVideo = false;\n\t\t\tstartTime = 0;\n\t\t\tplaybackLength = 0;\n\t\t}\n\t\treturn isImage || isAudio || isVideo;\n\t}", "private boolean parseBoolean(final byte[] buffer, final int offset) {\n return buffer[offset] == 1;\n }", "private boolean isBinaryMessage(Object anObject) {\n\t\tif(anObject.getClass() == this.getClass()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean getStream();" ]
[ "0.5929413", "0.5628385", "0.53383696", "0.51877207", "0.51101965", "0.50784004", "0.5060873", "0.4999928", "0.48928875", "0.48483726", "0.48176378", "0.478099", "0.46947408", "0.46792683", "0.46458733", "0.46138853", "0.46115616", "0.45793542", "0.45768625", "0.45763683", "0.4561447", "0.45594934", "0.45254079", "0.45227754", "0.4500446", "0.4494782", "0.44725174", "0.44655108", "0.44402477", "0.4436848", "0.4420748", "0.44173917", "0.4413053", "0.44075337", "0.4399268", "0.43578604", "0.43462536", "0.43245426", "0.43245137", "0.43161446", "0.4316072", "0.43119094", "0.43035173", "0.4298057", "0.42872438", "0.42867252", "0.42856428", "0.4259367", "0.425861", "0.4251704", "0.4243035", "0.42421207", "0.42203334", "0.42119715", "0.42118266", "0.4204819", "0.42045686", "0.4196231", "0.41897398", "0.4187259", "0.41808945", "0.417872", "0.41736674", "0.41710317", "0.4166922", "0.41643664", "0.41547382", "0.41536057", "0.41509864", "0.41425434", "0.41406283", "0.41364223", "0.4126343", "0.4122823", "0.41226152", "0.4121234", "0.4120925", "0.41184056", "0.4117718", "0.41129515", "0.41058218", "0.41048056", "0.40894204", "0.4086561", "0.4084773", "0.40829834", "0.40807077", "0.4077369", "0.40752488", "0.406481", "0.40624318", "0.4061629", "0.4053583", "0.40518004", "0.40513438", "0.40507957", "0.40456885", "0.4045231", "0.4036736", "0.40343952" ]
0.50114375
7
Generated by Protege ( Source Class: InputParam
public interface InputParam extends Parameter { /* *************************************************** * Property http://www.semanticweb.org/rami#isEquivalent */ /** * Gets all property values for the isEquivalent property.<p> * * @returns a collection of values for the isEquivalent property. */ Collection<? extends Noun> getIsEquivalent(); /** * Checks if the class has a isEquivalent property value.<p> * * @return true if there is a isEquivalent property value. */ boolean hasIsEquivalent(); /** * Adds a isEquivalent property value.<p> * * @param newIsEquivalent the isEquivalent property value to be added */ void addIsEquivalent(Noun newIsEquivalent); /** * Removes a isEquivalent property value.<p> * * @param oldIsEquivalent the isEquivalent property value to be removed. */ void removeIsEquivalent(Noun oldIsEquivalent); /* *************************************************** * Property http://www.semanticweb.org/rami#isInputTo */ /** * Gets all property values for the isInputTo property.<p> * * @returns a collection of values for the isInputTo property. */ Collection<? extends MethodCall> getIsInputTo(); /** * Checks if the class has a isInputTo property value.<p> * * @return true if there is a isInputTo property value. */ boolean hasIsInputTo(); /** * Adds a isInputTo property value.<p> * * @param newIsInputTo the isInputTo property value to be added */ void addIsInputTo(MethodCall newIsInputTo); /** * Removes a isInputTo property value.<p> * * @param oldIsInputTo the isInputTo property value to be removed. */ void removeIsInputTo(MethodCall oldIsInputTo); /* *************************************************** * Property http://www.semanticweb.org/rami#Label */ /** * Gets all property values for the Label property.<p> * * @returns a collection of values for the Label property. */ Collection<? extends Object> getLabel(); /** * Checks if the class has a Label property value.<p> * * @return true if there is a Label property value. */ boolean hasLabel(); /** * Adds a Label property value.<p> * * @param newLabel the Label property value to be added */ void addLabel(Object newLabel); /** * Removes a Label property value.<p> * * @param oldLabel the Label property value to be removed. */ void removeLabel(Object oldLabel); /* *************************************************** * Common interfaces */ OWLNamedIndividual getOwlIndividual(); OWLOntology getOwlOntology(); void delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ParameterInput extends Input {\n\t\n\t/**\n\t * Returns the metadata of this parameter.\n\t * @return ParameterMetadata\tmetadata\n\t */\n\tpublic ParameterMetadata getMetadata();\n\t\n\t/**\n\t * Returns the parameter value of an option.\n\t * \n\t * @return Object option parameter value\n\t */\n\tpublic Object getValue();\n\t\n\t/**\n\t * Returns the File parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return File file value\n\t */\n\tpublic File getFileValue();\n\t\n\t/**\n\t * Returns the directory parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return File a directory file\n\t */\t\n\tpublic File getDirectoryValue();\n\n\t/**\n\t * Returns the String parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return String string value\n\t */\n\tpublic String getStringValue();\n\t\n\t/**\n\t * Returns the Number parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return Number value\n\t */\n\tpublic Number getNumberValue();\n\t\n}", "Param createParam();", "Param createParam();", "Param createParam();", "private String generate_parameter(int Index, StringBuffer Code, DataType ParamType, String Input)\n {\n String Desc = ParamType.getBaseName();\n String ret = \"\";\n\n if (ParamType.getDimension() == 0)\n {\n // Just a scalar value, simply initialize it at declaration (long integers need an 'L' tagged on)\n if (Desc.equals(\"long\") || Desc.equals(\"Long\"))\n Code.append(\"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \" = \" + Input + \"LL;\\n\");\n else\n Code.append(\"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \" = \" + Input + \";\\n\");\n // end if\n }\n else\n {\n // Arrays need to be converted to vector<type> before passing\n if (Input.equals(\"{}\"))\n {\n Code.append(\"\\t\\t\\t// \" + ParamType.getBaseName().toLowerCase() + \" Arr\" + Index + \"[] = \" + Input + \";\\n\");\n ret += \"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \";\\n\";\n }\n else\n {\n Code.append(\"\\t\\t\\t\" + ParamType.getBaseName().toLowerCase() + \" Arr\" + Index + \"[] = \" + Input + \";\\n\");\n ret += \"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \"(Arr\" + Index + \", Arr\" + Index + \" + (sizeof(Arr\" + Index + \") / sizeof(Arr\" + Index + \"[0])));\\n\";\n }\n }\n // end if\n\n return ret;\n }", "public InputParameterModel putInputParameter()\n {\n\n return createHypermediaURIs(oSQLITEController.putInputParameter( oInputParameter));\n }", "INPUT createINPUT();", "private static String checkInputParamType(InputParam inputParam) {\r\n\t\tString type = inputParam.getType();\r\n\t\tString value = null;\r\n\t\tswitch (type) {\r\n\t\tcase BPConstant.STRING:\r\n\t\t\tvalue = inputParam.getInputParamvalue().getStringValue();\r\n\t\t\tbreak;\r\n\t\tcase BPConstant.BOOLEAN:\r\n\t\t\tvalue = inputParam.getInputParamvalue().getBooleanValue();\r\n\t\t\tbreak;\r\n\t\tcase BPConstant.DATE_TIME:\r\n\t\t\tvalue = inputParam.getInputParamvalue().getDateValue();\r\n\t\t\tbreak;\r\n\t\tcase BPConstant.NUMBER:\r\n\t\t\tvalue = inputParam.getInputParamvalue().getIntValue();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tvalue = BPConstant.EMPTY_STRING;\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Class getParamType() {\n\t\treturn CostInput.class;\n\t}", "com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();", "Parameter createParameter();", "public double getParameterValue (Assignment input) ;", "public void addInputParameter(String name, Object value) {\n\t\taddInputParameter(new Parameter(name, value));\n\t}", "public interface ActionInputParameter {\n\n\tString MIN = \"min\";\n\n\tString MAX = \"max\";\n\n\tString STEP = \"step\";\n\n\tString MIN_LENGTH = \"minLength\";\n\n\tString MAX_LENGTH = \"maxLength\";\n\n\tString PATTERN = \"pattern\";\n\n\tString READONLY = \"readonly\";\n\n\t/**\n\t * Raw field value, without conversion.\n\t *\n\t * @return value\n\t */\n\tObject getValue();\n\n\t/**\n\t * Formatted field value to be used as preset value (e.g. using ConversionService).\n\t *\n\t * @return formatted value\n\t */\n\tString getValueFormatted();\n\n\t/**\n\t * Type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t *\n\t * @return input field type\n\t */\n\tType getHtmlInputFieldType();\n\n\t/**\n\t * Set the type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t * \n\t * @param type the {@link Type} to set\n\t */\n\tvoid setHtmlInputFieldType(Type type);\n\n\t/**\n\t * Parameter has input constraints (like range, step etc.)\n\t *\n\t * @return true for input constraints\n\t * @see #getInputConstraints()\n\t */\n\tboolean hasInputConstraints();\n\n\t/**\n\t * Gets possible values for this parameter.\n\t *\n\t * @param actionDescriptor in case that access to the other parameters is necessary to determine the possible values.\n\t * @param <T> This is the type parameter\n\t * @return possible values or empty array\n\t */\n\t<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);\n\n\t/**\n\t * Establish possible values for this parameter\n\t * \n\t * @param possibleValues possible values for this parameter.\n\t */\n\tvoid setPossibleValues(List<? extends Suggest<?>> possibleValues);\n\n\t/**\n\t * Retrieve the suggest type\n\t * \n\t * @return the {@link SuggestType}\n\t */\n\tSuggestType getSuggestType();\n\n\t/**\n\t * Sets the suggest type\n\t * \n\t * @param type the {@link SuggestType} to set.\n\t */\n\tvoid setSuggestType(SuggestType type);\n\n\t/**\n\t * Parameter is an array or collection, think {?val*} in uri template.\n\t *\n\t * @return true for collection or array\n\t */\n\tboolean isArrayOrCollection();\n\n\t/**\n\t * Is this action input parameter required, based on the presence of a default value, the parameter annotations and the kind of input\n\t * parameter.\n\t *\n\t * @return true if required\n\t */\n\tboolean isRequired();\n\n\t/**\n\t * If parameter is an array or collection, the default values.\n\t *\n\t * @return values\n\t * @see #isArrayOrCollection()\n\t */\n\tObject[] getValues();\n\n\t/**\n\t * Does the parameter have a value?\n\t *\n\t * @return true if a value is present\n\t */\n\tboolean hasValue();\n\n\t/**\n\t * Name of parameter.\n\t *\n\t * @return the name of parameter.\n\t */\n\tString getParameterName();\n\n\t/**\n\t * Type of parameter.\n\t *\n\t * @return the type of parameter.\n\t */\n\tClass<?> getParameterType();\n\n\t/**\n\t * Gets input constraints.\n\t *\n\t * @return constraints where the key is one of {@link ActionInputParameter#MAX} etc. and the value is a string or number, depending on\n\t * the input constraint.\n\t * @see ActionInputParameter#MAX\n\t * @see ActionInputParameter#MIN\n\t * @see ActionInputParameter#MAX_LENGTH\n\t * @see ActionInputParameter#MIN_LENGTH\n\t * @see ActionInputParameter#STEP\n\t * @see ActionInputParameter#PATTERN\n\t * @see ActionInputParameter#READONLY\n\t */\n\tMap<String, Object> getInputConstraints();\n\n\tString getName();\n\n\tvoid setReadOnly(boolean readOnly);\n\n\tvoid setRequired(boolean required);\n\n\tParameterType getType();\n\n\tboolean isReadOnly();\n\n\tboolean isIgnored();\n\n\tvoid setValue(final Object value);\n\n}", "public void setInput(String input) { this.input = input; }", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.localInput = param;\r\n }", "@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}", "public void setInput(Input input) {\n this.input = input;\n }", "PARAM createPARAM();", "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "public Param getSampleParams() throws InvalidFormatException;", "com.indosat.eai.catalist.standardInputOutput.DummyInputType addNewInput();", "java.lang.String getParameterValue();", "public TInputParameterElements getTInputParameterAccess() {\n\t\treturn pTInputParameter;\n\t}", "private void validateInputParameters(){\n\n }", "@Override\n\tpublic boolean isParam() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void input() {\n\t\t\n\t}", "IFMLParameter createIFMLParameter();", "ParameterSource createParameterSource();", "String toParameter();", "public void SetInputParameters(AbstractParameterDictionary params) throws Exception {\n\t\t//String paramsClass = params.getClass().getSimpleName();\n\t\t\n\t\tthis.inputParameters = params;\n\t}", "Input createInput();", "public void setInput(String input);", "@Parameterized.Parameters(name = \"{0}_{1}\")\n public static Collection inputs()\n {\n getEnvironmentVariables();\n return inputsCommon();\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public void setInput(String input){\n this.input = input;\n }", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public abstract Object getInput ();", "public interface Params {\n }", "IParameter getParameter();", "private void setInputParams(InputCommand input) throws InvalidCommand {\n if (input.getParams().length < 2) throw new InvalidCommand(\"Please enter car registration no. followed by color\");\n try {\n carRegNo = input.getParams()[0].toUpperCase();\n carColor = input.getParams()[1].toUpperCase();\n } catch (NumberFormatException e) {\n throw new InvalidCommand(\"Something went wrong.\\nMake sure the command is of the format: 'park KA-01-HH-9999 White'\");\n }\n }", "public abstract ParamNumber getParamX();", "void setInput(com.indosat.eai.catalist.standardInputOutput.DummyInputType input);", "public abstract void input();", "Input getObjetivo();", "public LinkedHashMap<String, FunctionParameter> inputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "public abstract String toFORMParam();", "ParamMap createParamMap();", "Parameter getParameter();", "public Tipo visitParameter(DECAFParser.ParameterContext ctx){\r\n\t\tVarDec var =new VarDec(ctx.ID().getText(),tablaSimbolos.searchTipo(ctx.parameterType().getText()),0,position);\r\n\t\tfirmaA.addParam(var);\r\n\t\taddComment(\"paramname: \"+var.getNombre()+\"-position: \"+position);\r\n\t\tposition+=var.getByteSize();\r\n\t\treturn tablaSimbolos.correct();\r\n\t}", "public Param getExperimentParams() throws InvalidFormatException;", "public interface Parameter extends Serializable {\n\n /**\n * Getter fot property 'type'.\n *\n * @return a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public String getType();\n\n /**\n * Setter for property 'type'.\n *\n * @param type a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public void setType(String type);\n\n /**\n * Getter fot property 'factor'.\n *\n * @return a double with the factor of the value in scientific notation.\n */\n public Double getFactor();\n\n /**\n * Setter for property 'factor'.\n *\n * @param factor a double with the factor of the value in scientific notation.\n */\n public void setFactor(Double factor);\n\n /**\n * Getter fot property 'base'.\n *\n * @return a integer with the base in scientific notation.\n */\n public Integer getBase();\n\n /**\n * Setter for property 'base'.\n *\n * @param base a integer with the base in scientific notation.\n */\n public void setBase(Integer base);\n\n /**\n * Getter fot property 'exponent'.\n *\n * @returna integer with exponent of the value in scientific notation.\n */\n public Integer getExponent();\n\n /**\n * Setter for property 'exponent'.\n *\n * @param exponent a integer with the exponent of the value in scientific notation.\n */\n public void setExponent(Integer exponent);\n\n /**\n * Getter fot property 'value'.\n *\n * @return a String with the representation of the parameter in scientific notation.\n */\n public String getValue();\n\n /**\n * Setter for property 'value'.\n *\n * @param value a String with the representation of the parameter in scientific notation.\n */\n public void setValue(String value);\n\n /**\n * Getter fot property 'unit'.\n *\n * @return a String with the unit of the parameter.\n */\n public String getUnit();\n\n /**\n * Setter for property 'unit'.\n *\n * @param unit a String with the unit of the parameter.\n */\n public void setUnit(String unit);\n\n /**\n * Getter fot property 'uncertainty'.\n *\n * @return a double with the uncertainty.\n */\n public Double getUncertainty();\n\n /**\n * Setter for property 'uncertainty'.\n *\n * @param uncertainty a double with the uncertainty\n */\n public void setUncertainty(Double uncertainty);\n}", "public Setparam() {\r\n super();\r\n }", "public interface VinhNT_Parameter {\n public void addParam(JSONObject input);\n public String get_field_name();\n public void getParam(JSONObject input);\n public boolean isRequired();\n public ArrayList<Error_Input> checkInput();\n public Context getContext();\n}", "@Override\n public String kind() {\n return \"@param\";\n }", "protected abstract void getInput();", "private Input()\n {\n }", "@Override\n\tvoid input() {\n\t}", "String getParam( String paraName );", "public String getParameterFromP();", "private Params()\n {\n }", "ParameterList getParameters();", "@Override\n\tprotected void processInput() {\n\t}", "public Object getParam() {\n return param;\n }", "public interface IOutputParameter extends IIOParameter, Serializable {\n\n /**\n *\n * @return function to convert a byte array to the value; used to\n * convert from stderr\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStderr();\n\n /**\n *\n * @return function to convert a integer exit value to a idata\n * value; used for the handling of the exit value of the overall\n * program\n */\n Optional<IConvertExitValueToIData> getFunctionToHandleExitValue();\n\n /**\n *\n * @return function to convert a byte array to the value;\n * used to convert from stdout\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStdout();\n\n /**\n *\n * @return function to read the iData from files\n */\n Optional<IReadIDataFromFiles> getFunctionToReadIDataFromFiles();\n}", "public void setInput1(int input1) {\n this.input1 = input1;\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "ParameterRefinement createParameterRefinement();", "public ParameterList getAdjustableParams();", "INDArray getParams();", "public interface Params\n{\n\tpublic static final String DEFAULT_PATH=\"default_path\";\n\tpublic static final String DEFAULT_NAME=\"default_name\";\n\tpublic static final String MODE=\"mode\";\n\tpublic static final String FILE_TYPE=\"file_type\";\n}", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "@Parameterized.Parameters(name = \"{0}_{1}_{2}\")\n public static Collection inputs()\n {\n iotHubConnectionString = Tools.retrieveEnvironmentVariableValue(TestConstants.IOT_HUB_CONNECTION_STRING_ENV_VAR_NAME);\n IntegrationTest.isBasicTierHub = Boolean.parseBoolean(Tools.retrieveEnvironmentVariableValue(TestConstants.IS_BASIC_TIER_HUB_ENV_VAR_NAME));\n IntegrationTest.isPullRequest = Boolean.parseBoolean(Tools.retrieveEnvironmentVariableValue(TestConstants.IS_PULL_REQUEST));\n\n return Arrays.asList(\n new Object[][]\n {\n //Query is only supported over http and only with sas based authentication\n {HTTPS, SAS, ClientType.DEVICE_CLIENT},\n });\n }", "ComponentParameterInstance createComponentParameterInstance();", "public interface ParamPoint {\r\n\r\n\t/**\r\n\t * Get X coordinate parameter.\r\n\t * \r\n\t * @return X coordinate\r\n\t */\r\n\tpublic abstract ParamNumber getParamX();\r\n\r\n\t/**\r\n\t * Get Y coordinate parameter.\r\n\t * \r\n\t * @return Y coordinate\r\n\t */\r\n\tpublic abstract ParamNumber getParamY();\r\n\r\n\t/**\r\n\t * Get Z coordinate parameter.\r\n\t * \r\n\t * @return Z coordinate\r\n\t */\r\n\tpublic abstract ParamNumber getParamZ();\r\n}", "protected void setupParameters() {\n \n \n\n }", "com.google.cloud.documentai.v1beta2.InputConfig getInputConfig();", "@Override\n\tpublic Annotation[] getParameterAnnotations() {\n\t\treturn new Annotation[]{};\n\t}", "public EstimateParameter( String name ) {\n\t\tsuper( name, null, null, null);\n\t}", "gen.grpc.hospital.examinations.Parameter getParameter(int index);", "public String getParam() {\n return param;\n }", "public String getParam() {\n return param;\n }", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "@Override final protected Class<?>[] getInputTypes() { return this.InputTypes; }", "public interface Parameter {\n\n\t/**\n\t * Returns the actual parameter value given the inputs provided as arguments.\n\t * If the actual value cannot be retrieved (missing information), throws \n\t * an exception.\n\t * \n\t * @param input the input assignment\n\t * @return the actual parameter value\n\t */\n\tpublic double getParameterValue (Assignment input) ;\n\t\n\t\n\t/**\n\t * Returns the (possibly empty) set of parameter identifiers used in the \n\t * parameter object.\n\t * \n\t * @return the collection of parameter labels \n\t */\n\tpublic Collection<String> getParameterIds();\n\n\t\n\t\n\t/**\n\t * Adds the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to add\n\t * @return the result of the addition\n\t */\n\tpublic Parameter sumParameter(Parameter otherPram); \n\t\n\t/**\n\t * Multiplies the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to multiply\n\t * @return the result of the multiplication\n\t */\n\tpublic Parameter multiplyParameter(Parameter otherPram); \n\t\n}", "public void writeParameterToP(String parameterName);", "com.google.protobuf.ByteString getParameterValueBytes();", "protected void validatePreamp(int[] param) {\n }", "@Override\n public String getInputParameter(String task) {\n try {\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (inputParameters != null) {\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\", input.getId());\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n return null;\n\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "InputValueDefinition createInputValueDefinition();", "public Parameters getParameters();", "public void addToParameterNameValuePairs(entity.LoadParameter element);", "public JParameterRecord() {\n super(JParameter.PARAMETER);\n }", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "public java.lang.String getParam0(){\n return localParam0;\n }", "public java.lang.String getParam0(){\n return localParam0;\n }", "public java.lang.String getParam0(){\n return localParam0;\n }", "public java.lang.String getParam0(){\n return localParam0;\n }" ]
[ "0.7283747", "0.6694676", "0.6694676", "0.6694676", "0.66198695", "0.6578013", "0.65248454", "0.65136445", "0.64783996", "0.6456395", "0.6404776", "0.6314765", "0.6240746", "0.62254363", "0.6221291", "0.62040037", "0.62025726", "0.61857224", "0.61853516", "0.61691564", "0.61646456", "0.6161065", "0.6159441", "0.6149376", "0.61486906", "0.61215955", "0.6107788", "0.61066", "0.60884285", "0.6072922", "0.6064903", "0.60583746", "0.6052677", "0.6051671", "0.60241604", "0.60140973", "0.59823287", "0.5973053", "0.5965972", "0.5937493", "0.5912858", "0.5908637", "0.5907684", "0.59011465", "0.5893382", "0.5887862", "0.5873457", "0.587269", "0.5839769", "0.5838988", "0.58389664", "0.58270603", "0.58238614", "0.5822519", "0.57985795", "0.57974386", "0.5787886", "0.57843477", "0.5764725", "0.5749507", "0.57490087", "0.5743379", "0.5737494", "0.5732052", "0.5723614", "0.5717234", "0.5694324", "0.5689347", "0.567758", "0.5675087", "0.5670392", "0.56587136", "0.5658519", "0.56528676", "0.5648217", "0.56478864", "0.5637215", "0.5634598", "0.56294507", "0.56285983", "0.56232905", "0.56119806", "0.56098735", "0.56098735", "0.5608266", "0.560795", "0.5607889", "0.56012315", "0.5593881", "0.5590129", "0.5570975", "0.5570057", "0.5564155", "0.5562619", "0.55585545", "0.555678", "0.55567276", "0.55567276", "0.55567276", "0.55567276" ]
0.6929172
1
/ Property Gets all property values for the isEquivalent property.
Collection<? extends Noun> getIsEquivalent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<OntProperty> getEquivalentProperties(OntProperty p)\n\t{\n\t\treturn getEquivalentProperties(p, false);\n\t}", "boolean hasIsEquivalent();", "public static Set<OntProperty> getEquivalentProperties(OntProperty p, boolean withSubProperties)\n\t{\n\t\t/* in some reasoners, listEquivalentProperties doesn't include the\n\t\t * property itself; also, some reasoners return an immutable list here,\n\t\t * so we need to create our own copy (incidentally solving an issue\n\t\t * with generics...)\n\t\t */\n\t\tlog.trace(String.format(\"finding all properties equivalent to %s\", p));\n\t\tSet<OntProperty> equivalentProperties = new HashSet<OntProperty>();\n\t\tfor (OntProperty q: p.listEquivalentProperties().toList()) {\n\t\t\tlog.trace(String.format(\"found equivalent property %s\", q));\n\t\t\tequivalentProperties.add(q);\n\t\t\tif (withSubProperties) {\n\t\t\t\tfor (OntProperty subproperty: q.listSubProperties().toList()) {\n\t\t\t\t\tlog.trace(String.format(\"found sub-property %s\", subproperty));\n\t\t\t\t\tequivalentProperties.add(subproperty);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlog.trace(String.format(\"adding original property %s\", p));\n\t\tequivalentProperties.add(p);\n\t\tif (withSubProperties) {\n\t\t\tfor (OntProperty subproperty: p.listSubProperties().toList()) {\n\t\t\t\tlog.trace(String.format(\"found sub-property %s\", subproperty));\n\t\t\t\tequivalentProperties.add(subproperty);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn equivalentProperties;\n\t}", "public Set<ConfigProperty> values() {\n return new HashSet<>(_properties.values());\n }", "public ArrayList<Property> getPropertyList()\r\n {\r\n return m_values;\r\n }", "public ArrayList<Property> getOtherProperties() {\r\n\t\treturn otherProperties;\r\n\t}", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Property property = (Property) o;\n return Objects.equals(aliases, property.aliases);\n }", "private void countEquivalentDataPropertyAxiomsMetric() {\r\n\t\tint equivalentDataPropertyAxiomsCount = ontology.getAxiomCount(AxiomType.EQUIVALENT_DATA_PROPERTIES,\r\n\t\t\t\tOntologyUtility.ImportClosures(imports));\r\n\t\treturnObject.put(\"equivalentDataPropertiesAxioms\", equivalentDataPropertyAxiomsCount);\r\n\r\n\t}", "Value getEquivalentPropertyChainHead(int columnIndex);", "public java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> getPropsList() {\n return props_;\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "@Override\n\tpublic Set<OWLEntity> getAllProperties() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getObjectPropertiesInSignature());\n\t\treturn result;\n\t}", "@Override\n public int getTotalListGridEquivalentStateCount() {\n return this.totalListGridEquivalentStateCount;\n }", "@Override\r\n public Object visit(OWLEquivalentDataPropertiesAxiom axiom) {\n return super.visit(axiom);\r\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> \n getPropsList();", "public List<Boolean> getValues() {\r\n\t\treturn values;\r\n\t}", "public ArrayList<Property> getSoldProperties() {\r\n\t\treturn soldProperties;\r\n\t}", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }", "public List<FilterableProperty> filterableProperties() {\n return this.innerProperties() == null ? null : this.innerProperties().filterableProperties();\n }", "public java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> getPropsList() {\n if (propsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(props_);\n } else {\n return propsBuilder_.getMessageList();\n }\n }", "public Set<HasInstance> getHasInstanceRelationships() {\n\t\treturn this.instanceOf;\n\t}", "public java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList() {\n return props_;\n }", "public Set<ConfigListDTO> getListProperties() {\n \t\treturn new HashSet<ConfigListDTO>(listProperties.values());\n \t}", "public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }", "public List<WorldStateProperty> getValues ()\n\t{\n\t\treturn new ArrayList<WorldStateProperty>(properties.values());\n\t}", "Property[] getProperties();", "List<PropertySymbol> getAllReferences();", "public ArrayList<String> getPropNames()\n {\n return this.prop_names;\n }", "public Set<ConfigSimpleValueDTO> getSimpleProperties() {\n \t\treturn new HashSet<ConfigSimpleValueDTO>(simpleProperties.values());\n \t}", "public Collection<ModuleProperty> getProperties();", "public java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList() {\n if (propsBuilder_ != null) {\n return propsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(props_);\n }\n }", "public Set<Property> getModifiedProperties(HasUuid entity) {\n Set<Property> toReturn = modified.get(entity);\n return toReturn == null ? Collections.<Property> emptySet() : toReturn;\n }", "@Override\r\n\t\tpublic final boolean combinePropertyLists()\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "public String getAddresses()\n {\n return _addresses;\n }", "public List<A> getInValues() {\n return inValues;\n }", "public Set<String> getRawProperties() {\n return _rawProperties;\n }", "public List<PropertyValidValue> getPropertyValidValues()\r\n\t{\r\n\t\treturn propertyValidValues;\r\n\t}", "protected String getPropertyStrings() {\n\t\treturn \"Active:\" + activeProperty().getValue() + \", FromDataset:\" + isFromDataset() + \", Modified:\" + isModified();\n\t}", "java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList();", "public Object getProperties() {\n return this.properties;\n }", "@Override\n List<Value> values();", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "@Override\r\n\tpublic Set<Set<Entity>> getStructuralEquivalences()\r\n\t{\r\n\t\tStructurallyEquivalent<Entity, EntityGraphEdge> equivalent = new StructurallyEquivalent<Entity, EntityGraphEdge>();\r\n\t\tVertexPartition<Entity, EntityGraphEdge> vertexPartition = equivalent\r\n\t\t\t\t.transform(directedGraph);\r\n\r\n\t\treturn new HashSet<Set<Entity>>(vertexPartition.getVertexPartitions());\r\n\t}", "boolean similar(Object other) {\n if (!(other instanceof PropertyArray)) {\n return false;\n }\n int len = this.length();\n if (len != ((PropertyArray) other).length()) {\n return false;\n }\n for (int i = 0; i < len; i += 1) {\n Object valueThis = this.myArrayList.get(i);\n Object valueOther = ((PropertyArray) other).myArrayList.get(i);\n if (valueThis == valueOther) {\n continue;\n }\n if (valueThis == null) {\n return false;\n }\n if (valueThis instanceof PropertyObject) {\n if (!((PropertyObject) valueThis).similar(valueOther)) {\n return false;\n }\n } else if (valueThis instanceof PropertyArray) {\n if (!((PropertyArray) valueThis).similar(valueOther)) {\n return false;\n }\n } else if (!valueThis.equals(valueOther)) {\n return false;\n }\n }\n return true;\n }", "public Set<Property> getProperties() {\r\n\t\treturn properties;\r\n\t}", "public List<NeonValue> getValues();", "public ArrayList<Property> getNotSoldProperties() {\r\n\t\treturn notSoldProperties;\r\n\t}", "public Vector<HibernateRelationship> getRelationships() {\n\t\treturn relationships;\n\t}", "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "ArrayList<PropertyMetadata> getProperties();", "public Set<Pp> getProperties() {\n return properties;\n }", "@Override\r\n\tpublic Collection<CWBEquivalence> getEquivalences(String sourceURI,\r\n\t\t\tString targetURI) {\n\t\treturn null;\r\n\t}", "public GameProperty [] getGameProperties() {\n return this.GameProperties;\n }", "public List<String> propertyColumns() {\n return this.propertyColumns;\n }", "public boolean isAdditiveProperty() {\n\t\treturn false;\n\t}", "com.google.protobuf.ByteString\n getPropertiesBytes();", "public HasDisplayableProperties getProperties();", "PropertyValue<?, ?>[] values();", "@Property\n @Report(Reporting.GENERATED)\n public boolean broken_reverse_property(@ForAll List<?> original) {\n return Lists.reverse(original).equals(original);\n }", "@Override\n public boolean equals(Object obj) {\n // this code provided by Dave Houtman [2020] personal communication\n if (!(obj instanceof Property))\n return false;\n Property prop = (Property) obj;\n return this.getXLeft() == prop.getXLeft() && this.getYTop() == prop.getYTop() && hasSameSides(prop);\n }", "public boolean equals(Object o) {\r\n\t\t// TODO and replace return false with the appropriate code.\r\n\t\tif (o == null || o.getClass() != this.getClass())\r\n\t\t\treturn false;\r\n\t\tProperty p = (Property) o;\r\n\t\treturn Arrays.deepEquals(p.positive, this.positive)\r\n\t\t\t\t&& Arrays.deepEquals(p.negative, this.negative)\r\n\t\t\t\t&& Arrays.deepEquals(p.stop, this.stop)\r\n\t\t\t\t&& p.scoringmethod == this.scoringmethod\r\n\t\t\t\t&& Math.abs(p.mindistance - this.mindistance) < 0.000001;\r\n\t}", "public Map getProperties();", "public abstract DtPropuesta[] getPropuestasPopulares();", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }", "public Set<String> getAllAttributes() {\r\n if (parent.isPresent()) {\r\n return Sets.union(attributeMap.keySet(), parent.get().getAllAttributes());\r\n } else {\r\n return getAttributes();\r\n }\r\n }", "private SlotDifferenceProperties innerProperties() {\n return this.innerProperties;\n }", "public String getEmailAddresses()\n {\n return this.emailAddresses;\n }", "@Generated\n @Selector(\"includesPropertyValues\")\n public native boolean includesPropertyValues();", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<PropertyItem> getModelData() {\n\t\treturn mProperties;\n\t}", "public boolean isEquivalentTo(ComparableSubject subject) {\n\t\t\tboolean result = false;\n\n\t\t\tif (subject != null) {\n\n\t\t\t\tint countPropertiesS2inThis = 0; // Counts how many of the properties in subject are in this and have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the same value in both resources\n\n\t\t\t\t// For each property in subject, check if it is contained in this and if it has\n\t\t\t\t// the same value here\n\t\t\t\tfor (Entry<String, String> curProperty : subject.mapProperties.entrySet()) {\n\t\t\t\t\tString curEquivProperty = this.mapProperties.get(curProperty.getKey());\n\n\t\t\t\t\t// Compare the properties values using their string representation\n\t\t\t\t\tif (curEquivProperty != null && curEquivProperty.equals(curProperty.getValue())) {\n\t\t\t\t\t\tcountPropertiesS2inThis++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Consider both resources equivalent if they have the same number of properties\n\t\t\t\t// and all properties in r2\n\t\t\t\t// exist in r1 and have the same value in both resources\n\t\t\t\tif ((countPropertiesS2inThis == subject.mapProperties.size())\n\t\t\t\t\t\t&& (this.mapProperties.size() == countPropertiesS2inThis)) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}", "EProperties getProperties();", "@Override\n public int getTotalDistanceEquivalentStateCount() {\n return this.totalDistanceEquivalentStateCount;\n }", "@Override\n public com.gensym.util.Sequence getRelationships() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_);\n return (com.gensym.util.Sequence)retnValue;\n }", "public boolean equals(Property inProperty){\n return (inProperty.getName().equals(this.getName()));\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "public List<ProbeValue> getValues() {\n\treturn attributes;\n }", "public boolean equals(Object other) \n\t{\n\t\tif ( (this == other ) ) return true;\n\t\tif ( !(other instanceof EntityPropertyBean) ) return false;\n\t\tEntityPropertyBean castOther = (EntityPropertyBean) other;\n\t\treturn new EqualsBuilder()\n\t\t\t.append(this.getEntityType(), castOther.getEntityType())\n\t\t\t.append(this.getPropertyType(), castOther.getPropertyType())\n\t\t\t.isEquals();\n\t}", "public Set<Sendable> getSendables() {\r\n\t\tSet<Sendable> sendables = new HashSet<>();\r\n\t\tfor (Entity[] es : this.entities) {\r\n\t\t\tfor (Entity e : es) {\r\n\t\t\t\tif (e instanceof Sendable) {\r\n\t\t\t\t\tsendables.add((Sendable) e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sendables;\r\n\t}", "public Map<String, String> properties() {\n return this.properties;\n }", "public Collection<EJCoreLovItemMappingProperties> getAllItemMappingProperties()\n {\n return _lovItemMappings;\n }", "public List<NameValueProperty> getNameValueProperty() {\n\t\treturn nameValuePropertyList;\n\t}", "@Override\n public String toString() {\n return \"Property{\" +\n \"boardPosition=\" + boardPosition +\n \", name='\" + name + '\\'' +\n \", value=\" + value +\n \", rentPrice=\" + rentPrice +\n \", mortgagePrice=\" + mortgagePrice +\n \", isMortgaged=\" + isMortgaged +\n \", redeemPrice=\" + redeemPrice +\n '}';\n }", "public Map<String, Set<String>> getRelatedEntities() {\n return relatedEntities;\n }", "public Iterable<Relationship> getRelationships();", "public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }", "public IterableAssertion<V> toValues() {\n checkActualIsNotNull();\n return initializeAssertion(Raw.<V>iterableAssertion(), getActual().values(), Messages.Check.VALUES);\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "@Override\n public boolean getIsIndexOnValues() {\n return isIndexOnValues_;\n }", "@NonNull\n public Map<String, byte[]> getAdditionalProperties() {\n Map<String, byte[]> additionalProps = new HashMap<>();\n\n for (KeyValuePair pair : mProto.additionalProps) {\n byte[] value = pair.value != null ? pair.value.toByteArray() : null;\n additionalProps.put(pair.name, value);\n }\n\n return additionalProps;\n }", "@JsonProperty(\"properties\")\n public PropertyBag getProperties() {\n return properties;\n }", "public boolean isAssocProperty();", "List<Object> toList() {\n List<Object> results = new ArrayList<>(this.myArrayList.size());\n for (Object element : this.myArrayList) {\n if (element == null || PropertyObject.NULL.equals(element)) {\n results.add(null);\n } else if (element instanceof PropertyArray) {\n results.add(((PropertyArray) element).toList());\n } else if (element instanceof PropertyObject) {\n results.add(((PropertyObject) element).toMap());\n } else {\n results.add(element);\n }\n }\n return results;\n }", "public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }", "public boolean isAllValues() { return this.isAll; }", "@Override\n public boolean getIsIndexOnValues() {\n return isIndexOnValues_;\n }", "@Override\n\tpublic List<XSOntDataProperty> getSuperProperties() {\n\t\treturn new ArrayList<XSOntDataProperty>();\n\t}", "public List<Address> getAddresses() {\r\n\r\n if (this.addresses == null) {\r\n\r\n this.addresses = new ArrayList<Address>();\r\n\r\n }\r\n\r\n return this.addresses;\r\n\r\n }", "public Iterable<V> values();" ]
[ "0.66698396", "0.6111621", "0.5924114", "0.55369985", "0.5523277", "0.5448787", "0.5440749", "0.52523583", "0.5199121", "0.51606965", "0.51588225", "0.514724", "0.5134935", "0.5127777", "0.5122736", "0.50793374", "0.507678", "0.50742006", "0.50308794", "0.50271785", "0.50253534", "0.5019072", "0.5014295", "0.50142306", "0.49865657", "0.49736935", "0.49155346", "0.4896248", "0.48930135", "0.48890588", "0.4887644", "0.48435637", "0.4834188", "0.48341545", "0.48309037", "0.4818343", "0.48175955", "0.48170486", "0.4815581", "0.48132014", "0.47993243", "0.47982493", "0.47907212", "0.47835615", "0.47803873", "0.47720608", "0.47675392", "0.4753685", "0.4751302", "0.47283664", "0.4724279", "0.47100672", "0.47088075", "0.4707433", "0.47058192", "0.46882337", "0.4687086", "0.4684417", "0.46831083", "0.4672732", "0.46639106", "0.46612504", "0.46411303", "0.46358374", "0.46293378", "0.46272755", "0.46186554", "0.46156585", "0.46122327", "0.46111545", "0.46110663", "0.46069893", "0.4603996", "0.46026134", "0.46020925", "0.4598104", "0.45977497", "0.4595126", "0.45943063", "0.45935526", "0.459194", "0.4586955", "0.4584007", "0.45806164", "0.45784825", "0.45770106", "0.45727855", "0.45724836", "0.45560664", "0.4553707", "0.45509908", "0.45493573", "0.45485812", "0.45469132", "0.45441747", "0.45404407", "0.45388117", "0.45359576", "0.45353463", "0.453517" ]
0.64760685
1
Checks if the class has a isEquivalent property value.
boolean hasIsEquivalent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkEquivalent(OWLClass class1, OWLClass class2) {\n for (OWLClass cls : loader.getEquivalentClasses(class1)) {\n if (cls.getIRI().equals(class2.getIRI())) {\n return true;\n }\n }\n return false;\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }", "Collection<? extends Noun> getIsEquivalent();", "boolean _is_equivalent(org.omg.CORBA.Object other);", "public boolean _is_equivalent(Object that) {\n return equals(that) ;\n }", "@Override\n public boolean equals(Object obj) {\n // this code provided by Dave Houtman [2020] personal communication\n if (!(obj instanceof Property))\n return false;\n Property prop = (Property) obj;\n return this.getXLeft() == prop.getXLeft() && this.getYTop() == prop.getYTop() && hasSameSides(prop);\n }", "public boolean equals(Object other) \n\t{\n\t\tif ( (this == other ) ) return true;\n\t\tif ( !(other instanceof EntityPropertyBean) ) return false;\n\t\tEntityPropertyBean castOther = (EntityPropertyBean) other;\n\t\treturn new EqualsBuilder()\n\t\t\t.append(this.getEntityType(), castOther.getEntityType())\n\t\t\t.append(this.getPropertyType(), castOther.getPropertyType())\n\t\t\t.isEquals();\n\t}", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "public boolean equals(Object o) {\r\n\t\t// TODO and replace return false with the appropriate code.\r\n\t\tif (o == null || o.getClass() != this.getClass())\r\n\t\t\treturn false;\r\n\t\tProperty p = (Property) o;\r\n\t\treturn Arrays.deepEquals(p.positive, this.positive)\r\n\t\t\t\t&& Arrays.deepEquals(p.negative, this.negative)\r\n\t\t\t\t&& Arrays.deepEquals(p.stop, this.stop)\r\n\t\t\t\t&& p.scoringmethod == this.scoringmethod\r\n\t\t\t\t&& Math.abs(p.mindistance - this.mindistance) < 0.000001;\r\n\t}", "void addIsEquivalent(Noun newIsEquivalent);", "public boolean equivalentTo (BusinessObject other, Callback<BusinessObject, Boolean> ignoreFields) {\n\t\tif (this == other) {\n\t\t\treturn true;\t// no point checking... we know they're the same...\n\t\t}\n\t\tif (getClass() != other.getClass() ||\t// different class... must be different\n\t\t\t\t((children == null) != (other.children == null)) ||\t// one is null while other isn't\n\t\t\t\t(children != null && children.size() != other.children.size())) {\t// both has children, but differing amounts\t\n\t\t\treturn false;\n\t\t} \n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t// Not going to bother comparing if callback returns true\n\t\t\t\tif (ignoreFields != null && ignoreFields.call(child)) continue;\t\n\t\t\t\tString name = child.nameProperty().getValue();\n\t\t\t\tBusinessObject otherChild = other.findChildByName(name);\n\t\t\t\tif(otherChild == null || !child.equivalentTo(otherChild, ignoreFields)) return false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isProperty();", "public boolean isAssocProperty();", "private static boolean equiv(VObject src, VObject dst)\n {\n return ((src.getId() != null && src.getId().equals(dst.getId()))\n || (src.getSid() != null && src.getSid().equals(dst.getSid())) \n || (src.getName() != null && src.getName().equals(dst.getName())));\n }", "public boolean isEquivalentTo(Type other) {\n if (other instanceof MethodType) {\n return sameSignature((MethodType)other);\n }\n return false;\n }", "@Override\n public boolean equals(final Object other) {\n if (other instanceof ConcatenatedConverter) {\n final ConcatenatedConverter o = (ConcatenatedConverter) other;\n return c1.equals(o.c1) && c2.equals(o.c2);\n }\n return false;\n }", "boolean isExtensionOf(Property other);", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsMemberFollowing) {\n BsMemberFollowing other = (BsMemberFollowing)obj;\n if (!xSV(_memberFollowingId, other._memberFollowingId)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object obj) {\n if (obj instanceof Percentage) {\n Percentage other = (Percentage) obj;\n return amount.equals(other.amount);\n }\n return false;\n }", "boolean hasSetProperty();", "public boolean equals(Object other) {\r\n if (other == null || !(other instanceof BsMemberAddress)) { return false; }\r\n BsMemberAddress otherEntity = (BsMemberAddress)other;\r\n if (!xSV(getMemberAddressId(), otherEntity.getMemberAddressId())) { return false; }\r\n return true;\r\n }", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "boolean hasProperty2();", "public boolean equivalentInteractions(InteractionObject first, InteractionObject second) {\n\t\tboolean result = \n\t\t\tfirst.getType() == second.getType() &&\n\t\t\tfirst.getIndex() == second.getIndex();\n\t\treturn result;\n\t}", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Override\r\n public boolean isHasDirectValue() {\r\n return this.hasDirectValue;\r\n }", "public boolean hasConverter() {\n return getConverter() != null;\n }", "public boolean isEquivalentTo(ComparableSubject subject) {\n\t\t\tboolean result = false;\n\n\t\t\tif (subject != null) {\n\n\t\t\t\tint countPropertiesS2inThis = 0; // Counts how many of the properties in subject are in this and have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the same value in both resources\n\n\t\t\t\t// For each property in subject, check if it is contained in this and if it has\n\t\t\t\t// the same value here\n\t\t\t\tfor (Entry<String, String> curProperty : subject.mapProperties.entrySet()) {\n\t\t\t\t\tString curEquivProperty = this.mapProperties.get(curProperty.getKey());\n\n\t\t\t\t\t// Compare the properties values using their string representation\n\t\t\t\t\tif (curEquivProperty != null && curEquivProperty.equals(curProperty.getValue())) {\n\t\t\t\t\t\tcountPropertiesS2inThis++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Consider both resources equivalent if they have the same number of properties\n\t\t\t\t// and all properties in r2\n\t\t\t\t// exist in r1 and have the same value in both resources\n\t\t\t\tif ((countPropertiesS2inThis == subject.mapProperties.size())\n\t\t\t\t\t\t&& (this.mapProperties.size() == countPropertiesS2inThis)) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}", "public boolean isEquivalent( Function f )\n {\n if ( name == null || data == null || f.data == null )\n {\n return false;\n }\n return name.equals( f.name )\n && upgrade == f.upgrade\n && data.equals( f.data );\n }", "@Override\n public boolean equals(Object obj) {\n return obj != null &&\n getClass() == obj.getClass() &&\n equalElements(getClass().cast(obj));\n }", "boolean hasPropertyLike(String name);", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n if (TkRefexAbstractMember.class.isAssignableFrom(obj.getClass())) {\n TkRefexAbstractMember<?> another = (TkRefexAbstractMember<?>) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare refsetUuid\n if (!this.refexUuid.equals(another.refexUuid)) {\n return false;\n }\n\n // Compare componentUuid\n if (!this.componentUuid.equals(another.componentUuid)) {\n return false;\n }\n\n // Compare their parents\n return super.equals(obj);\n }\n\n return false;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null) return false;\n if (!(o instanceof Autogen{{class_name}})) return false;\n Autogen{{class_name}} other = (Autogen{{class_name}}) o;\n\n {{#properties}}\n {\n {{#type}}\n Function3<{{> type}}", "boolean hasSameAs();", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Override\n public boolean exists()\n {\n return orig.exists();\n }", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}", "public boolean hasProperty() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "@Override\n public boolean equals(Object o) {\n try {\n Pair p = (Pair) o;\n return (this.getSource().equals(p.source) && this.getDestination().equals(p.getDestination()));\n\n } catch (Exception ex) {\n return false;\n }\n }", "abstract boolean equivalentXml(Object target);", "public abstract boolean doEquivalent(T t, T t2);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Abono)) {\n return false;\n }\n Abono other = (Abono) object;\n if ((this.abonoPK == null && other.abonoPK != null) || (this.abonoPK != null && !this.abonoPK.equals(other.abonoPK))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n\tpublic boolean equals(final Object object) {\n\t\ttry {\n\t\t\tfinal FSATransition t = (FSATransition) object;\n\t\t\treturn super.equals(t) && myLabel.equals(t.myLabel);\n\t\t} catch (final ClassCastException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }", "@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }", "@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }", "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }", "public boolean equals(Object o) {\n\t\tif (o instanceof InstagramObject) {\n\t\t\t//if (((InstagramObject) o).checkClass(element.getAttribute(\"class\")) ) {\n\t\t\t\tif (((InstagramObject) o).getElement().equals(element))\n\t\t\t\t\treturn true;\n\t\t//\t}\n\t\t} return false;\n\t}", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Arrow)) return false;\n\n Arrow a = (Arrow) o;\n return from.equals(a.from) && to.equals(a.to) && color.equals(a.color);\n }", "public boolean equals(Property inProperty){\n return (inProperty.getName().equals(this.getName()));\n }", "@Test\n public void testEquals_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n Object obj = new Object();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(false, result);\n }", "public boolean isEquivalent(final Plugin testPlugin) {\n if (testPlugin != null && testPlugin instanceof SocketHubReceiver) {\n SocketHubReceiver sReceiver = (SocketHubReceiver) testPlugin;\n\n return (port == sReceiver.getPort()\n && host.equals(sReceiver.getHost())\n && reconnectionDelay == sReceiver.getReconnectionDelay()\n && super.isEquivalent(testPlugin));\n }\n return false;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Property property = (Property) o;\n return Objects.equals(aliases, property.aliases);\n }", "@Override\n public boolean equals(Object obj)\n {\n if (obj instanceof AbstractMorph)\n {\n AbstractMorph morph = (AbstractMorph) obj;\n\n return morph.name.equals(this.name);\n }\n\n return super.equals(obj);\n }", "@Override\r\n public boolean equals(final Object o) {\r\n if (o instanceof DomItemXml) {\r\n return this.getJsObject() == ((DomItemXml) o).getJsObject();\r\n }\r\n return false;\r\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\t\r\n\t\tif ( this == obj ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tif ( !(obj instanceof Good) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tGood good = (Good) obj;\r\n\t\t\r\n\t\treturn\r\n\t\t\t\tthis.isBaseTaxFree() == good.isBaseTaxFree() &&\r\n\t\t\t\tthis.isImported() == good.isImported() &&\r\n\t\t\t\tthis.getDescription().equalsIgnoreCase(good.getDescription());\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GarantieGarantieChoisieNta)) {\r\n return false;\r\n }\r\n GarantieGarantieChoisieNta other = (GarantieGarantieChoisieNta) object;\r\n if ((this.garantieGarantieChoisieNtaPK == null && other.garantieGarantieChoisieNtaPK != null) || (this.garantieGarantieChoisieNtaPK != null && !this.garantieGarantieChoisieNtaPK.equals(other.garantieGarantieChoisieNtaPK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals( Object other )\r\n {\r\n if( super.equals( other ) && ( other instanceof ProcessDirective ) )\r\n {\r\n ProcessDirective object = (ProcessDirective) other;\r\n if( !m_name.equals( object.m_name ) )\r\n {\r\n return false;\r\n }\r\n else if( !m_classname.equals( object.m_classname ) )\r\n {\r\n return false;\r\n }\r\n else if( m_implicit != object.m_implicit )\r\n {\r\n return false;\r\n }\r\n else if( !equals( m_production, object.m_production ) )\r\n {\r\n return false;\r\n }\r\n else if( !Arrays.equals( m_dependencies, object.m_dependencies ) )\r\n {\r\n return false;\r\n }\r\n else if( !Arrays.equals( m_inputs, object.m_inputs ) )\r\n {\r\n return false;\r\n }\r\n else if( !Arrays.equals( m_validators, object.m_validators ) )\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return equals( m_data, object.m_data );\r\n }\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean equivalent(Tradeoff trade)\r\n\t{\r\n\t\tboolean eq = false;\r\n\t\tif ((trade.getOnt1().toString().equals(ont1.toString())) &&\r\n\t\t\t\t(trade.getOnt2().toString().equals(ont2.toString())))\r\n\t\t\teq = true;\r\n\t\telse if ((trade.getOnt1().toString().equals(ont2.toString())) &&\r\n\t\t\t\t(trade.getOnt2().toString().equals(ont1.toString())))\r\n\t\t\teq = true;\r\n\t\treturn eq;\r\n\t}", "@Override\n\tpublic boolean equals(Object other){\n\t if (other == null) return false;\n\t if (other == this) return true;\n\t if (!(other instanceof Property))return false;\n\t Property otherProperty = (Property)other;\n\t \n\t if(this.number == otherProperty.number) {\n\t \treturn true;\n\t } else {\n\t \treturn false;\n\t }\n\t}", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Vproperty)) {\n return false;\n }\n Vproperty other = (Vproperty) object;\n if ((this.vpropertyPK == null && other.vpropertyPK != null) || (this.vpropertyPK != null && !this.vpropertyPK.equals(other.vpropertyPK))) {\n return false;\n }\n return true;\n }", "private final static boolean equivalent(Automaton automaton,\n\t\t\tBinaryMatrix equivs, Automaton.Bag b1, Automaton.Bag b2) {\n\t\tint b1_size = b1.size();\n\t\tint b2_size = b2.size();\n\n\t\tif (b1_size != b2_size) {\n\t\t\t// Observe that, unlike a set, the size of a bag will never be\n\t\t\t// changed by the identification of equivalent states. Therefore,\n\t\t\t// the size of both collection must be identical, otherwise they can\n\t\t\t// never be equivalent.\n\t\t\treturn false;\n\t\t}\n\n\t\tint[] b1_children = b1.children;\n\t\tint[] b2_children = b2.children;\n\t\t// maps vertices in b2 to those they are matched against in b1\n\t\tint[] matches = new int[b1_size];\n\t\tArrays.fill(matches, -1);\n\t\t// Used to ensure no vertex is explored more than once during\n\t\t// reconfiguration.\n\t\tboolean[] visited = new boolean[b1_size];\n\t\t\n\t\t// For every state in s1\n\t\tfor (int i = 0; i != b1_size; ++i) {\n\t\t\tint b1_child = b1_children[i];\n\t\t\tif(b1_child < 0) {\n\t\t\t\t// In this case, we have to do something different.\n\t\t\t\tif(!findNegativeMatch(i,b1_children,b2_children,equivs,matches)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tArrays.fill(visited,false);\n\t\t\t\tif(!findMatch(i,b1_children,b2_children,equivs,matches,visited)) {\n\t\t\t\t\t// If we can't find a match, then it's game over and we know for\n\t\t\t\t\t// sure these two states are not equivalent.\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Promotion)) {\n return false;\n }\n Promotion other = (Promotion) object;\n if ((this.idPromo == null && other.idPromo != null) || (this.idPromo != null && !this.idPromo.equals(other.idPromo))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn EqualsBuilder.reflectionEquals(this, obj);\n\t}", "@Override\r\n\t\tpublic boolean implementEquals(Object obj) {\n\t\t\treturn false;\r\n\t\t}", "@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\tif(other instanceof Edge) {\n\t\t\t\tEdge e = (Edge) other;\n\t\t\t\treturn e._one.equals(this._one) && e._two.equals(this._two)\n\t\t\t\t\t|| e._one.equals(this._two) && e._two.equals(this._one);\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public static boolean canTransferToProperty( TestProperty source, TestProperty target )\r\n \t{\r\n \t\treturn false;\r\n \t}", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "@Test\n public void testEquals_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n Object obj = null;\n\n boolean result = fixture.equals(obj);\n\n assertEquals(false, result);\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof BlastingtypeRelationsAud)) return false;\n return this.equalKeys(other) && ((BlastingtypeRelationsAud)other).equalKeys(this);\n }", "public boolean hasAdjacentEqualPair()\n { \n \tfor( int i = 0; i < purchases.size()-1; i++ )\n \t{\n \t\tGizmo curr = purchases.get( i );\n \t\tGizmo nxt = purchases.get( i + 1 );\n \t\tif( curr.equals( nxt ) )\n \t\t\treturn true;\n \t}\n \treturn false; \t\n }", "public boolean hasProperty() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isEquivalent(IJavaImplementation JavaImplementationToCheck);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof HasMessage)) {\n return false;\n }\n HasMessage other = (HasMessage) object;\n if ((this.hasMessageId == null && other.hasMessageId != null) || (this.hasMessageId != null && !this.hasMessageId.equals(other.hasMessageId))) {\n return false;\n }\n return true;\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "public void equals() {\r\n // todo Implement this java.lang.Object method\r\n throw new UnsupportedOperationException(\"Method equals() not yet implemented.\");\r\n }", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (other instanceof DBBoolean) {\n\t\t\tDBBoolean otherDBBoolean = (DBBoolean) other;\n\t\t\treturn getValue().equals(otherDBBoolean.getValue());\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Coupons)) {\n return false;\n }\n Coupons other = (Coupons) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (this == object) \n {\n \treturn true;\n }\n if (object == null) \n {\n \treturn false;\n }\n if (getClass() != object.getClass()) \n {\n \treturn false;\n }\n final DiscountProduct discountProduct = (DiscountProduct) object;\n\n if (!Objects.equals(this.discountRate, discountProduct.discountRate)) \n {\n \treturn false;\n }\n return true;\n }", "boolean isInverseFunctionalLinkProperty();", "public boolean isSetIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ISCOMPARATION$2) != null;\n }\n }", "final static void determineEquivalenceClasses(Automaton automaton,\n\t\t\tBinaryMatrix equivs) {\n\t\tboolean changed = true;\n\t\tint size = automaton.nStates();\n\n\t\twhile (changed) {\n\t\t\tchanged = false;\n\t\t\tfor (int i = 0; i < size; ++i) {\n\t\t\t\tfor (int j = i + 1; j < size; ++j) {\n\t\t\t\t\tif (equivs.get(i, j)) {\n\t\t\t\t\t\t// no need to explore nodes which are already known to\n\t\t\t\t\t\t// be not equivalent.\n\t\t\t\t\t\tboolean b = equivalent(automaton, equivs, i, j);\n\t\t\t\t\t\tequivs.set(i, j, b);\n\t\t\t\t\t\tequivs.set(j, i, b);\n\t\t\t\t\t\tchanged |= !b;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }", "@Override\n public boolean equals(Object obj) {\n \n //TODO: Complete Method\n \n return true;\n }", "public boolean equals(Object obj) {\n\n if (!this.getClass().equals(obj.getClass())) {\n System.out.println(\"different classes\");\n return false;\n }\n\n Proto cmd = (Proto)obj;\n for (String key : cmd.getArguments().keySet()) {\n if (this.getArguments().containsKey(key)) {\n if(!this.getArguments().containsValue(cmd.getArgument(key))) {\n return false;\n }\n } else {\n return false;\n }\n }\n return true;\n }", "protected Boolean exists() {\n return nonNull(getModified()) && nonNull(getInteractionModel());\n }" ]
[ "0.66445655", "0.6562732", "0.63829637", "0.6109032", "0.59396404", "0.5706193", "0.5437952", "0.5433183", "0.54324436", "0.54324436", "0.54324436", "0.5423474", "0.5380059", "0.5350688", "0.53274244", "0.5303942", "0.53010774", "0.5297981", "0.5281096", "0.52686685", "0.5253348", "0.5242629", "0.5242101", "0.5235434", "0.5233942", "0.52251184", "0.52031004", "0.5198414", "0.5197751", "0.5186424", "0.5183921", "0.5172307", "0.51659817", "0.5146847", "0.51452017", "0.51355517", "0.5131209", "0.5116771", "0.510282", "0.5101661", "0.5090072", "0.5075179", "0.5071363", "0.50671667", "0.506468", "0.5063882", "0.50587994", "0.50549114", "0.50531954", "0.5051935", "0.50482696", "0.5043951", "0.50389695", "0.50389695", "0.50389695", "0.5036174", "0.503103", "0.5023324", "0.5022321", "0.5020598", "0.501881", "0.50179005", "0.50173783", "0.5010089", "0.50050324", "0.5003338", "0.49997997", "0.4996368", "0.49923205", "0.49834853", "0.4975706", "0.49754742", "0.49723348", "0.4969508", "0.49669373", "0.49665225", "0.49636757", "0.49622363", "0.49522588", "0.4952222", "0.49517694", "0.49487627", "0.49483538", "0.49479195", "0.49475446", "0.49461782", "0.4935308", "0.4933685", "0.49320573", "0.4932051", "0.49292827", "0.49275446", "0.49269348", "0.49178678", "0.49165517", "0.49119118", "0.49097157", "0.4906622", "0.49060616", "0.49034077" ]
0.7088117
0
Adds a isEquivalent property value.
void addIsEquivalent(Noun newIsEquivalent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasIsEquivalent();", "Collection<? extends Noun> getIsEquivalent();", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }", "public abstract QueryElement addEquals(String property, Object value);", "public void addIsA(MappingType mapping, IsaType isa) {\n\t\tmapping.getIsA().add(isa);\n\t}", "@Override\n \tpublic void addIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for existing relationship\n \t\tif (reference == null || isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\treference.getCitationList().add(this);\n \t\tisCitedBy.add(reference);\n \t}", "public boolean addAviao(Aviao aviao) {\n return (avioes.add(aviao));\n }", "void addHasLatitude(Object newHasLatitude);", "boolean _is_equivalent(org.omg.CORBA.Object other);", "boolean isExtensionOf(Property other);", "public static boolean addTrue(BoolVar BOOLVAR) {\n Solver solver = BOOLVAR.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int lit = sat.Literal(BOOLVAR);\n sat.addClause(lit);\n return true;\n }", "public abstract QueryElement addOrEquals(String property, Object value);", "public void setIsAppended(boolean isAppended) {\r\n this.isAppended = isAppended;\r\n }", "public Binding setIsExtensible(BooleanDt theValue) {\n\t\tmyIsExtensible = theValue;\n\t\treturn this;\n\t}", "public boolean isAdditiveProperty() {\n\t\treturn false;\n\t}", "@Override\n public ImpValue plus(ImpValue iv) {\n return iv.plusBool(this);\n }", "void addHasAddress(String newHasAddress);", "boolean isInverseFunctionalLinkProperty();", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public boolean addEdge(final int vertice1, final int vertice2) {\n\t\tboolean isAdded = false;\n\n\t\ttry {\n\n\t\t\tadjacencyList[vertice1].add(vertice2);\n\t\t\tadjacencyList[vertice2].add(vertice1);\n\t\t\tisAdded = true;\n\t\t} catch (final Exception exception) {\n\t\t\tSystem.err.println(\"-----ERROR--------\\n\" + exception.getMessage());\n\t\t}\n\n\t\treturn isAdded;\n\t}", "protected boolean addPropertyAssociation(String propName, String propVal, ComponentType componentType,\n\t\t\tPropertySet propSet) {\n\n\t\tPropertyAssociation propAssocImpl = null;\n\t\tProperty prop = null;\n\n\t\t// Check if the property is already present in the component.\n\t\t// If so, we don't need to create a new property association, just overwrite the existing one\n\t\tEList<PropertyAssociation> propAssociations = componentType.getOwnedPropertyAssociations();\n\t\tfor (PropertyAssociation propAssoc : propAssociations) {\n\t\t\tif (propAssoc.getProperty().getName().equalsIgnoreCase(propName)) {\n\t\t\t\tpropAssocImpl = propAssoc;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (propAssocImpl == null) {\n\n\t\t\t// Property is not already present in the component. Need to create a new property association\n\t\t\tpropAssocImpl = componentType.createOwnedPropertyAssociation();\n\n\t\t\t// Find the property in the specified property set\n\t\t\tfor (Property p : propSet.getOwnedProperties()) {\n\t\t\t\tif (p.getName().equalsIgnoreCase(propName)) {\n\t\t\t\t\tprop = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make sure the property type was found\n\t\t\tif (prop != null) {\n\t\t\t\tpropAssocImpl.setProperty(prop);\n\t\t\t} else {\n\t\t\t\tDialog.showError(propSet.getName() + \" Properties\",\n\t\t\t\t\t\tpropName + \" property not found in \" + propSet.getName() + \" property set.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}\n\t\telse {\n\t\t\t// Property is already present in the component.\n\t\t\tprop = propAssocImpl.getProperty();\n\t\t\t// Clear the current value. We write the new value below.\n\t\t\tpropAssocImpl.getOwnedValues().clear();\n\t\t}\n\n\t\t// Add property value\n\t\tfinal ModalPropertyValue modalPropVal = propAssocImpl.createOwnedValue();\n\n\t\t// Figure out what type the property value is\n\t\tif (prop.getOwnedPropertyType() instanceof EnumerationType) {\n\t\t\tfinal NamedValue namedVal = (NamedValue) modalPropVal\n\t\t\t\t\t.createOwnedValue(Aadl2Package.eINSTANCE.getNamedValue());\n\t\t\tfinal EnumerationLiteral enumLiteralCompType = (EnumerationLiteral) EcoreUtil\n\t\t\t\t\t.create(Aadl2Package.eINSTANCE.getEnumerationLiteral());\n\t\t\tenumLiteralCompType.setName(propVal);\n\t\t\tnamedVal.setNamedValue(enumLiteralCompType);\n\t\t} else if (prop.getOwnedPropertyType() instanceof AadlStringImpl) {\n\t\t\tfinal StringLiteral stringVal = (StringLiteral) modalPropVal\n\t\t\t\t\t.createOwnedValue(Aadl2Package.eINSTANCE.getStringLiteral());\n\t\t\tstringVal.setValue(propVal);\n\t\t} else if (prop.getOwnedPropertyType() instanceof ListType) {\n\t\t\tfinal ListValue listVal = (ListValue) modalPropVal\n\t\t\t\t\t.createOwnedValue(Aadl2Package.eINSTANCE.getListValue());\n\t\t\tString[] elements = propVal.split(\",\");\n\t\t\tfor (String element : elements) {\n\t\t\t\tStringLiteral stringVal = (StringLiteral) listVal\n\t\t\t\t\t\t.createOwnedListElement(Aadl2Package.eINSTANCE.getStringLiteral());\n\t\t\t\tstringVal.setValue(element);\n\t\t\t}\n\t\t} else {\n\t\t\t// TODO: Add other property types\n\t\t\t// Couldn't figure it out\n\t\t\tDialog.showError(CASE_PROPSET_NAME + \" Properties\",\n\t\t\t\t\t\"Could not determine property type of \" + propName + \".\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\r\n public boolean add(Object e) {\r\n if (!(e instanceof Extra))\r\n return false;\r\n if (extras.contains(e))\r\n return false;\r\n if (extras.size() == MAX_EXTRAS)\r\n return false;\r\n extras.add((Extra) e);\r\n return true;\r\n }", "public boolean addEdge(Object src, Object dest, boolean direction)\n\t{\n\t\tif(!this.map.containsKey(src))\n\t\t\tthis.addVertex(src);\n\t\tif(!this.map.containsKey(dest))\n\t\t\tthis.addVertex(dest);\n\t\t\n\t\t// set the direction of the edge\n\t\tif(direction)\n\t\t{\n\t\t\t// only add the edge doesn't already exist\n\t\t\tif(!map.get(src).contains(dest))\n\t\t\t{\n\t\t\t\tmap.get(src).addNode(dest);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\telse\t\t\t\n\t\t{\n\t\t\tboolean edgeAdded = false;\n\t\t\t// only add the edge doesn't already exist\n\t\t\tif(!map.get(src).contains(dest))\n\t\t\t{\n\t\t\t\tmap.get(src).addNode(dest);\n\t\t\t\tedgeAdded = true;\n\t\t\t}\n\t\t\t// only add the edge doesn't already exist\n\t\t\tif(!map.get(dest).contains(dest))\n\t\t\t{\n\t\t\t\tmap.get(dest).addNode(src);\n\t\t\t\tedgeAdded = true;\n\t\t\t}\n\t\t\treturn edgeAdded;\n\t\t}\n\t}", "public Binding setIsExtensible( boolean theBoolean) {\n\t\tmyIsExtensible = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }", "public void xsetIsComparation(org.apache.xmlbeans.XmlString isComparation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ISCOMPARATION$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ISCOMPARATION$2);\n }\n target.set(isComparation);\n }\n }", "public boolean setPropertyUnityGain(boolean aValue);", "void removeIsEquivalent(Noun oldIsEquivalent);", "public boolean isEquivalent(FeatureModel featureModel) throws OperationNotSupportedException, FMReasoningException {\n\t\tthrow new OperationNotSupportedException(\"Reasoning Operation Not Supported\");\n\t}", "public void setIsARelationship(Object endNode, BioRelTypes relType) {\n if (isARelationship == null) {\n isARelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n isARelationship.add(rel);\n }", "public void addIsA(Entity ent)\n {\n if (ent == null || isAs.contains(ent))\n return;\n\n isAs.add(ent);\n }", "public static boolean addBoolIsEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET) {\n Solver solver = TARGET.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int left_lit = sat.Literal(LEFT);\n int right_lit = sat.Literal(RIGHT);\n int target_lit = sat.Literal(TARGET);\n sat.addClause(SatSolver.negated(left_lit), right_lit, SatSolver.negated(target_lit));\n sat.addClause(left_lit, SatSolver.negated(right_lit), SatSolver.negated(target_lit));\n sat.addClause(left_lit, right_lit, target_lit);\n sat.addClause(SatSolver.negated(left_lit), SatSolver.negated(right_lit), target_lit);\n return true;\n }", "@Generated\n @Selector(\"setIncludesPropertyValues:\")\n public native void setIncludesPropertyValues(boolean value);", "@Override\r\n\tpublic boolean getIntentValue() {\n\t\treturn true;\r\n\t}", "public void setAugment(boolean aValue);", "public boolean addProperty(Pp property) {\n if(properties.add(property)){\n //Se property existe, atribui este como seu parente\n if(property != null)\n property.setParent(this);\n\n notifyInserted(NCLElementSets.PROPERTIES, property);\n return true;\n }\n return false;\n }", "public void setIsComparation(java.lang.String isComparation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISCOMPARATION$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ISCOMPARATION$2);\n }\n target.setStringValue(isComparation);\n }\n }", "public boolean setProperty(String attName, Object value);", "public abstract boolean doEquivalent(T t, T t2);", "public void enablePropertyUnityGain()\n {\n iPropertyUnityGain = new PropertyBool(new ParameterBool(\"UnityGain\"));\n addProperty(iPropertyUnityGain);\n }", "private void countEquivalentDataPropertyAxiomsMetric() {\r\n\t\tint equivalentDataPropertyAxiomsCount = ontology.getAxiomCount(AxiomType.EQUIVALENT_DATA_PROPERTIES,\r\n\t\t\t\tOntologyUtility.ImportClosures(imports));\r\n\t\treturnObject.put(\"equivalentDataPropertiesAxioms\", equivalentDataPropertyAxiomsCount);\r\n\r\n\t}", "boolean equivalent(AssignmentPath other);", "public boolean isEquivalentTo(Type other) {\n if (other instanceof MethodType) {\n return sameSignature((MethodType)other);\n }\n return false;\n }", "public boolean add(Object o) {\n\t\treturn map.put(o, PRESENT) == null;\n\t}", "public boolean addSource(Entity source) {\r\n boolean result = IServer.associationHasSource().add(this, source);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }", "public boolean setPropertyUnityGain(boolean aValue)\n {\n return setPropertyBool(iPropertyUnityGain, aValue);\n }", "public static boolean addBoolAndEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET) {\n Solver solver = TARGET.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int left_lit = sat.Literal(LEFT);\n int right_lit = sat.Literal(RIGHT);\n int target_lit = sat.Literal(TARGET);\n sat.addClause(SatSolver.negated(left_lit), SatSolver.negated(right_lit), target_lit);\n sat.addClause(left_lit, SatSolver.negated(target_lit));\n sat.addClause(right_lit, SatSolver.negated(target_lit));\n return true;\n }", "public PropertyBoolean(String name) {\n super(name);\n }", "@Override\n public final boolean add(Integer e) {\n if(definedOn.contains(e)){\n return super.add(e);\n } else {\n return false;\n }\n }", "public boolean equals(Object other) \n\t{\n\t\tif ( (this == other ) ) return true;\n\t\tif ( !(other instanceof EntityPropertyBean) ) return false;\n\t\tEntityPropertyBean castOther = (EntityPropertyBean) other;\n\t\treturn new EqualsBuilder()\n\t\t\t.append(this.getEntityType(), castOther.getEntityType())\n\t\t\t.append(this.getPropertyType(), castOther.getPropertyType())\n\t\t\t.isEquals();\n\t}", "@Override\n public int getTotalListGridEquivalentStateCount() {\n return this.totalListGridEquivalentStateCount;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Property property = (Property) o;\n return Objects.equals(aliases, property.aliases);\n }", "@Override\n protected ImpValue plusStr(StringValue sv) {\n return vf.makeStr(sv.getStrValue() + this.boolValue.toString());\n }", "@Override\n public void put(String name, boolean value) {\n emulatedFields.put(name, value);\n }", "public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }", "public boolean associate(final K key, final V value) {\n throwIfImmutable();\n throwIfNullKey(key);\n throwIfNullValue(value);\n\n final KeyValuePair<K, V> association = new KeyValuePair<>(key, value);\n if (isAssociated(association)) {\n // key and value are already associated\n return false;\n }\n\n final int index = associationCountMap.getOrDefault(key, 0);\n associationMap.put(new KeyIndexPair<>(key, index), value);\n associationCountMap.put(key, index + 1);\n indexMap.put(association, index);\n\n return true;\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "public boolean addVenue(Venue newVenue) // --> Legger til et nytt lokale i listen.\n\t{\n\t\treturn list.add(newVenue);\n\t}", "public static boolean addBoolIsNeqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET) {\n Solver solver = TARGET.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int left_lit = sat.Literal(LEFT);\n int right_lit = sat.Literal(RIGHT);\n int target_lit = sat.Literal(TARGET);\n sat.addClause(SatSolver.negated(left_lit), right_lit, target_lit);\n sat.addClause(left_lit, SatSolver.negated(right_lit), target_lit);\n sat.addClause(left_lit, right_lit, SatSolver.negated(target_lit));\n sat.addClause(SatSolver.negated(left_lit), SatSolver.negated(right_lit), SatSolver.negated(target_lit));\n return true;\n }", "public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }", "public static boolean addBoolOrEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET) {\n Solver solver = TARGET.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int left_lit = sat.Literal(LEFT);\n int right_lit = sat.Literal(RIGHT);\n int target_lit = sat.Literal(TARGET);\n sat.addClause(left_lit, right_lit, SatSolver.negated(target_lit));\n sat.addClause(SatSolver.negated(left_lit), target_lit);\n sat.addClause(SatSolver.negated(right_lit), target_lit);\n return true;\n }", "boolean equivalent(Concept x, Concept y);", "@Override\n\t\tpublic boolean add(Community e) {\n\t\t\treturn false;\n\t\t}", "public Boolean add(int value) {\n\t\t\n\t\tfor (Integer elem : elemList) {\n\t\t\tif (elem == value)\n\t\t\t\treturn false;\n\t\t}\n\t\tthis.elemList.add(value);\n\t\treturn true;\n\t}", "@Override\n public boolean addEdge(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)) {\n dictionary.get(vertex1).add(vertex2);\n dictionary.get(vertex2).add(vertex1);\n return true;\n } else {\n return false;\n }\n }", "public abstract QueryElement addNotEquals(String property, Object value);", "public boolean addVertex(String label, Object value)\n\t{\n\t\tif(!hasVertex(label)) //if edge does not already exist add it\n\t\t{\n\t\t\tDSAGraphVertex v = new DSAGraphVertex(label, value);\n\t\t\tvertices.insertLast(v); //inserts into vertices list at end\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic boolean addEdge(E vertexX, E vertexY) {\n\t\tif (!vertices.contains(vertexX) || !vertices.contains(vertexY))\n\t\t\treturn false;\n\t\tUnorderedPair<E> edge = new UnorderedPair<>(vertexX, vertexY);\n\t\treturn edges.add(edge);\n\t}", "@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}", "DefinedProperty relAddProperty( long relId, int propertyKey, Object value );", "public void add(Boolean value) {\r\n\t\tif(size < capacity) {\r\n\t\t\tvalues.add(value);\r\n\t\t\tsize++;\r\n\t\t}\t\t\r\n\t}", "public boolean add(String value){\n int index=findIndexBinary(value);\n super.add(index,value);\n return true;\n }", "public static boolean addBoolEq(BoolVar LEFT, BoolVar RIGHT) {\n Solver solver = LEFT.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int left_lit = sat.Literal(LEFT);\n int right_lit = sat.Literal(RIGHT);\n sat.addClause(SatSolver.negated(left_lit), right_lit);\n sat.addClause(left_lit, SatSolver.negated(right_lit));\n return true;\n }", "@JSProperty(\"opposite\")\n void setOpposite(boolean value);", "@Override\n\tpublic boolean add(E e) {\n\t\treturn false;\n\t}", "Builder addProperty(String name, String value);", "@Override\n\tpublic Boolean addfriend(Profile profile, Boolean isRelative) throws Exception {\n\t\tif (isRelative) {\n\t\t\t_friendlist.add(profile);\n\t\t\treturn true;\n\t\t}\n\n\t\t/// to maintain the age difference condition\n\t\tint agediff = Math.abs(this.getage() - profile.getage());\n\t\tif (profile.getage() < 16 && agediff < 3) {\n\t\t\t_friendlist.add(profile);\n\t\t} else {\n\t\t\tthrow new NotToBeFriendsException(\n\t\t\t\t\t\"You are not allowed to add a friend more than 3 years older than yourself\");\n\t\t}\n\t\treturn true;\n\t}", "public boolean add(Account entity) {\n\t\treturn false;\n\t}", "public void addAttachedPicture( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ATTACHEDPICTURE, value);\r\n\t}", "public abstract boolean setValue(Value value, boolean asAssignment);", "@Override\n\tpublic void addProperty(String name) {\n\t}", "void setBooleanProperty(Object name, boolean b) throws JMSException;", "public boolean addTarget(Entity target) {\r\n boolean result = IServer.associationHasTarget().add(this, target);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }", "public boolean checkEquivalent(OWLClass class1, OWLClass class2) {\n for (OWLClass cls : loader.getEquivalentClasses(class1)) {\n if (cls.getIRI().equals(class2.getIRI())) {\n return true;\n }\n }\n return false;\n }", "public synchronized boolean add(Item pItem)\n {\n for(Item item : mItems)\n if(item.address.equals(pItem.address))\n {\n mIsModified = true;\n if(pItem.isEmpty())\n {\n mItems.remove(item);\n return false;\n }\n else\n {\n item.assign(pItem);\n return true;\n }\n }\n\n if(pItem.isEmpty())\n return false;\n\n mItems.add(pItem);\n mIsModified = true;\n return false;\n }", "public boolean addVertex(Object value) \n\t{\n\t\tthis.map.put(value, new SinglyLinkedList());\n\t\treturn true;\n\t}", "private boolean isAttached (RoadInterface newObj, Direction attachAt) {\n boolean result = false;\n\n if ((interOne == newObj && dirOne == attachAt) ||\n (interTwo == newObj && dirTwo == attachAt)) {\n result = true;\n }\n return (result);\n }", "public void addAttachedPicture(DataObject value) {\r\n\t\tBase.add(this.model, this.getResource(), ATTACHEDPICTURE, value);\r\n\t}", "public boolean add(K key, V value) {\n if (configTable.containsKey(key)) {\n return false;\n }\n configTable.put(key, value);\n return true;\n }", "Builder addSameAs(String value);", "Property addValue(PropertyValue<?, ?> value);", "public boolean addSelectedValue( final T selectedValue ) {\r\n List< T > selectedValues = getSelectedValuesChoicesObject();\r\n return selectedValues.add( selectedValue );\r\n }", "private boolean extend(Line workingSet, boolean direction) {\n\n\t\tPoint next_point = get_next_point(get_next_point_guess(workingSet,\n\t\t\t\tdirection));\n\n\t\tif (next_point != null) {\n\t\t\t// Check if candidate point fits the line\n\t\t\tif (fits_the_line(next_point, workingSet, direction)) {\n\t\t\t\tworkingSet.add_point(next_point, direction);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\t}", "public static void addBooleanData(OWLIndividual owlIndi, boolean value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(Boolean.toString(value), factory.getOWLDatatype(xsdBoolean));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "public boolean equivalentTo (BusinessObject other, Callback<BusinessObject, Boolean> ignoreFields) {\n\t\tif (this == other) {\n\t\t\treturn true;\t// no point checking... we know they're the same...\n\t\t}\n\t\tif (getClass() != other.getClass() ||\t// different class... must be different\n\t\t\t\t((children == null) != (other.children == null)) ||\t// one is null while other isn't\n\t\t\t\t(children != null && children.size() != other.children.size())) {\t// both has children, but differing amounts\t\n\t\t\treturn false;\n\t\t} \n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t// Not going to bother comparing if callback returns true\n\t\t\t\tif (ignoreFields != null && ignoreFields.call(child)) continue;\t\n\t\t\t\tString name = child.nameProperty().getValue();\n\t\t\t\tBusinessObject otherChild = other.findChildByName(name);\n\t\t\t\tif(otherChild == null || !child.equivalentTo(otherChild, ignoreFields)) return false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "DefinedProperty graphAddProperty( int propertyKey, Object value );", "public boolean addEdge(String label1, String label2)\n\t{\n\t\tif(!isAdjacent(label1, label2)) //if edge does not already exist add it\n\t\t{\n\t\t\tDSAGraphVertex vx1 = getVertex(label1), vx2 = getVertex(label2);\n\t\t\tvx1.addEdge(vx2);\n\t\t\tvx2.addEdge(vx1);\n\t\t\tedgeCount++;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean addAttributeAsProperty(XMPMetadata metadata, XMPSchema schema, Attribute attr) {\n\t\tboolean added = false;\n\t\tString schemaNamespace = schema.getNamespaceValue();\n\t\tString prefix = attr.getPrefix() != null ? attr.getPrefix() : schema.getPrefix();\n\t\tString type = this.nsMap.getSpecifiedPropertyType(schemaNamespace, new QName(schemaNamespace, attr.getLocalName(), prefix));\n\t\tif (type != null) {\n\t\t\tif (type.equals(\"Text\")) {\n\t\t\t\tschema.getContent().addProperty(new TextType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t} else if (type.equals(\"Integer\")) {\n\t\t\t\tschema.getContent().addProperty(new IntegerType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t} else if (type.equals(\"Boolean\")) {\n\t\t\t\tschema.getContent().addProperty(new BooleanType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t} else if (type.equals(\"Real\")) {\n\t\t\t\tschema.getContent().addProperty(new RealType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t} else if (type.equals(\"Date\")) {\n\t\t\t\tschema.getContent().addProperty(new DateType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t} else if (type.equals(\"URI\")) {\n\t\t\t\tschema.getContent().addProperty(new TextType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t} else if (type.equals(\"URL\")) {\n\t\t\t\tschema.getContent().addProperty(new TextType(metadata, prefix, attr.getLocalName(), attr.getValue()));\n\t\t\t\tadded = true;\n\t\t\t}\n\t\t}\n\t\treturn added;\n\t}", "boolean hasSetProperty();" ]
[ "0.5649175", "0.5412317", "0.52593255", "0.50266564", "0.47696114", "0.47685805", "0.46828064", "0.4625693", "0.45607597", "0.45581022", "0.45154506", "0.44819602", "0.44724613", "0.447049", "0.44566804", "0.44484782", "0.44466528", "0.44433773", "0.44319338", "0.4390063", "0.43830648", "0.4373544", "0.437028", "0.4355058", "0.4344613", "0.4335034", "0.42859542", "0.4282039", "0.42794186", "0.42752308", "0.4264274", "0.4252366", "0.42339644", "0.42335087", "0.42310834", "0.42262423", "0.42121544", "0.42096764", "0.4208049", "0.4207026", "0.42068273", "0.42051333", "0.42047963", "0.42043272", "0.42039967", "0.42026252", "0.41978133", "0.41903847", "0.41855964", "0.4184611", "0.41734165", "0.4155563", "0.41462833", "0.41450465", "0.4139713", "0.41355166", "0.41339582", "0.41273314", "0.4127037", "0.41268167", "0.41227278", "0.41128725", "0.41067114", "0.40905282", "0.40893683", "0.4088344", "0.40870556", "0.40781856", "0.4075293", "0.40703923", "0.4070331", "0.4069778", "0.40615875", "0.40597248", "0.40579996", "0.4055823", "0.40533113", "0.40505663", "0.40464005", "0.40238717", "0.40213615", "0.40195858", "0.40091842", "0.40009055", "0.3997923", "0.39914772", "0.39914516", "0.39890307", "0.3985305", "0.39845878", "0.39830685", "0.39789486", "0.39771327", "0.39760366", "0.39721733", "0.39713407", "0.39706364", "0.3963512", "0.39622182", "0.39611256" ]
0.67276937
0
Removes a isEquivalent property value.
void removeIsEquivalent(Noun oldIsEquivalent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ISCOMPARATION$2);\n }\n }", "Property removeValue(PropertyValue<?, ?> value);", "@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}", "public boolean removeProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return removeProperty(property);\n }\n return false;\n }", "@JSProperty(\"opposite\")\n void setOpposite(boolean value);", "public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }", "@DeleteMapping\n void removeCoin() {\n coin = false;\n }", "public void setRemove(Boolean newValue);", "@JSProperty(\"opposite\")\n boolean getOpposite();", "void removeHasLatitude(Object oldHasLatitude);", "public void removeAttachedPicture(DataObject value) {\r\n\t\tBase.remove(this.model, this.getResource(), ATTACHEDPICTURE, value);\r\n\t}", "public boolean remove(Object value) {\n\t\treturn false;\n\t}", "public void removeAttachedPicture( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ATTACHEDPICTURE, value);\r\n\t}", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "public Object removeProperty( String key );", "public void removeByisActive(Boolean isActive);", "boolean hasIsEquivalent();", "public boolean removeBinding(String aPropertyName)\n{\n // Iterate over binding and remove given binding\n for(int i=0, iMax=getBindingCount(); i<iMax; i++)\n if(getBinding(i).getPropertyName().equals(aPropertyName)) {\n removeBinding(i); return true; }\n return false; // Return false since binding not found\n}", "void graphRemoveProperty( int propertyKey );", "PropertiesTask removeProperty( String key );", "@Override\n public boolean removeAttribute(ConfigurationNode node)\n {\n return attributes.removeNode(node);\n }", "@Override\n public boolean revise(int position) throws ContradictionException {\n boolean revised = false;\n final DisposableIntIterator itr = scope[position].getSVariable()\n .getDomain().getIterator();\n try {\n while (itr.hasNext()) {\n final int a = itr.next();\n if (revise(position, a, Integer.MAX_VALUE)) {\n scope[position].removeVal(a);\n revised = true;\n }\n }\n } finally {\n itr.dispose();\n }\n return revised;\n }", "public boolean remove() {\n if (parent == null) {\n throw new RuntimeException(ROOT_REMOVING_EXCEPTION_MESSAGE);\n }\n\n return parent.remove(value); // increments modificationCount!\n }", "public void removeProperty(TLProperty element);", "void unsetValueAttachment();", "@Override\n\t\tpublic boolean remove(Object o) {\n\t\t\treturn false;\n\t\t}", "void removeHasAddress(String oldHasAddress);", "public void deleteOntProperty(String sourceInstance, String property, String destInstance)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tOntResource di = this.obtainOntResource(destInstance);\r\n\t\tProperty prop = this.obtainOntProperty(property);\t\r\n\t\tsi.removeProperty(prop, di);\r\n\t}", "public Value removeAttributes() {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= ATTR_NOTDONTDELETE | ATTR_NOTDONTENUM | ATTR_NOTREADONLY;\n return canonicalize(r);\n }", "public boolean removeProperty(Pp property) {\n if(properties.remove(property)){\n //Se property existe, retira o seu parentesco\n if(property != null)\n property.setParent(null);\n\n notifyRemoved(NCLElementSets.PROPERTIES, property);\n return true;\n }\n return false;\n }", "@Override\n public boolean isOrphanRemoval(ManagedType<?> ownerType, String elementCollectionPath, String attributeName) {\n return false;\n }", "void relRemoveProperty( long relId, int propertyKey );", "@Override\n\tpublic boolean remove(Object value) {\n\t\tint index = indexOf(value);\n\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\n\t\tremove(index);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean remove(Object value) {\n\t\ttry {\n\t\t\tremove(indexOf(value));\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void setOpposite(boolean opposite) {\n this.opposite = opposite;\n }", "public void removeInterpretedBy(Contact value) {\r\n\t\tBase.remove(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}", "public void removeFromImages(final SessionContext ctx, final GPImageLinkComponent value)\n\t{\n\t\tremoveLinkedItems( \n\t\t\tctx,\n\t\t\ttrue,\n\t\t\tGpcommonaddonConstants.Relations.BRANDBAR2GPIMAGELINKRELATION,\n\t\t\tnull,\n\t\t\tCollections.singletonList(value),\n\t\t\tfalse,\n\t\t\tfalse,\n\t\t\tUtilities.getMarkModifiedOverride(BRANDBAR2GPIMAGELINKRELATION_MARKMODIFIED)\n\t\t);\n\t}", "public void removeDups(Instance instance) {\n ArrayList<Instance> toRemove = backRelation.get(instance);\n if(toRemove == null)\n return;\n for (Instance remove : toRemove) {\n relatedInstances.get(remove).remove(instance);\n toLink.remove(remove.getId());\n }\n backRelation.remove(instance);\n\n }", "public boolean isOpposite() {\n return opposite;\n }", "public boolean removePropertyStyleMapper()\n\t{\n\t\tthis.propertyStyleMapper = null;\n\t\t\n\t\treturn true;\n\t}", "public void removeEncodedBy(Contact value) {\r\n\t\tBase.remove(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "@Override\n\tpublic boolean remove(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean remove(Object o) {\n\t\treturn false;\n\t}", "public void removeValue(Object value)\n\t{\n\t\tif (values.contains(value))\n\t\t{\n\t\t\tvalues.remove(value + \"\");\n\t\t}\n\t}", "public void removeOriginalArtist(Contact value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALARTIST, value);\r\n\t}", "@Override\n\tpublic boolean removeEdge(E vertexX, E vertexY) {\n\t\tUnorderedPair<E> edge = new UnorderedPair<>(vertexX, vertexY);\n\t\treturn edges.remove(edge);\n\t}", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "@Test\n\tpublic void testRemoveLinkWithInverse() {\n\t\tAddress adr = new Address();\n\t\tadr.getType().setIdGenerator(new IdGeneratorNumeric());\n\t\tAssert.assertEquals(1, ((IdNumeric) adr.getId()).getNumber());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tadr.addInhabitant(martin);\n\t\tadr.addInhabitant(jojo);\n\n\t\tadr.removeInhabitant(jojo);\n\n\t\tAssert.assertEquals(1, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// removing last link via remove link produces\n\t\t// an empty collection but no null value\n\t\tadr.removeInhabitant(martin);\n\n\t\tAssert.assertEquals(0, adr.getInhabitants().size());\n\t\tAssert.assertNull(jojo.getAddress());\n\t\tAssert.assertNull(martin.getAddress());\n\t}", "public static void removeProperty(String aKey) {\n checkArgument(!isNullOrEmpty(aKey), \"aKey cannot be null or empty\");\n \n loadPropertiesFile();\n if (props.containsKey(aKey))\n props.remove(aKey);\n storePropsFile();\n }", "@Override\n public boolean remove( K key,\n V value ) {\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n if (ObjectUtil.isEqualWithNulls(values.next(), value)) {\n values.remove();\n return true;\n }\n }\n return false;\n }", "Form removeProperty(String key);", "public void unsetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ADDRESS$2);\n }\n }", "public void remove( IAnswer answerToRemove );", "@Override\n\tpublic boolean removeVertex(Object value)\n\t{\n\t\tif(this.map.containsKey(value))\n\t\t{\n\t\t\t// remove the value from the map\n\t\t\tthis.map.remove(value);\n\t\t\t// iterate over the map and remove any edges of the value\n\t\t\tfor(Map.Entry<Object, SinglyLinkedList> vertex : map.entrySet())\n\t\t\t\tvertex.getValue().removeNode(value);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean atomicRemove();", "void addIsEquivalent(Noun newIsEquivalent);", "@Override\n\tpublic boolean removeChoice(String choice){\n\t\treturn false;\n\t}", "@Override\n\t\tpublic Object removeProperty(String key) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "public void removeStateValueBinding(final String variableName) {\n //Preconditions\n assert variableName != null : \"variableName must not be null\";\n assert !variableName.isEmpty() : \"variableName must not be empty\";\n\n synchronized (stateVariableDictionary) {\n if (stateVariableDictionary.isEmpty() && !stateValueBindings.isEmpty()) {\n // lazy population of the state value dictionary from the persistent state value bindings\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateVariableDictionary.put(stateValueBinding.getVariableName(), stateValueBinding);\n });\n }\n final StateValueBinding stateValueBinding = stateVariableDictionary.remove(variableName);\n if (stateValueBinding != null) {\n final boolean isRemoved = stateValueBindings.remove(stateValueBinding);\n assert isRemoved;\n }\n }\n }", "public static void removeAttachedPicture(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, DataObject value) {\r\n\t\tBase.remove(model, instanceResource, ATTACHEDPICTURE, value);\r\n\t}", "public NameValue<String, String> removeDestURL() {\n return removeURL(mDestMap);\n }", "@Override\n public boolean removeEdge(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)\n && dictionary.get(vertex1).contains(vertex2)\n && dictionary.get(vertex2).contains(vertex1)) {\n dictionary.get(vertex1).remove(vertex2);\n dictionary.get(vertex2).remove(vertex1);\n return true;\n } else {\n return false;\n }\n\n }", "public void removeTaggedValue(String name) {\n UMLTaggedValue tv = taggedValuesMap.remove(name);\n\n if (tv != null) {\n writer.getUMLInterfaceWriter().removeTaggedValue(this, tv);\n }\n\n }", "public void remove() {\n getMainApplication().showConfirmationDialog(\n new ConfirmDialog.Listener() {\n public void onClose(ConfirmDialog dialog) {\n if (dialog.isConfirmed()) {\n Collection<T> selectedValues = getSelectedValues();\n removeConfirmed(CollectionsUtil.toArray(getType(), selectedValues));\n }\n }\n });\n }", "public void delete()\n throws ROSRSException {\n annotation.deletePropertyValues(subject, property, merge ? null : value);\n if (annotation.getStatements().isEmpty()) {\n annotation.delete();\n } else {\n annotation.update();\n }\n value = null;\n }", "@OperationMeta(name = {Constants.UNEQUALITY, Constants.UNEQUALITY_ALIAS }, opType = OperationType.INFIX)\n public static boolean unequals(boolean b1, boolean b2) {\n return b1 != b2;\n }", "void unsetValue();", "void unsetValue();", "public void test_removeTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n\n instance.removeTypedValue(typedValue);\n assertFalse(\"The element is not removed properly.\", instance.containsTypedValue(typedValue));\n }", "public void updateAttributeRemoveObjectFromCollection(String attributeName, Object mapKey, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor());\n }\n\n Object clone = this.getObject();\n Object cloneValue = value;\n Object original = null;\n\n //only set the original object if we need to update it, ie before the merge takes place\n if ((this.eventCode == DescriptorEventManager.PostCloneEvent) || (this.eventCode == DescriptorEventManager.PostMergeEvent)) {\n original = this.getOriginalObject();\n }\n Object originalValue = value;\n ObjectChangeSet eventChangeSet = this.getChangeSet();\n Object valueForChangeSet = value;\n\n if ((this.query != null) && this.query.isObjectLevelModifyQuery()) {\n clone = ((ObjectLevelModifyQuery)this.query).getObject();\n eventChangeSet = ((ObjectLevelModifyQuery)this.query).getObjectChangeSet();\n }\n ClassDescriptor descriptor = getSession().getDescriptor(value.getClass());\n\n if (descriptor != null) {\n //There is a descriptor for the value being passed in so we must be carefull\n // to convert the value before assigning it.\n if (eventChangeSet != null) {\n valueForChangeSet = descriptor.getObjectBuilder().createObjectChangeSet(value, (UnitOfWorkChangeSet)eventChangeSet.getUOWChangeSet(), getSession());\n }\n if (original != null) {\n // must be a unitOfWork because only the postMerge, and postClone events set this attribute\n originalValue = ((UnitOfWorkImpl)getSession()).getOriginalVersionOfObject(value);\n }\n }\n if (clone != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(clone, getSession());\n mapping.getContainerPolicy().removeFrom(mapKey, cloneValue, collection, getSession());\n }\n if (original != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(original, getSession());\n mapping.getContainerPolicy().removeFrom(mapKey, originalValue, collection, getSession());\n }\n if (getRecord() != null) {\n AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord();\n\n // pass in temp Row because most mappings use row.add() not row.put() for\n // perf reasons. We are using writeFromObjectIntoRow in order to support\n // a large number of types.\n mapping.writeFromObjectIntoRow(clone, tempRow, getSession());\n ((AbstractRecord)getRecord()).mergeFrom(tempRow);\n }\n if (eventChangeSet != null) {\n mapping.simpleRemoveFromCollectionChangeRecord(mapKey, valueForChangeSet, eventChangeSet, getSession());\n }\n }", "public boolean remove(Object value)\r\n {\r\n if (!contains(value))\r\n return false;\r\n root = remove(root, value);\r\n return true;\r\n }", "public void removeHasSynchronizedText(SynchronizedText value) {\r\n\t\tBase.remove(this.model, this.getResource(), HASSYNCHRONIZEDTEXT, value);\r\n\t}", "public void setRemover() {\n Disposable d = Disposable.from(() -> parent.psm.remove(this));\n UNSAFE.putOrderedObject(this, REMOVE, d);\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public boolean removeSelectedValue( final T selectedValue ) {\r\n List< T > selectedValues = getSelectedValuesChoicesObject();\r\n return selectedValues.remove( selectedValue );\r\n }", "private void remove_opposite_end(Line workingSet, boolean direction) {\n\t\tif (direction == LEFT) {\n\t\t\t// Erase the end of the working set\n\t\t\tworkingSet.getAllPoints().remove(\n\t\t\t\t\tworkingSet.getAllPoints().size() - 1);\n\t\t} else {\n\t\t\t// Erase the beginning of the working set\n\t\t\tworkingSet.getAllPoints().remove(0);\n\t\t}\n\t\tworkingSet.setNum_points(workingSet.getNum_points() - 1);\n\t}", "Collection<? extends Noun> getIsEquivalent();", "void removePropertyListener(PropertyListener listener);", "public static void removeAttachedPicture( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, ATTACHEDPICTURE, value);\r\n\t}", "public boolean removeEdge(Object src, Object dest, boolean direction) \n\t{\n\t\tif(this.map.containsKey(src) && this.map.containsKey(dest))\n\t\t{\n\t\t\tif(direction)\n\t\t\t\tthis.map.get(src).removeNode(dest);\n\t\t\telse \n\t\t\t{\n\t\t\t\tthis.map.get(src).removeNode(dest);\t\n\t\t\t\tthis.map.get(dest).removeNode(src);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean removeAttributeNSIf(@Nonnull final Element element, @Nullable final String namespaceURI, @Nonnull final String localName,\n\t\t\t@Nonnull final Predicate<? super String> valuePredicate) throws DOMException {\n\t\tfinal boolean remove = findAttributeNS(element, namespaceURI, localName).filter(valuePredicate).isPresent();\n\t\tif(remove) {\n\t\t\telement.removeAttributeNS(namespaceURI, localName);\n\t\t}\n\t\treturn remove;\n\t}", "@Override\r\n\tpublic boolean removeExam(IExam exam) {\n\t\treturn false;\r\n\t}", "public static void removeOriginalArtist(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.remove(model, instanceResource, ORIGINALARTIST, value);\r\n\t}", "public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }", "public void removePropertyChangeListener(final PropertyChangeListener thePcl) {\n myPcs.removePropertyChangeListener(thePcl);\n }", "AdditionalAttributes removeAttribute(String name);", "@Override\n public boolean removeAttribute(String name)\n {\n return attributes.removeNodes(name);\n }", "public Boolean isRemoveFromSharing() {\n return removeFromSharing;\n }", "public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }", "public void removeFromImages(final GPImageLinkComponent value)\n\t{\n\t\tremoveFromImages( getSession().getSessionContext(), value );\n\t}", "public void removeOriginalArtist( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALARTIST, value);\r\n\t}", "public void unsetUrlValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(URLVALUE$2);\r\n }\r\n }", "@attribute(value = \"\", required = false, defaultValue=\"false\")\r\n\tpublic void removeAll() {\r\n\t\tcombo.removeAll();\r\n\t}", "@Override\n public boolean removeProperties(final String id) {\n try {\n return deleteIfExists(sidecarFile(id).toPath());\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }", "public void removeFromAssociatedMixedPacks(final SessionContext ctx, final ApparelMixedPack value)\r\n\t{\r\n\t\tremoveLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tTrainingCoreConstants.Relations.PRODUCT2MIXEDPACKREL,\r\n\t\t\tnull,\r\n\t\t\tCollections.singletonList(value),\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(PRODUCT2MIXEDPACKREL_MARKMODIFIED)\r\n\t\t);\r\n\t}", "boolean removeAssociation(AssociationEnd association);", "void removeHasXCoordinate(Object oldHasXCoordinate);", "public Agg exclude(Object value) {\n attrList.put(\"exclude\", value);\n return this;\n }", "public void remove()\n {\n this.morphs.remove(this.index);\n this.clamp();\n }" ]
[ "0.54788446", "0.5219795", "0.51328486", "0.50632775", "0.5040899", "0.5013846", "0.49970445", "0.49016753", "0.48969075", "0.48678422", "0.48007062", "0.4799009", "0.4763915", "0.47635794", "0.4762571", "0.47596246", "0.47532696", "0.47334874", "0.47191563", "0.47176453", "0.4705149", "0.46946925", "0.46463075", "0.46339333", "0.46337947", "0.46275267", "0.46192187", "0.46151352", "0.46077153", "0.46022364", "0.45965916", "0.45875302", "0.4587391", "0.458643", "0.4579791", "0.4573896", "0.45717403", "0.45576495", "0.45572436", "0.4553248", "0.4551702", "0.4550528", "0.4550528", "0.45446125", "0.45377323", "0.45376214", "0.45366225", "0.4534087", "0.4533506", "0.45290062", "0.45259538", "0.45078522", "0.44821212", "0.44642228", "0.44620794", "0.44562048", "0.44543815", "0.4451963", "0.4443647", "0.44352627", "0.44328448", "0.44321197", "0.44290262", "0.44283316", "0.44266412", "0.44229946", "0.44195428", "0.44169062", "0.44169062", "0.44060993", "0.4403392", "0.43968174", "0.43956375", "0.43933535", "0.4392187", "0.43873498", "0.43871424", "0.4384616", "0.43766627", "0.4373158", "0.43695801", "0.4360289", "0.4359978", "0.43584204", "0.43547782", "0.4354691", "0.4354491", "0.43542376", "0.43485776", "0.4348229", "0.4346057", "0.433935", "0.43389133", "0.4337659", "0.43345866", "0.4329917", "0.4326402", "0.43248454", "0.43244225", "0.43235603" ]
0.67217773
0
/ Property Gets all property values for the isInputTo property.
Collection<? extends MethodCall> getIsInputTo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InputsType getInputs();", "Inputs getInputs();", "public boolean getInputsRelated(){\n return inputsRelated;\n }", "public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }", "public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }", "public List<ContractIOType> getInputs() {\n return inputs;\n }", "public InputInteractions getInIn() {\r\n\t\t// restituisce le interazioni di input\r\n\t\treturn this.InIn;\r\n\t}", "Input getInputs();", "public List<Point2D> getInputPoints() {\n return mInputPoints;\n }", "public List<Path> getInputs()\r\n\t{\r\n\t\treturn Collections.unmodifiableList(this.inputs);\r\n\t}", "public boolean isInput() {\n return input;\n }", "@Override\n\tpublic Value[] getInputValues() {\n\t\treturn null;\n\t}", "public AnalysisInputItem[] getInputItems() {\n\t\tAnalysisInputItem[] items = { new AnalysisInputItem(\"HLPetriNet model\") {\n\t\t\tpublic boolean accepts(ProvidedObject object) {\n\t\t\t\tObject[] o = object.getObjects();\n\n\t\t\t\tfor (int i = 0; i < o.length; i++) {\n\t\t\t\t\tif (o[i] instanceof HLPetriNet) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} };\n\t\treturn items;\n\t}", "public boolean is_set_inputs() {\n return this.inputs != null;\n }", "public ArrayList<Double> getInputs()\n {\n return inputs;\n }", "public List<Synapse> getInputs() {\n\t\treturn inputs;\n\t}", "public static Set<String> getInputs() {\n\t\treturn availableInputs;\n\t}", "@Override\n\tpublic Set<IInputOutput> getInputs() {\n\t\treturn null;\n\t}", "public boolean[] getInputMissingValues(){\r\n\t\treturn missingValues[0];\r\n\t}", "public String getInputBy() {\n return inputBy;\n }", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n return inputs_;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n return inputs_;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n return inputs_;\n }", "public List<String[]> getInputDetails()\n\t{\n\t\treturn inputDetails;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Specify the input format.\")\n @JsonProperty(JSON_PROPERTY_INPUT)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public InputEnum getInput() {\n return input;\n }", "public List<String> getInputList() {\r\n\t\treturn inputList;\r\n\t}", "public TInputParameterElements getTInputParameterAccess() {\n\t\treturn pTInputParameter;\n\t}", "public boolean hasInputs() {\n return fieldSetFlags()[4];\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n if (inputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inputs_);\n } else {\n return inputsBuilder_.getMessageList();\n }\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n if (inputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inputs_);\n } else {\n return inputsBuilder_.getMessageList();\n }\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n if (inputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inputs_);\n } else {\n return inputsBuilder_.getMessageList();\n }\n }", "public String getAssessmentandReportingAnalysisandReportingServiceInputsandOuputs() {\n return assessmentandReportingAnalysisandReportingServiceInputsandOuputs;\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n return inputs_;\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n return inputs_;\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n return inputs_;\n }", "public ArrayList<GUIInput> getInputs(){\n return new ArrayList<>();\n }", "boolean hasIsInputTo();", "@Parameterized.Parameters(name = \"{0}_{1}\")\n public static Collection inputs()\n {\n getEnvironmentVariables();\n return inputsCommon();\n }", "public double[] getAllInputValues(){\r\n\t\treturn realValues[0];\r\n\t}", "public java.lang.String getInputData() {\n return inputData;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInput() != null)\n sb.append(\"Input: \").append(getInput()).append(\",\");\n if (getOutput() != null)\n sb.append(\"Output: \").append(getOutput());\n sb.append(\"}\");\n return sb.toString();\n }", "public boolean[][] getInputs()\r\n {\r\n return buttons;\r\n }", "public gaia.cu8.sourcein.combined.dm.AstroSource[] getAstroSourceIn() {\r\n return getInputData(KEYNAME_ASTROSOURCEIN);\r\n }", "@java.lang.Override\n public com.clarifai.grpc.api.InputIDs getInputIds() {\n if (inputSourceCase_ == 2) {\n return (com.clarifai.grpc.api.InputIDs) inputSource_;\n }\n return com.clarifai.grpc.api.InputIDs.getDefaultInstance();\n }", "public final ArrayList<Boolean> getItensityValues() {\r\n return this.passIntensityThreshold;\r\n }", "@JsonProperty(\"input_fields\")\n@ApiModelProperty(value = \"A List of InputField for this mapping.\")\n public List<InputField> getInputFields() {\n return inputFields;\n }", "public double[] getInputRealValues(){\r\n\t\treturn realValues[0];\r\n\t}", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList();", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList();", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList();", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n if (inputsBuilder_ != null) {\n return inputsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inputs_);\n }\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n if (inputsBuilder_ != null) {\n return inputsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inputs_);\n }\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n if (inputsBuilder_ != null) {\n return inputsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inputs_);\n }\n }", "public String[] getOutputsAttribute();", "public DataMatrix getInputData() {\n return this.dataInput;\n }", "@Override final protected Object[] getInputDefaults() { return this.InputDefaults; }", "public YuiProperty(String toBy, String from, boolean isTo)\r\n\t{\r\n\t\tif (isTo == true)\r\n\t\t{\r\n\t\t\tthis.to = toBy;\r\n\t\t\tthis.from = from;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.by = toBy;\r\n\t\t\tthis.from = from;\r\n\t\t}\r\n\t}", "public InputDirective[] getInputDirectives()\r\n {\r\n return m_inputs;\r\n }", "@java.lang.Override\n public com.clarifai.grpc.api.InputIDs getInputIds() {\n if (inputIdsBuilder_ == null) {\n if (inputSourceCase_ == 2) {\n return (com.clarifai.grpc.api.InputIDs) inputSource_;\n }\n return com.clarifai.grpc.api.InputIDs.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 2) {\n return inputIdsBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.InputIDs.getDefaultInstance();\n }\n }", "public ArrayList<ArrayList<Double>> getInput() {\n return input;\n }", "public InputSource getInputSource() {\r\n\t\t\r\n\t\treturn inputsource;\r\n\t\r\n\t}", "public IInputType[] getInputTypes();", "@Override final protected Class<?>[] getInputTypes() { return this.InputTypes; }", "@Override\r\n\tpublic List getInput() {\n\t\treturn super.getInput();\r\n\t}", "public List<PropertyValidValue> getPropertyValidValues()\r\n\t{\r\n\t\treturn propertyValidValues;\r\n\t}", "public SimpleStringProperty getKeyInput() {\n return keyInput;\n }", "public interface InputParam extends Parameter {\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isEquivalent\r\n */\r\n \r\n /**\r\n * Gets all property values for the isEquivalent property.<p>\r\n * \r\n * @returns a collection of values for the isEquivalent property.\r\n */\r\n Collection<? extends Noun> getIsEquivalent();\r\n\r\n /**\r\n * Checks if the class has a isEquivalent property value.<p>\r\n * \r\n * @return true if there is a isEquivalent property value.\r\n */\r\n boolean hasIsEquivalent();\r\n\r\n /**\r\n * Adds a isEquivalent property value.<p>\r\n * \r\n * @param newIsEquivalent the isEquivalent property value to be added\r\n */\r\n void addIsEquivalent(Noun newIsEquivalent);\r\n\r\n /**\r\n * Removes a isEquivalent property value.<p>\r\n * \r\n * @param oldIsEquivalent the isEquivalent property value to be removed.\r\n */\r\n void removeIsEquivalent(Noun oldIsEquivalent);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isInputTo\r\n */\r\n \r\n /**\r\n * Gets all property values for the isInputTo property.<p>\r\n * \r\n * @returns a collection of values for the isInputTo property.\r\n */\r\n Collection<? extends MethodCall> getIsInputTo();\r\n\r\n /**\r\n * Checks if the class has a isInputTo property value.<p>\r\n * \r\n * @return true if there is a isInputTo property value.\r\n */\r\n boolean hasIsInputTo();\r\n\r\n /**\r\n * Adds a isInputTo property value.<p>\r\n * \r\n * @param newIsInputTo the isInputTo property value to be added\r\n */\r\n void addIsInputTo(MethodCall newIsInputTo);\r\n\r\n /**\r\n * Removes a isInputTo property value.<p>\r\n * \r\n * @param oldIsInputTo the isInputTo property value to be removed.\r\n */\r\n void removeIsInputTo(MethodCall oldIsInputTo);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#Label\r\n */\r\n \r\n /**\r\n * Gets all property values for the Label property.<p>\r\n * \r\n * @returns a collection of values for the Label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a Label property value.<p>\r\n * \r\n * @return true if there is a Label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a Label property value.<p>\r\n * \r\n * @param newLabel the Label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a Label property value.<p>\r\n * \r\n * @param oldLabel the Label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@Parameterized.Parameters(name = \"{0}_{1}_{2}\")\n public static Collection inputs()\n {\n iotHubConnectionString = Tools.retrieveEnvironmentVariableValue(TestConstants.IOT_HUB_CONNECTION_STRING_ENV_VAR_NAME);\n IntegrationTest.isBasicTierHub = Boolean.parseBoolean(Tools.retrieveEnvironmentVariableValue(TestConstants.IS_BASIC_TIER_HUB_ENV_VAR_NAME));\n IntegrationTest.isPullRequest = Boolean.parseBoolean(Tools.retrieveEnvironmentVariableValue(TestConstants.IS_PULL_REQUEST));\n\n return Arrays.asList(\n new Object[][]\n {\n //Query is only supported over http and only with sas based authentication\n {HTTPS, SAS, ClientType.DEVICE_CLIENT},\n });\n }", "public ArrayList<Property> getPropertyList()\r\n {\r\n return m_values;\r\n }", "public String[] getInputNames()\n\t{\n\t\treturn _inputNames;\n\t}", "public Iterator<String> getUserDefinedProperties();", "public List<A> getInValues() {\n return inValues;\n }", "public List<FilterableProperty> filterableProperties() {\n return this.innerProperties() == null ? null : this.innerProperties().filterableProperties();\n }", "public Set<E> getIn() {\n return in;\n }", "public Person getPersonInput() {\n\t\treturn this.personInput;\n\t}", "public Input getInput() {\n return this.input;\n }", "public List<String> getInputportTerminals() {\n\t\treturn inputportTerminals;\n\t}", "public static void getProperties(TransformContext ctx) throws PropertyVetoException, PropertyConversionException {\n Map<String, Property<?>> props = ctx.getProperties();\n\n @SuppressWarnings(\"unchecked\")\n Property<Boolean> p1 = new Property<Boolean>(SWITCH_STATE_PROPERTY, SWITCH_STATE_PROPERTY_DEFAULT, true,\n new PropertySource<Boolean>(JMXUtils.JMX_SOURCE, PropertySource.PRIORITY_1),\n new MapPropertySource<Boolean>(Impulse.CONFIG_FILE_SOURCE, ctx.getPropertyString(SWITCH_STATE_PROPERTY), Impulse.ConfigProperties, PropertySource.PRIORITY_2, PropertySource.NULL_INVALID, ValueOfConverter.getConverter(Boolean.class)));\n p1.getUserDataMap().put(Impulse.PROPERTY_DESCRIPTION_KEY, \"Property that indicates the switch state (on/off)\");\n props.put(p1.getId(), p1); \n }", "public E getIn() {\n return in;\n }", "public String getInputor() {\r\n\t\treturn inputor;\r\n\t}", "public String[] getInputNominalValues(){\r\n\t\treturn nominalValues[0];\r\n\t}", "com.google.cloud.dialogflow.v2.InputConfig getInputConfig();", "protected Map<Data, String> input() {\n Set<String> inputs = new HashSet<>();\n\n for (Importer importer : importers()) {\n inputs.add(importer.inputData().name());\n }\n\n return DynamicData.oneToOne(inputs.toArray(new String[inputs.size()]));\n }", "public String toString() {\n\t\treturn getOriginalInput();\n\t}", "public List<A> getOutValues() {\n return outValues;\n }", "Object getPropertytrue();", "public List<Value> getOutput() {\n if ( output == null ) output = new ArrayList<Value>();\n return output;\n }", "@JsonGetter(\"to\")\r\n public List<String> getTo() {\r\n return to;\r\n }", "public List<Boolean> getValues() {\r\n\t\treturn values;\r\n\t}", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }", "com.google.cloud.dialogflow.v2.InputConfigOrBuilder getInputConfigOrBuilder();", "public String getInput() {\n return input;\n }", "@java.lang.Override\n public boolean hasInputIds() {\n return inputSourceCase_ == 2;\n }", "@Parameters\n\tpublic static Iterable<Object> data() {\n\t\treturn Arrays.asList(true, false);\n\t}", "public List<DataLocation> getInputDataLocations(){\n\treturn defaultDataLocations();\n }", "boolean hasInputConfig();", "boolean hasInputConfig();" ]
[ "0.59224707", "0.59091187", "0.5890568", "0.5886252", "0.5884349", "0.5866781", "0.5839187", "0.58327764", "0.56850934", "0.56744325", "0.5658781", "0.56473327", "0.5547495", "0.55175775", "0.5517084", "0.54424727", "0.54309", "0.5417685", "0.5378084", "0.53654593", "0.5327406", "0.5327406", "0.5327406", "0.5311944", "0.5311944", "0.5311944", "0.53057003", "0.52845395", "0.5231781", "0.5205435", "0.52005506", "0.51988435", "0.51988435", "0.51988435", "0.5179535", "0.51711595", "0.51711595", "0.51711595", "0.5153842", "0.5151532", "0.51459885", "0.5127523", "0.5124329", "0.511616", "0.5109215", "0.51060045", "0.50851333", "0.5061738", "0.50601363", "0.5054222", "0.5046133", "0.5046133", "0.5046133", "0.50319105", "0.50319105", "0.50319105", "0.503109", "0.49949247", "0.49768806", "0.49639708", "0.4958571", "0.49578726", "0.49564424", "0.49520773", "0.49440914", "0.49439776", "0.49385184", "0.49237964", "0.4920919", "0.49165398", "0.48962668", "0.48863897", "0.4880915", "0.4880383", "0.4877594", "0.4861627", "0.48575336", "0.48526987", "0.48397082", "0.4835507", "0.4828929", "0.48214924", "0.48192418", "0.48128936", "0.4808396", "0.48081982", "0.47976792", "0.4796", "0.4793166", "0.4791232", "0.4777522", "0.47765374", "0.4757385", "0.47449416", "0.47448117", "0.4734326", "0.4733547", "0.4717301", "0.4713845", "0.4713845" ]
0.60823333
0
Checks if the class has a isInputTo property value.
boolean hasIsInputTo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isInput() {\n return input;\n }", "@Override\n\tpublic boolean isInputPort() {\n\t\tif (getFlexoPort() != null) {\n\t\t\treturn getFlexoPort().isInPort();\n\t\t}\n\t\treturn false;\n\t}", "public boolean is_set_inputs() {\n return this.inputs != null;\n }", "boolean hasInputConfig();", "boolean hasInputConfig();", "boolean hasInputConfig();", "Collection<? extends MethodCall> getIsInputTo();", "public boolean isSetInputNodeId() {\n return this.inputNodeId != null;\n }", "private boolean nodeRequiresInput() {\n boolean requiresInput = false;\n \n return requiresInput;\n }", "boolean hasInputConstraints();", "boolean isInputNeuron();", "protected abstract boolean checkInput();", "public boolean hasInputs() {\n return fieldSetFlags()[4];\n }", "protected abstract boolean isInputValid();", "public Boolean isInputOver() {\n if (this.currentState == states.INPUT) {\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "public boolean hasInput() {\n return basePackage != DEFAULT_BASE_PACKAGE\n || !basePackages.isEmpty()\n || bannedImport != null\n || !bannedImports.isEmpty()\n || allowedImport != null\n || !allowedImports.isEmpty()\n || exclusion != null\n || !exclusions.isEmpty();\n }", "public boolean checkInput();", "@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}", "public boolean getInputsRelated(){\n return inputsRelated;\n }", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "public void setInput(boolean input) {\n this.input = input;\n }", "private boolean isInputAllowed() {\n return entered && gameRenderer != null && gameRenderer.isDyingUnitAnimationCompleted() &&\n inGameContext != null && inGameContext.isActionCompleted() && inputAllowed && !blockAllInput;\n }", "public boolean isProperty();", "private boolean isInputValid() {\n return true;\n }", "boolean hasTo();", "boolean hasPropType();", "boolean isSetTarget();", "protected boolean isConsumingInput() {\r\n return true;\r\n }", "@java.lang.Override\n public boolean hasInputIds() {\n return inputSourceCase_ == 2;\n }", "public final boolean getInputAllowNull() {\n\t\treturn wInputAllowNull;\n\t}", "@java.lang.Override\n public boolean hasInputIds() {\n return inputSourceCase_ == 2;\n }", "public static boolean canTransferToProperty( TestProperty source, TestProperty target )\r\n \t{\r\n \t\treturn false;\r\n \t}", "public abstract boolean listenerUserInput();", "public boolean isInputEnabled() {\r\n return inputEnabled;\r\n }", "@java.lang.Override\n public boolean hasInputsCount() {\n return inputsCount_ != null;\n }", "private boolean hasInput(TextView numberInput) {\n return numberInput.getText().length() > 0;\n }", "boolean getCalledOnNullInput();", "private void checkUserInput() {\n }", "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }", "public abstract boolean supportsMultipleInputs();", "public boolean hasTo() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean validateInput() {\n\n\t\t\tif (config.isNull()) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tOutputConfig newConfig = new OutputConfig(type, \"\");\n\t\t\tfor (FlagPanel thePanel : flagPanels) {\n\t\t\t\tnewConfig.flags[thePanel.flagIndex] = thePanel.getFlag();\n\t\t\t\tif (newConfig.flags[thePanel.flagIndex] != config.flags[thePanel.flagIndex]) {\n\t\t\t\t\tconfig = newConfig;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean checkInput(String xmlid,XMLParameter env, Map input, Map output, Map config) throws Exception {\n return true;\n }", "public boolean hasTo() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isSetTargetType() {\n return this.targetType != null;\n }", "protected abstract boolean isInputValid(@NotNull ConversationContext context, @NotNull String input);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkInputMethod() {\n\t\tboolean flag = oTest.checkInputMethod();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "boolean isSetDirection();", "public abstract boolean verifyInput();", "public abstract void setInput(boolean value);", "@Override\n public boolean getCalledOnNullInput() {\n return calledOnNullInput_;\n }", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "void addIsInputTo(MethodCall newIsInputTo);", "boolean hasFrom();", "@Override\n public boolean getCalledOnNullInput() {\n return calledOnNullInput_;\n }", "boolean hasForwardingParams();", "public boolean isSetSender() {\n return this.sender != null;\n }", "@java.lang.Override\n public boolean hasInputsWithMetadataCount() {\n return inputsWithMetadataCount_ != null;\n }", "public boolean isSetInputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(INPUTENCODING$16) != null;\n }\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "boolean hasConversionAction();", "boolean hasConversionAction();", "public boolean isInputPortEngaged(String terminal) {\n\t\treturn inputportTerminals.contains(terminal);\n\n\t}", "private boolean readHasCorrespondingIsProperty(Method paramMethod, Class paramClass) {\n/* 294 */ return false;\n/* */ }", "public boolean isSetToUserId() {\n return this.toUserId != null;\n }", "public abstract boolean isTarget();", "protected abstract int isValidInput();", "public boolean isSetValue() {\n return this.value != null;\n }", "boolean hasIsBinding();", "public boolean isRequired();", "private boolean isInt(TextField input){\r\n input.setStyle(\"-fx-border-color: green; -fx-border-radius: 15;-fx-background-radius: 20;\");\r\n try {\r\n int number = Integer.parseInt(input.getText());\r\n System.out.println(\"Input is\" + number );\r\n return true;\r\n } catch (Exception e) {\r\n input.setStyle(\"-fx-border-color: red;\");\r\n input.setText(null);\r\n input.setPromptText(\"Only digits/numbers must be filled\");\r\n return false;\r\n }\r\n }", "public boolean canHandleConverter(Class<?> clazz)\n {\n return ClassUtils.isAssignable(clazz, targetClass);\n }", "boolean isRequired();", "boolean isRequired();", "boolean isRequired();", "final boolean is(Class<?> type) {\n return type.isAssignableFrom(targetType());\n }", "public boolean iCurrentInputSourceHasSignal() {\n\t\treturn mTVInputManager.getDefaultOutput().hasSignal();\n\t}", "public boolean isInputModelReady()\n {\n return inputModelReady;\n }", "public boolean isOntoProperty(String property)\r\n\t{\r\n\t\treturn ! (obtainOntProperty(property) instanceof DatatypeProperty);\r\n\t}", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "@Override\n\tpublic boolean isOutputPort() {\n\t\tif (getFlexoPort() != null) {\n\t\t\treturn getFlexoPort().isOutPort();\n\t\t}\n\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasFrameInputsCount() {\n return frameInputsCount_ != null;\n }", "public interface InputParam extends Parameter {\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isEquivalent\r\n */\r\n \r\n /**\r\n * Gets all property values for the isEquivalent property.<p>\r\n * \r\n * @returns a collection of values for the isEquivalent property.\r\n */\r\n Collection<? extends Noun> getIsEquivalent();\r\n\r\n /**\r\n * Checks if the class has a isEquivalent property value.<p>\r\n * \r\n * @return true if there is a isEquivalent property value.\r\n */\r\n boolean hasIsEquivalent();\r\n\r\n /**\r\n * Adds a isEquivalent property value.<p>\r\n * \r\n * @param newIsEquivalent the isEquivalent property value to be added\r\n */\r\n void addIsEquivalent(Noun newIsEquivalent);\r\n\r\n /**\r\n * Removes a isEquivalent property value.<p>\r\n * \r\n * @param oldIsEquivalent the isEquivalent property value to be removed.\r\n */\r\n void removeIsEquivalent(Noun oldIsEquivalent);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isInputTo\r\n */\r\n \r\n /**\r\n * Gets all property values for the isInputTo property.<p>\r\n * \r\n * @returns a collection of values for the isInputTo property.\r\n */\r\n Collection<? extends MethodCall> getIsInputTo();\r\n\r\n /**\r\n * Checks if the class has a isInputTo property value.<p>\r\n * \r\n * @return true if there is a isInputTo property value.\r\n */\r\n boolean hasIsInputTo();\r\n\r\n /**\r\n * Adds a isInputTo property value.<p>\r\n * \r\n * @param newIsInputTo the isInputTo property value to be added\r\n */\r\n void addIsInputTo(MethodCall newIsInputTo);\r\n\r\n /**\r\n * Removes a isInputTo property value.<p>\r\n * \r\n * @param oldIsInputTo the isInputTo property value to be removed.\r\n */\r\n void removeIsInputTo(MethodCall oldIsInputTo);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#Label\r\n */\r\n \r\n /**\r\n * Gets all property values for the Label property.<p>\r\n * \r\n * @returns a collection of values for the Label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a Label property value.<p>\r\n * \r\n * @return true if there is a Label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a Label property value.<p>\r\n * \r\n * @param newLabel the Label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a Label property value.<p>\r\n * \r\n * @param oldLabel the Label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "public boolean isRequiredParam() {\n return this.isRequiredParam;\n }", "public boolean isEntered();", "public boolean isClass() {\n return operation == null;\n }", "private boolean isfieldPasteable(OwField prop_p, OwObject clipboardObject_p) throws Exception\r\n {\r\n try\r\n {\r\n OwField clipboardfield = clipboardObject_p.getProperty(prop_p.getFieldDefinition().getClassName());\r\n\r\n return (clipboardfield.getFieldDefinition().getJavaClassName().equals(prop_p.getFieldDefinition().getJavaClassName()) && (clipboardfield.getValue() != null));\r\n }\r\n catch (OwObjectNotFoundException e)\r\n {\r\n return false;\r\n }\r\n }", "public abstract Object getInput ();", "boolean isSetValue();", "boolean isSetValue();", "private boolean isMove() {\n return this.getMoves().size() != 0;\n }" ]
[ "0.68998754", "0.66851795", "0.64113516", "0.6370244", "0.6370244", "0.6370244", "0.6296843", "0.6247213", "0.61499524", "0.6056911", "0.59946245", "0.5977424", "0.5958874", "0.58558804", "0.5847082", "0.5830221", "0.5765294", "0.56667054", "0.5592192", "0.5592192", "0.5582399", "0.55237526", "0.5491061", "0.5458992", "0.54475033", "0.543387", "0.5432544", "0.5396529", "0.5377732", "0.5372174", "0.535502", "0.534913", "0.53448135", "0.53039974", "0.5278585", "0.5269508", "0.52691007", "0.52473265", "0.5222588", "0.5220265", "0.52062935", "0.51993006", "0.5186711", "0.51771146", "0.51725006", "0.5168701", "0.5140063", "0.5114303", "0.5095937", "0.50916564", "0.50769484", "0.50393087", "0.5025461", "0.5022728", "0.5022728", "0.5022728", "0.5017122", "0.50094324", "0.5008466", "0.500184", "0.49970204", "0.49970204", "0.49963063", "0.49949893", "0.49860516", "0.49860516", "0.49830282", "0.4981177", "0.497623", "0.49740115", "0.49716738", "0.4964742", "0.49625543", "0.49612847", "0.49608094", "0.4958059", "0.49396288", "0.49396288", "0.49396288", "0.49350634", "0.4917265", "0.4909816", "0.48794836", "0.4878946", "0.4878946", "0.4878946", "0.4878946", "0.4878946", "0.4878946", "0.4859984", "0.48422337", "0.4833293", "0.48309025", "0.48277602", "0.48117018", "0.48095283", "0.480468", "0.48014966", "0.48014966", "0.4787296" ]
0.7682248
0
Adds a isInputTo property value.
void addIsInputTo(MethodCall newIsInputTo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInput(boolean input) {\n this.input = input;\n }", "boolean hasIsInputTo();", "public boolean isInput() {\n return input;\n }", "public abstract void setInput(boolean value);", "public void setInput(Input input) {\n this.input = input;\n }", "ListeningFuture<Boolean> setInput(String input);", "Collection<? extends MethodCall> getIsInputTo();", "public void addInputParameter(String name, Object value) {\n\t\taddInputParameter(new Parameter(name, value));\n\t}", "public boolean getInputsRelated(){\n return inputsRelated;\n }", "public YuiProperty(String toBy, String from, boolean isTo)\r\n\t{\r\n\t\tif (isTo == true)\r\n\t\t{\r\n\t\t\tthis.to = toBy;\r\n\t\t\tthis.from = from;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.by = toBy;\r\n\t\t\tthis.from = from;\r\n\t\t}\r\n\t}", "public void setInput(String input);", "@Override\n\tpublic boolean isInputPort() {\n\t\tif (getFlexoPort() != null) {\n\t\t\treturn getFlexoPort().isInPort();\n\t\t}\n\t\treturn false;\n\t}", "private boolean nodeRequiresInput() {\n boolean requiresInput = false;\n \n return requiresInput;\n }", "public void setInput(String input) { this.input = input; }", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.localInput = param;\r\n }", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", "public void addInput(ResourceMRInput input) {\n\t\tsuper.add(input.getId());\n\t}", "public boolean isSetInputNodeId() {\n return this.inputNodeId != null;\n }", "public void setInput(String input){\n this.input = input;\n }", "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "public void setInput(String input) {\n\t\t\tthis.input = input;\n\t\t}", "public YuiProperty(String toBy, String from, String unit, boolean isTo)\r\n\t{\r\n\t\tif (isTo == true)\r\n\t\t{\r\n\t\t\tthis.to = toBy;\r\n\t\t\tthis.from = from;\r\n\t\t\tthis.unit = unit;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.by = toBy;\r\n\t\t\tthis.from = from;\r\n\t\t\tthis.unit = unit;\r\n\t\t}\r\n\t}", "public TextBotFlowTurnRequest inputEventUserInput(TextBotUserInputEvent inputEventUserInput) {\n this.inputEventUserInput = inputEventUserInput;\n return this;\n }", "public void setInput(boolean inputA, boolean inputB) {\n mAndGate.setInput(inputA, inputB);\n mXorGate.setInput(inputA, inputB);\n }", "public boolean is_set_inputs() {\n return this.inputs != null;\n }", "public void writeObject(Obj input){\n\t\tlong newFanSpeedSetpointValue = 0;\n\t\tif(input instanceof FanSpeedActuator){\n\t\t\tFanSpeedActuator in = (FanSpeedActuator) input;\n\t\t\tlog.finer(\"Writing on FanSpeedActuator: \" + in.fanSpeedSetpointValue().get() + \",\" + in.enabled().get());\n\t\t\t\n\t\t\tnewFanSpeedSetpointValue = in.fanSpeedSetpointValue().get();\t\n\t\t\tenabledValue.set(in.enabled().get());\n\t\t\t\n\t\t}\n\t\telse if(input instanceof Int){\n\t\t\tnewFanSpeedSetpointValue = ((Int) input).get();\n\t\t}\n\t\telse if(input instanceof Bool){\n\t\t\tthis.enabledValue.set(((Bool) input).get());\n\t\t}\n\t\tthis.fanSpeedSetpointValue.set(newFanSpeedSetpointValue);\n\t}", "public void addInputNode(Node node) {\n\t\t// nodes.add(node);\n\t\tnodeArray.add(node);\n\t}", "public interface MyInputChannel {\n\n String INPUT = \"source\";\n @Input(INPUT)\n SubscribableChannel source();\n}", "boolean isInputNeuron();", "public interface InputParam extends Parameter {\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isEquivalent\r\n */\r\n \r\n /**\r\n * Gets all property values for the isEquivalent property.<p>\r\n * \r\n * @returns a collection of values for the isEquivalent property.\r\n */\r\n Collection<? extends Noun> getIsEquivalent();\r\n\r\n /**\r\n * Checks if the class has a isEquivalent property value.<p>\r\n * \r\n * @return true if there is a isEquivalent property value.\r\n */\r\n boolean hasIsEquivalent();\r\n\r\n /**\r\n * Adds a isEquivalent property value.<p>\r\n * \r\n * @param newIsEquivalent the isEquivalent property value to be added\r\n */\r\n void addIsEquivalent(Noun newIsEquivalent);\r\n\r\n /**\r\n * Removes a isEquivalent property value.<p>\r\n * \r\n * @param oldIsEquivalent the isEquivalent property value to be removed.\r\n */\r\n void removeIsEquivalent(Noun oldIsEquivalent);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isInputTo\r\n */\r\n \r\n /**\r\n * Gets all property values for the isInputTo property.<p>\r\n * \r\n * @returns a collection of values for the isInputTo property.\r\n */\r\n Collection<? extends MethodCall> getIsInputTo();\r\n\r\n /**\r\n * Checks if the class has a isInputTo property value.<p>\r\n * \r\n * @return true if there is a isInputTo property value.\r\n */\r\n boolean hasIsInputTo();\r\n\r\n /**\r\n * Adds a isInputTo property value.<p>\r\n * \r\n * @param newIsInputTo the isInputTo property value to be added\r\n */\r\n void addIsInputTo(MethodCall newIsInputTo);\r\n\r\n /**\r\n * Removes a isInputTo property value.<p>\r\n * \r\n * @param oldIsInputTo the isInputTo property value to be removed.\r\n */\r\n void removeIsInputTo(MethodCall oldIsInputTo);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#Label\r\n */\r\n \r\n /**\r\n * Gets all property values for the Label property.<p>\r\n * \r\n * @returns a collection of values for the Label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a Label property value.<p>\r\n * \r\n * @return true if there is a Label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a Label property value.<p>\r\n * \r\n * @param newLabel the Label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a Label property value.<p>\r\n * \r\n * @param oldLabel the Label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Specify the input format.\")\n @JsonProperty(JSON_PROPERTY_INPUT)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public InputEnum getInput() {\n return input;\n }", "Input createInput();", "public void setInIn(InputInteractions inIn) {\r\n\t\t// assegna le interazioni di input\r\n\t\tthis.InIn = inIn;\r\n\t}", "public void addInput(@Nonnull Source source) {\r\n source.init(this);\r\n inputs.add(source);\r\n }", "com.indosat.eai.catalist.standardInputOutput.DummyInputType addNewInput();", "@Override\r\n\tpublic void notify(DelegateTask delegateTask) {\n\t\tboolean var = (boolean) delegateTask.getVariable(\"input\");\r\n\t\tvar=true;\r\n\t\tdelegateTask.setVariable(\"input\", var);\t\t\r\n\t}", "boolean hasInputConfig();", "boolean hasInputConfig();", "boolean hasInputConfig();", "public void enableInputs();", "public void setInput(InputHandler input) {\r\n\t\tthis.input = input;\r\n\t}", "private void setToEdit(String input){\n ToEdit = input;\n }", "public InputParameterModel putInputParameter()\n {\n\n return createHypermediaURIs(oSQLITEController.putInputParameter( oInputParameter));\n }", "InputValueDefinition createInputValueDefinition();", "public boolean isInputEnabled() {\r\n return inputEnabled;\r\n }", "public void onSetUserInputEnabled() {\n }", "public abstract boolean listenerUserInput();", "@Override\n public Accum addInput(Accum mutableAccumulator, Long input) {\n double x = -1 + 2 * Math.random(); // o pCollection de boolean, cu group numeram cate au nimerit tinta,\n double y = -1 + 2 * Math.random();\n if (x * x + y * y <= 1.0) {\n return mutableAccumulator.newFromInsideEvent();\n }\n return mutableAccumulator.newFromOutsideEvent();\n }", "public void setInput(File input) {\r\n if (inputString != null) {\r\n throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \" + \"attributes cannot both be specified\");\r\n }\r\n this.input = input;\r\n incompatibleWithSpawn = true;\r\n }", "public void setInput1(int input1) {\n this.input1 = input1;\n }", "public void addInputDataValue(String inputDataValue) {\n\t\tif (inputDataValue.startsWith(\"\\\"\") || inputDataValue.startsWith(\"\\'\")) {\n\t\t\tinputDataValue = inputDataValue.substring(1);\n\t\t}\n\t\tif (inputDataValue.endsWith(\"\\\"\") || inputDataValue.endsWith(\"\\'\")) {\n\t\t\tinputDataValue = inputDataValue.substring(0, inputDataValue.length()-1);\n\t\t}\n\t\tthis.inputDataValues.add(inputDataValue);\n\t}", "public Boolean isInputOver() {\n if (this.currentState == states.INPUT) {\n return true;\n }\n return false;\n }", "private AddAction makeAddAction(boolean isImpt, String input)\r\n throws MakeActionException, InvalidDateRangeException {\r\n if (params.length == 0) {\r\n throw new MakeActionException(AddAction.ERR_INSUFFICIENT_ARGS);\r\n }\r\n AddAction addAction = new AddAction(goku);\r\n addAction.input = input;\r\n\r\n if (isImpt == true) {\r\n addAction.isImpt = true;\r\n }\r\n DateTime dl = extractDeadline();\r\n DateRange dr = extractPeriod();\r\n addAction.dline = dl;\r\n addAction.period = dr;\r\n addAction.title = extractTitle();\r\n return addAction;\r\n }", "protected void forwardToInput(T value) {\n inputModel.setValue(value);\n }", "public abstract BasicInput createInput( boolean isSeq ) throws IOException;", "@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}", "public void setInputBy(String inputBy) {\n this.inputBy = inputBy == null ? null : inputBy.trim();\n }", "public void appendInputValue(String value, boolean opFlag) {\n\t\tif( opFlag == true || calcDisplay.getText().equals(DEFAULT_VALUE) ) {\n\t\t\tcalcDisplay.setText(value);\n\t\t}\n\t\telse {\n\t\t\tcalcDisplay.setText( calcDisplay.getText() + value );\n\t\t}\n\t}", "void addIsPersonType(Integer newIsPersonType);", "protected abstract void registerInput();", "public void setOuIn(OutputInteractions ouIn) {\r\n\t\t// assegna le interazioni di output\r\n\t\tthis.OuIn = ouIn;\r\n\t}", "public Builder addInputs(org.hyperledger.fabric.protos.token.Transaction.InputId value) {\n if (inputsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInputsIsMutable();\n inputs_.add(value);\n onChanged();\n } else {\n inputsBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addInputs(org.hyperledger.fabric.protos.token.Transaction.InputId value) {\n if (inputsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInputsIsMutable();\n inputs_.add(value);\n onChanged();\n } else {\n inputsBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addInputs(org.hyperledger.fabric.protos.token.Transaction.InputId value) {\n if (inputsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInputsIsMutable();\n inputs_.add(value);\n onChanged();\n } else {\n inputsBuilder_.addMessage(value);\n }\n return this;\n }", "public final void addAsString(boolean in)\n\t{\n\t\tif (in)\n\t\t{\n\t\t\tthis.add(BoolToString_True);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.add(BoolToString_False);\n\t\t}\n\t}", "public void setInputPath(String inputPath) {\n\t\tthis.inputPath = inputPath;\n\t}", "synchronized void giveInput(int input) {\n this.input = input;\n inputGiven = true;\n notifyAll();\n }", "public String getInputBy() {\n return inputBy;\n }", "public boolean parseAndSetInputParameter(String inArg) {\r\n\t\tif (inArg.startsWith(\"-\"))\r\n\t\t\treturn false;\r\n\t\tthis.inArg = inArg;\r\n\t\treturn true;\r\n\t}", "@Override\npublic void userInputUpdated(boolean newVal) {\n\t\n}", "public void setInputUser(String inputUser) {\n this.inputUser = inputUser == null ? null : inputUser.trim();\n }", "private void createInputVar(Activity activity, Element saElement,\n\t\t\tProcess process, DataInputUI sa) {\n\t\tString inputVarName = saElement.getAttribute(\n\t\t\t\tModelPackage.eINSTANCE.\n\t\t\t\tgetDataInputUI_InputVariable().getName());\n\t\tif (inputVarName!=null && !\"\".equals(inputVarName.trim())) {\n\t\t\tVariable[] vars = ModelHelper.getVisibleVariables(activity.getContainer());\n\t\t\t//Set<Variable> myVars = getMyVars(activity);\n\t\t\t//TODO deal with Scope Variables\n\t\t\tfor (Variable variable : process.getVariables().getChildren()) {\n\t\t\t\tif (inputVarName.equals(variable.getName())) {\n\t\t\t\t\tsa.setInputVariable(variable);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void setInput(Input i) {\r\n \tif (input!=null)\r\n \t\tinput.removeListener(INPUT_LISTENER);\r\n input = i;\r\n input.removeListener(INPUT_LISTENER);\r\n input.addPrimaryListener(INPUT_LISTENER);\r\n }", "public boolean setFormInput(Object input) {\r\n\t\tboolean overall = false;\r\n\t\tfor( IFormPart part : _parts ) {\r\n\t\t\tif ( part.setFormInput( input ) && !overall ) overall = true;\r\n\t\t}\r\n\t\treturn overall;\r\n\t}", "private void requestInput(RequestType type){\n inputType = type;\n inputMessage.setText(\"Input path below\");\n stage.setScene(input);\n }", "InputsType getInputs();", "void removeIsInputTo(MethodCall oldIsInputTo);", "@java.lang.Override\n public boolean hasInputIds() {\n return inputSourceCase_ == 2;\n }", "@java.lang.Override\n public boolean hasInputIds() {\n return inputSourceCase_ == 2;\n }", "void registerInputConnector(String name, InputConnector in);", "public void setInput2(int input2) {\n this.input2 = input2;\n }", "public DocumentLifecycleWorkflowRequest setInputPath(String inputPath) {\n\t\tthis.inputPath = inputPath;\n\t\treturn this;\n\t}", "public void getUserInput(int direction) { this.direction = direction; }", "public void setInputor(String inputor) {\r\n\t\tthis.inputor = inputor;\r\n\t}", "INPUT createINPUT();", "public boolean hasInputs() {\n return fieldSetFlags()[4];\n }", "public void onInputSignalChange(String input, boolean hasSignal) {\n\n\t\t}", "public void addInput(Input input, int weight) {\n lastNeuron().addInput(input, weight);\n }", "public void setInput1(final String input1) {\n this.input1 = input1;\n }", "static void setInputFromAction(IAdaptable input) {\n\t\tif (input instanceof IJavaElement)\n\t\t\tfgJavaElementFromAction= (IJavaElement)input;\n\t\telse\n\t\t\tfgJavaElementFromAction= null;\n\t}", "public boolean setInput(ArrayList<Double> inputs){\n if(inputs.size() != inputSize)return false;\n this.inputs = inputs;\n return true;\n }", "public static void addInputProcessor(final InputProcessor processor){\n if (Gdx.input.getInputProcessor() == null){\n Gdx.input.setInputProcessor(processor);\n }else{//use multiplexer if more than one input processor\n inpMulPlex = new InputMultiplexer(Gdx.input.getInputProcessor());\n inpMulPlex.addProcessor(processor);\n Gdx.input.setInputProcessor(inpMulPlex);\n }\n }", "public static void addBooleanData(OWLIndividual owlIndi, boolean value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(Boolean.toString(value), factory.getOWLDatatype(xsdBoolean));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "public abstract InputListener getInputListener(GameObject object);", "public abstract Object getInput ();", "public interface ProfilePINEnable\n {\n /**\n * no need input pin\n */\n String NEEDLESS_INPUT = \"0\";\n\n /**\n * need input pin\n */\n String NEED_INPUT = \"1\";\n }", "public void addInput(double singleNodeInput) {\n\t\tinputs.add(singleNodeInput);\n\t\tinput += singleNodeInput;\n\t\tinputCounter++;\n\t\tif (inputCounter >= prevLayerNodes.size()) {\n\t\t\t//System.out.printf(\"Input = %f%n\", input);\n//\t\t\tif (prevLayerNodes.size() == 0) {\n//\t\t\t\t// Handle the input layer, no activation function necessary\n//\t\t\t\toutput = input;\n//\t\t\t} else {\n\t\t\t\toutput = nodeActivationFunction.getOutput(input);\n//\t\t\t}\n\t\t\tpreActivationFunctionOutput = input;\n\t\t\tinput = 0;\n\t\t\t//System.out.printf(\"Output = %f%n\", output);\n//\t\t\tSystem.out.printf(\"Firing...input counter = %d%n\", inputCounter);\n//\t\t\tfor (int i = 0; i < inputs.size(); i++) {\n//\t\t\t\tSystem.out.printf(\"%f,\", inputs.get(i));\n//\t\t\t}\n//\t\t\tSystem.out.println();\n\t\t\tinputs.clear();\n\t\t\tinputCounter = 0;\n\t\t\tfire();\n\t\t}\n\t\t// test printing for input layer\n\t\tif (prevLayerNodes.size() == 0) {\n\t\t\tSystem.out.printf(\"\tInput layer output = %f%n\", output);\n\t\t}\n\t}", "public abstract boolean supportsMultipleInputs();", "public SimpleStringProperty getButtonInput() {\n return buttonInput;\n }" ]
[ "0.6259129", "0.60087305", "0.59847593", "0.57743895", "0.5513591", "0.53069025", "0.52885395", "0.51598513", "0.51503474", "0.5143715", "0.51158184", "0.51092434", "0.5065722", "0.505698", "0.504094", "0.4980632", "0.49716598", "0.49451536", "0.4943464", "0.4938002", "0.4898198", "0.4873781", "0.48715776", "0.48560786", "0.4854008", "0.48343185", "0.48091385", "0.48038965", "0.47870877", "0.47638664", "0.4761712", "0.47523105", "0.47522837", "0.4710327", "0.4709298", "0.46815372", "0.46801773", "0.46801773", "0.46801773", "0.46739957", "0.46721426", "0.46652013", "0.46535492", "0.46361828", "0.46351737", "0.46346647", "0.46211317", "0.45671776", "0.45401028", "0.45242217", "0.4502556", "0.4485707", "0.4479078", "0.44746327", "0.44714993", "0.44629383", "0.44629383", "0.44624823", "0.44529936", "0.44525906", "0.44442093", "0.4440483", "0.44301182", "0.44301182", "0.44301182", "0.44159025", "0.44039142", "0.44005686", "0.4393075", "0.43844384", "0.4382341", "0.43804535", "0.43547133", "0.4336168", "0.4334258", "0.43203494", "0.43177965", "0.43176603", "0.43095475", "0.430855", "0.43085068", "0.43035695", "0.4302307", "0.43008757", "0.42992723", "0.4297559", "0.4293954", "0.4284035", "0.42749965", "0.42529982", "0.4249173", "0.42481124", "0.42451048", "0.42407808", "0.4235723", "0.42195687", "0.42189184", "0.4217334", "0.42100853", "0.42032176" ]
0.62768555
0
Removes a isInputTo property value.
void removeIsInputTo(MethodCall oldIsInputTo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeInputType(IInputType type);", "public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\");\n if (inputParameters != null) {\n inputParameters.remove(name);\n }\n }\n }", "public void disconnectInput(Link link) {\n\t\tinputLinks.remove(link);\n\t\tinputLinksHash.remove(link.getTargetTerminal());\n\t\tupdateConnectionProperty(Props.INPUTS.getValue(), link);\n\t}", "void removeAttribute(Attribute attToDel, boolean inputAtt, int whichAtt){\r\n\t\tint newSize;\r\n\r\n\t\t//Getting the vector\r\n\t\tint index = 0;\r\n\t\tif (!inputAtt){ \r\n\t\t\tnewSize = --numOutputAttributes;\r\n\t\t\tindex = 1;\r\n\t\t}else newSize = --numInputAttributes;\r\n\r\n\t\t//The number of undefined attributes is increased. \r\n\t\t++numUndefinedAttributes;\r\n\r\n\t\t//It search the absolute position of the attribute to be\r\n\t\t//removed in the list of undefined attributes\r\n\t\tint undefPosition = Attributes.searchUndefPosition(attToDel);\r\n\r\n\t\t//Reserving auxiliar memory to reconstruct the input or output\r\n\t\tString [] nominalValuesAux = new String[newSize];\r\n\t\tint [] intNominalValuesAux = new int[newSize];\r\n\t\tdouble [] realValuesAux = new double[newSize];\r\n\t\tboolean [] missingValuesAux = new boolean[newSize];\r\n\r\n\t\t//Reserving auxiliar memory to reconstruct the undefined att's\r\n\t\tString [] nominalValuesUndef = new String[numUndefinedAttributes];\r\n\t\tint [] intNominalValuesUndef = new int[numUndefinedAttributes];\r\n\t\tdouble[] realValuesUndef = new double[numUndefinedAttributes];\r\n\t\tboolean []missingValuesUndef = new boolean[numUndefinedAttributes];\r\n\r\n\t\t//Copying the values without the removed attribute\r\n\t\tint k=0;\r\n\t\tanyMissingValue[index] = false;\r\n\t\tfor (int i=0; i<newSize+1; i++){\r\n\t\t\tif (i != whichAtt){\r\n\t\t\t\tnominalValuesAux[k] = nominalValues[index][i];\r\n\t\t\t\tintNominalValuesAux[k] = intNominalValues[index][i];\r\n\t\t\t\trealValuesAux[k] = realValues[index][i];\r\n\t\t\t\tmissingValuesAux[k] = missingValues[index][i];\r\n\t\t\t\tif (missingValuesAux[k]) anyMissingValue[index] = true;\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tnominalValuesUndef[undefPosition] = nominalValues[index][i];\r\n\t\t\t\tintNominalValuesUndef[undefPosition] = intNominalValues[index][i];\r\n\t\t\t\trealValuesUndef[undefPosition] = realValues[index][i];\r\n\t\t\t\tmissingValuesUndef[undefPosition] = missingValues[index][i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Copying the rest of the undefined values\r\n\t\tk=0;\r\n\t\tfor (int i=0; i<numUndefinedAttributes; i++){\r\n\t\t\tif (i==undefPosition) continue;\r\n\t\t\tnominalValuesUndef[i] = nominalValues[Instance.ATT_NONDEF][k];\r\n\t\t\tintNominalValuesUndef[i] = intNominalValues[Instance.ATT_NONDEF][k];\r\n\t\t\trealValuesUndef[i] = realValues[Instance.ATT_NONDEF][k];\r\n\t\t\tmissingValuesUndef[i] = missingValues[Instance.ATT_NONDEF][k];\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\t//Copying the new vectors without the information of the removed attribute.\r\n\t\tnominalValues[index] = nominalValuesAux;\r\n\t\tintNominalValues[index] = intNominalValuesAux;\r\n\t\trealValues[index] = realValuesAux;\r\n\t\tmissingValues[index] = missingValuesAux; \r\n\t\t//The undefined attributes\r\n\t\tnominalValues[Instance.ATT_NONDEF] = nominalValuesUndef;\r\n\t\tintNominalValues[Instance.ATT_NONDEF] = intNominalValuesUndef;\r\n\t\trealValues[Instance.ATT_NONDEF] = realValuesUndef;\r\n\t\tmissingValues[Instance.ATT_NONDEF] = missingValuesUndef;\r\n\t}", "Property removeValue(PropertyValue<?, ?> value);", "public void setInput(boolean input) {\n this.input = input;\n }", "public void disableInputs();", "public void removeOutputType(IOutputType type);", "void unsetValue();", "void unsetValue();", "public static void unfocusInputProcessor(){\n for (InputProcessor ip : inactiveInpProcssrs) {\n inpMulPlex.addProcessor(ip);\n }\n }", "boolean removAble(InputItem item);", "boolean hasIsInputTo();", "public void removeFromGame(){\n this.isInGame = false;\n }", "public void removeProperty(TLProperty element);", "private native void clearInput(Element input) /*-{\n if (input.selectionEnd)\n input.selectionEnd = input.selectionStart;\n else if ($doc.selection)\n $doc.selection.clear();\n }-*/;", "public void removeUserDefinedProperty(String propertyName);", "void removeIsPersonType(Integer oldIsPersonType);", "boolean removeTypedParameter(Parameter typedParameter);", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearInputs() {\n inputs = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public void unsetInputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(INPUTENCODING$16);\n }\n }", "public Object resetInputMessage(Object message);", "private static void removeValue(ISet set, Scanner in)\n {\n if (set.getSize() == 0)\n System.out.println(\"Can't remove from an empty set!\");\n else {\n int pos;\n boolean valid;\n do {\n System.out.println(\"What position should be removed from the set?\");\n pos = Integer.parseInt(in.nextLine());\n valid = (pos >= 0 && pos < set.getSize());\n if (!valid)\n System.out.println(\"That's not a valid position\");\n } while (!valid);\n set.removePos(pos);\n }\n }", "void unsetDirection();", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "boolean removeObjectFlowState(ObjectFlowState objectFlowState);", "private void clearInputFieldStyle(){\n nameInput.styleProperty().setValue(\"\");\n cogInput.styleProperty().setValue(\"\");\n wheelBaseInput.styleProperty().setValue(\"\");\n frontRollDistInput.styleProperty().setValue(\"\");\n cornerWeightFLInput.styleProperty().setValue(\"\");\n cornerWeightRLInput.styleProperty().setValue(\"\");\n cornerWeightRRInput.styleProperty().setValue(\"\");\n cornerWeightFRInput.styleProperty().setValue(\"\");\n }", "void removeIncoming(NavArc arc) {\r\n assert arc != null;\r\n assert arc.getToVertex() == this : arc;\r\n\r\n boolean success = incoming.remove(arc);\r\n assert success : arc;\r\n }", "public void removePropertyChangeListener(PropertyChangeListener l);", "public void removeInterpretedBy(Contact value) {\r\n\t\tBase.remove(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}", "Form removeProperty(String key);", "public void remove(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tactors.removeValue(actor, true);\n\tactor.setChecked(false);\n }", "public void freeInputPort(String terminal) {\n\t\tinputportTerminals.remove(terminal);\n\t}", "public boolean isInput() {\n return input;\n }", "@Override\r\n\tpublic void unsetGiveValue() {\n\t\t\r\n\t}", "Property clearAndAddValue(PropertyValue<?, ?> value);", "void clearIsChanged();", "public boolean unfollow(ProfileInterface other);", "@Override\r\n public void removeFilterValue(String value) {\n }", "void removeHasXCoordinate(Object oldHasXCoordinate);", "@Override \n\tprotected boolean inputDrop(View view, DragEvent event)\n\t{// Remove the dropped item from the input\n\t\t// First, reset the input\n\t\tcontroller.input().setDrawables(MetaInputGrid.BODY, controller.drag().getBodyDrawables());\n\t\tcontroller.input().setDrawables(MetaInputGrid.EMOTE, controller.drag().getEmoteDrawables());\n\t\tcontroller.input().notifyDataSetChanged();\n\t\tcontroller.drag().setPivot(null); // This will ensure that InputOnDragListener does not reset the drawables\n\t\t\n\t\t// Next, remove the input\n\t\tcontroller.input().remove(controller.drag().getPosition());\n\t\t\n\t\t// Finally, Reset background and re render\n\t\tview.setBackgroundColor(CLEAR);\n\t\tcontroller.input().notifyDataSetChanged();\n\t\t\n\t\treturn true;\n\t}", "public abstract void removePropertyChangeListener(IPropertyChangeListener listener);", "public DeleteUserParameters setRemoveFromSharing(boolean removeFromSharing) {\n this.removeFromSharing = removeFromSharing;\n return this;\n }", "public void setRemove(Boolean newValue);", "void unsetValueQuantity();", "private void clearInPort() {\n \n inPort_ = 0;\n }", "private void clearInPort() {\n \n inPort_ = 0;\n }", "@Override\n public JSONDTO process(JSONDTO from) {\n this.logger.debug(\"Dropping request\");\n if(this.processor.isPresent())\n from = this.processor.get().process(from);\n // if JSONDTO is not subclass of DropableJSONDTO then omit\n if(from.getClass().isAssignableFrom(DropableJSONDTO.class)){\n for(String field : ((DropableJSONDTO) from).getToDrop())\n ((ObjectNode) from.getInput()).remove(field);\n }\n from.setOutput(\n from.getInput().toString()\n );\n return from;\n }", "@Override\n\tpublic void hide() {\n\t\t((InputMultiplexer)Gdx.input.getInputProcessor()).removeProcessor(ui);\n\t}", "public void removeListener(PropertyChangeListener listener, String propertyType);", "public void removeInvolvedPerson(InvolvedPerson value) {\r\n\t\tBase.remove(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}", "public void setInput(Input input) {\n this.input = input;\n }", "public abstract void setInput(boolean value);", "private PointCut removePointCut(PointCut p, Integer arg) {\n\t\tif (p.getType().equals(this.targetType)) {\n\t\t\tif (arg == 0) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tList<PointCut> pointcuts = new ArrayList<PointCut>();\n\t\t\t\treturn new CombinedPointCut(p.getBeginLine(), p.getBeginColumn(), \"&&\", pointcuts);\n\t\t\t}\n\t\t} else\n\t\t\treturn p;\n\t}", "void unsetRequired();", "@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }", "@Override\n\tpublic boolean removeChoice(String choice){\n\t\treturn false;\n\t}", "public Builder clearInputIds() {\n if (inputIdsBuilder_ == null) {\n if (inputSourceCase_ == 2) {\n inputSourceCase_ = 0;\n inputSource_ = null;\n onChanged();\n }\n } else {\n if (inputSourceCase_ == 2) {\n inputSourceCase_ = 0;\n inputSource_ = null;\n }\n inputIdsBuilder_.clear();\n }\n return this;\n }", "@PropertySetter(role = ANNOTATION)\n\tboolean removeAnnotation(CtAnnotation<? extends Annotation> annotation);", "public boolean removePoint(Point p);", "public boolean isSetInputNodeId() {\n return this.inputNodeId != null;\n }", "public void uncheck(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tactor.setChecked(false);\n }", "public void shutdownInput()\n throws IOException\n {\n synchronized (f_aBuffSingleInbound) // required for markKeysReadable\n {\n m_fInputShutdown = true;\n markKeysReadable(/*fReadable*/ true);\n }\n }", "public void unsetFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMNUMBER$2, 0);\n }\n }", "private String delete(String input_from_user) {\n\t System.out.println(\"Enter the position of the character to delete, index starts from zero\"+input_from_user);\n\t int get_position = in.nextInt();\n\t String result = null;\n\t if(get_position == 0){\n\t \t result = input_from_user.substring(1,input_from_user.length());\n\t \t System.out.println(result);\n\t }\n\t else{\n\t result = input_from_user.substring(0,get_position).concat(input_from_user.substring(get_position+1, input_from_user.length()));\n\t \t System.out.println(result);\n\t }\n\t return result;\n\t}", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "public abstract void removePropertyChangeListener(PropertyChangeListener listener);", "public static void setInput(Input i) {\r\n \tif (input!=null)\r\n \t\tinput.removeListener(INPUT_LISTENER);\r\n input = i;\r\n input.removeListener(INPUT_LISTENER);\r\n input.addPrimaryListener(INPUT_LISTENER);\r\n }", "public void generateUnset(PhpWriter out)\n throws IOException\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.generate(out);\n out.print(\".unsetField(\");\n out.printIntern(_name);\n out.print(\")\");\n }", "@FXML\n\tpublic void removeRegistrationPair() {\n\t\tRegistrationPair selected = m_registrationState.getSelected();\n\t\tm_registrationState.removePair(selected);\n\t}", "public void unset(AttributeDefinition attribute)\n throws ValueRequiredException, UnknownAttributeException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \" cannot be removed with unset method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void removePoint(Point2D p);", "public static base_response unset(nitro_service client, inatparam resource, String[] args) throws Exception{\n\t\tinatparam unsetresource = new inatparam();\n\t\treturn unsetresource.unset_resource(client,args);\n\t}", "public Builder clearBoolValue() {\n if (typeCase_ == 2) {\n typeCase_ = 0;\n type_ = null;\n onChanged();\n }\n return this;\n }", "public void releaseInput() {\n input.releaseStation();\n }", "PropertiesTask removeProperty( String key );", "void unsetValueAttachment();", "public void stopMovement() {\r\n this.canMove = false;\r\n }", "public void setInputUser(String inputUser) {\n this.inputUser = inputUser == null ? null : inputUser.trim();\n }", "@Override\n public void removeAddedBy(CsldUser toRemove) {\n }", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.localInput = param;\r\n }", "void graphRemoveProperty( int propertyKey );", "public void removeElement (int userInputElementToRemove){\n int i;\n for(i=userInputElementToRemove; i<sirDeLa1La100.length-1; i++) {\n sirDeLa1La100[i] = sirDeLa1La100[i + 1];\n }\n System.out.println(Arrays.toString(sirDeLa1La100));\n }", "public void updateListOfSelectedInputsForActivityRemoval(String outputID){\n \n //If listOfSelectedInputs contains a reference to output of service being removed, remove it from listOfSelectedInputs\n if(listOfSelectedInputs.containsKey(outputID))\n listOfSelectedInputs.remove(outputID);\n \n }", "void removeHas_action(Action oldHas_action);", "public Builder clearCalledOnNullInput() {\n\n calledOnNullInput_ = false;\n onChanged();\n return this;\n }", "public boolean removeProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return removeProperty(property);\n }\n return false;\n }", "public Builder clearInputsWithMetadataCount() {\n if (inputsWithMetadataCountBuilder_ == null) {\n inputsWithMetadataCount_ = null;\n onChanged();\n } else {\n inputsWithMetadataCount_ = null;\n inputsWithMetadataCountBuilder_ = null;\n }\n\n return this;\n }", "public void unsetSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(SOURCE$30);\n }\n }", "public void removePropertyChangeListener(PropertyChangeListener listener);", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void unsetGetValue() {\n\t\t\r\n\t}", "public Object removeProperty( String key );", "public void remove() {\n\tString fname = stdin.next();\n\tString lname = stdin.next();\n\tStudent s = new Instate(fname,lname,1,1); //temporary Instate object to allow us to remove\n\n\tboolean successfullyRemoved = cs213.remove(s);\n\tif (!successfullyRemoved) {\n\t\tSystem.out.println(fname + \" \" + lname + \" is not a student!\");\n\t\t}\n\t\telse {\n\t\tSystem.out.println(fname + \" \" + lname + \" has been removed!\");\n\t\t}\n\t\treturn;\n\t}", "public void remove(int type) {\n\t\tint n = check(type);\n\t\tif (n >= 64) {\n\t\t\tn1 &= ~mask(n - 64);\n\t\t} else {\n\t\t\tn0 &= ~mask(n);\n\t\t}\n\t}", "public void clearSearchInput() {\n if (filterable != null && JQMCommon.isFilterableReady(filterable)) {\n clearInput(filterable);\n }\n }", "public X removeInputMethodListener(InputMethodListener listener) {\n component.removeInputMethodListener(listener);\n return (X) this;\n }", "@Override\n\tpublic void clearFromInstruction(Instruction instruction) {\n\t\tIterator<Instruction> iterator = instructionRegister.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tif (iterator.next().seqNum >= instruction.seqNum) iterator.remove();\n\t\t}\n\t\t\n\t\t// Reset instruction pointer.\n\t\tint index = parsedInstructions.indexOf(instruction);\n\t\tif (instruction.isMispredicted()) {\n\t\t\tinstruction.flip();\n\t\t\tparsedInstructions.set(index, instruction);\n\t\t}\n\t\t\n\t\tinstructionNdx = index;\n\t}", "void unsetTarget();" ]
[ "0.6170249", "0.5303913", "0.5175902", "0.5129659", "0.49985242", "0.4995483", "0.49937472", "0.49449226", "0.48760498", "0.48760498", "0.48750934", "0.48650497", "0.4853748", "0.48338327", "0.48272777", "0.47893003", "0.4775116", "0.47616872", "0.47551122", "0.474312", "0.4718213", "0.47180647", "0.47159085", "0.4705758", "0.4691432", "0.4689228", "0.4667161", "0.46648124", "0.46581063", "0.46499056", "0.46489957", "0.4636884", "0.4633319", "0.4621441", "0.4615043", "0.46128795", "0.4607205", "0.45994383", "0.45932174", "0.45764717", "0.45555216", "0.45440403", "0.45408997", "0.45399413", "0.45303655", "0.45249343", "0.45249343", "0.4520936", "0.45154196", "0.45131758", "0.45130682", "0.45064002", "0.45045865", "0.45012042", "0.45011005", "0.44790643", "0.44753805", "0.44612846", "0.4460683", "0.44510737", "0.4444536", "0.44416785", "0.4430542", "0.4428609", "0.44222865", "0.44108376", "0.4397513", "0.4390961", "0.43908724", "0.43885708", "0.4374359", "0.43733028", "0.43696916", "0.4365038", "0.4361952", "0.43606466", "0.43595347", "0.43558976", "0.43558747", "0.43497378", "0.4348041", "0.43479806", "0.4341898", "0.43410462", "0.4340806", "0.43402615", "0.4339732", "0.43322343", "0.43255755", "0.43242067", "0.43224645", "0.4306798", "0.43062282", "0.4304058", "0.430007", "0.42882442", "0.42834798", "0.42823187", "0.42822096", "0.426989" ]
0.6714404
0
/ Property Gets all property values for the Label property.
Collection<? extends Object> getLabel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyLabel() {\n \t\treturn propertyLabel;\n \t}", "public Object getLabels() {\r\n if (labels != null) {\r\n return labels;\r\n }\r\n ValueBinding vb = getValueBinding(\"labels\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }", "public List getLabels () {\n return labels;\n }", "public List<String> getLabels() {\n return this.labels;\n }", "public Map<String,List<Label>> getLabels() {\n return this.labels;\n }", "public Object getLabel() \n {\n return label;\n }", "@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }", "public List<String> getLabels() {\n return labels;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public abstract String[] getLabels();", "String getLabel() {\n return label;\n }", "public Label getLabel() {\n return this.label;\n }", "public String getLabel(){\n return label;\n }", "private String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return label;\n }", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "ArrayList<String> getLabels();", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String toString() {\n StringBuffer sb = new StringBuffer(\"LabelValueBean[\");\n sb.append(this.label);\n sb.append(\", \");\n sb.append(this.value);\n sb.append(\"]\");\n return (sb.toString());\n }", "ReadOnlyStringProperty labelProperty();", "@JsonProperty(\"label\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getLabel() {\n return this.label;\n }", "public String getLabel()\n { \n return label;\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "public String getLabel() {\n return this.label;\n }", "public List<Label> getLabels()\n\t{\n\t\treturn labels;\n\t}", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public List<LabelModel> getCustomLabels();", "public final Label getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String label() {\n return this.label;\n }", "private String getPropertyLabel() {\n return itemPropertyDescriptor.getDisplayName(eObject);\n }", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "@Override\n public String getLabel() {\n return label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public JLabel getLabel() {\n return this.label;\n }", "com.google.ads.googleads.v6.resources.Label getLabel();", "public List<LabelModel> getAllLabels();", "public JLabel getLabel() {\n return label;\n }", "public String getLabel() {\n\t\treturn this._label;\n\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "public String toString() {\n return label;\n }", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "public double getLabel() {\n\t\treturn label;\n\t}", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public java.lang.String getLabel();", "DatasetLabel getLabel();", "public String toString()\n {\n return label;\n }", "@Override\n\t\tpublic Iterable<Label> getLabels() {\n\t\t\treturn null;\n\t\t}", "java.lang.String getLabel();", "@Basic\n Map<String, String> getLabelsMap();", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}", "public int\ngetLabels() {\n\treturn labels;\n}", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "String getLabel();", "String getLabel();", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "public List<LabelModel> getSystemLabels();", "com.google.ads.googleads.v6.resources.LabelOrBuilder getLabelOrBuilder();", "@Override\n\tpublic boolean isLabelProperty(Object obj, String s) {\n\t\treturn false;\n\t}" ]
[ "0.71947724", "0.7106672", "0.7004564", "0.6947737", "0.6914025", "0.6891354", "0.68061566", "0.6796434", "0.6775723", "0.6775723", "0.67626476", "0.67600036", "0.67379063", "0.6721075", "0.66808516", "0.66691375", "0.6668529", "0.66476154", "0.66472626", "0.6640041", "0.66257", "0.66257", "0.66257", "0.66257", "0.66186124", "0.6615141", "0.6608232", "0.66027355", "0.65957665", "0.65917456", "0.6575538", "0.65593493", "0.65553147", "0.6554885", "0.65417314", "0.65417314", "0.65417314", "0.654132", "0.654132", "0.65403914", "0.6533298", "0.65296185", "0.65184695", "0.6508766", "0.6503822", "0.6503822", "0.6503822", "0.6489366", "0.6489366", "0.6489366", "0.6489366", "0.64833784", "0.6469334", "0.646802", "0.646802", "0.646802", "0.64629513", "0.64461136", "0.64455634", "0.64417434", "0.643037", "0.64074934", "0.64074934", "0.64074934", "0.64074934", "0.6406255", "0.6401545", "0.6397036", "0.63966435", "0.6388969", "0.6388967", "0.6379431", "0.63661253", "0.63447464", "0.6319236", "0.6317388", "0.6304082", "0.6299731", "0.62888974", "0.62876594", "0.6276471", "0.6266392", "0.6263752", "0.6258019", "0.6251595", "0.6251595", "0.6249461", "0.624753", "0.62412", "0.62253696", "0.62253696", "0.6216108", "0.62096167", "0.61994475", "0.61846524", "0.61846524", "0.6180271", "0.6173757", "0.6152155" ]
0.6773085
11
Checks if the class has a Label property value.
boolean hasLabel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasLabel()\n {\n return _label.isNotNull();\n }", "@Override\n\t\tpublic boolean hasLabel(Label label) {\n\t\t\treturn false;\n\t\t}", "boolean isSetLabel();", "@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\r\n\t}", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\treturn false;\r\n\t\t}", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object obj, String s) {\n\t\treturn false;\n\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@Override\r\n\tpublic boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\n\t}", "private boolean hasLabel(String labelText, String label) {\n boolean result = false;\n if (labelText == null) {\n result = false;\n } else {\n if (labelText.trim().toUpperCase().equals(label)) {\n result = true;\n }\n }\n return result;\n }", "boolean hasCampaignLabel();", "public boolean isSetLabels() {\n return this.labels != null;\n }", "@Test\n public void labelIsNotNull() {\n propertyIsNot(null, null, CodeI18N.FIELD_NOT_NULL, \"name property must not be null\");\n }", "public boolean isLabelProperty(Object element, String property) {\r\n\t\treturn true;\r\n\t}", "public boolean isLabelProperty(Object element, String property) {\r\n\t\treturn true;\r\n\t}", "public boolean isLabelProperty(Object element, String property) {\n\t\t\treturn false;\r\n\t\t}", "boolean isNilLabel();", "public boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\n\t}", "public boolean isLabelProperty(Object element, String property) {\n\t\treturn false;\n\t}", "public boolean\nhasNucLabel()\n{\n\tVector labelList = this.getLabelList();\n\tif (labelList == null)\n\t\treturn (false);\n\tif ((labelList.size() <= 0) || (labelList.size() > 2))\n\t\treturn (false);\n\tDrawObject drwObj0 = null;\n\tDrawObject drwObj1 = null;\n\tdrwObj0 = (DrawObject)labelList.elementAt(0);\n\tif (labelList.size() == 2)\n\t\tdrwObj1 = (DrawObject)labelList.elementAt(1);\n\tif ((drwObj1 == null) && (drwObj0 instanceof DrawLineObject))\n\t\treturn (true);\n\tif (drwObj1 == null)\n\t\treturn (false);\n\tif ((drwObj0 instanceof DrawLineObject) && (drwObj1 instanceof DrawStringObject))\n\t{\n\t\ttry\n\t\t{\n\t\t\tint val = Integer.parseInt(((DrawStringObject)drwObj1).getDrawString());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\treturn (false);\n\t\t}\n\t\treturn (true);\n\t}\n\tif ((drwObj1 instanceof DrawLineObject) && (drwObj0 instanceof DrawStringObject))\n\t{\n\t\ttry\n\t\t{\n\t\t\tint val = Integer.parseInt(((DrawStringObject)drwObj0).getDrawString());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\treturn (false);\n\t\t}\n\t\treturn (true);\n\t}\n\treturn (false);\n}", "protected synchronized boolean isLabelReady() {\n\t\treturn label != null;\r\n\t}", "boolean hasLabelDetectionConfig();", "public boolean isMaybeSingleObjectLabel() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.size() == 1;\n }", "@Test\n public void labelIsNotBlank() {\n propertyIsNot(\"\", null, CodeI18N.FIELD_NOT_BLANK, \"label property must not be blank\");\n }", "boolean hasCustomerLabel();", "boolean hasAdGroupCriterionLabel();", "@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }", "@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }", "@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }", "@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }", "public boolean containsObjectLabel(ObjectLabel objlabel) {\n return (object_labels != null && object_labels.contains(objlabel)) ||\n (getters != null && getters.contains(objlabel)) ||\n (setters != null && setters.contains(objlabel));\n }", "boolean hasAdGroupLabel();", "com.google.ads.googleads.v6.resources.Label getLabel();", "public boolean getLblVisible() {\n return lblVisible;\n }", "private boolean isGenLabel(final Specimen objSpecimen)\r\n\t{\r\n\t\tboolean isGenLabel = false;\r\n\r\n\t\tif(objSpecimen.getSpecimenRequirement() != null && Validator.isEmpty(objSpecimen.getSpecimenRequirement().getLabelFormat()))\r\n\t\t{\r\n\t\t\tisGenLabel = false;\r\n\t\t}\r\n\t\telse if(objSpecimen.getSpecimenRequirement() != null && !Validator.isEmpty(objSpecimen.getSpecimenRequirement().getLabelFormat()) && !objSpecimen.getSpecimenRequirement().getLabelFormat().contains(\"%CP_DEFAULT%\"))\r\n\t\t{\r\n\t\t\tisGenLabel = true;\r\n\t\t}\r\n\t\telse if(objSpecimen.getSpecimenRequirement() != null && objSpecimen.getSpecimenRequirement().getLabelFormat().contains(\"%CP_DEFAULT%\"))\r\n\t\t{\r\n\t\t\tisGenLabel = isLblGenOnForCP(objSpecimen);\r\n\t\t}\r\n\t\telse if(objSpecimen.getSpecimenRequirement() == null)\r\n\t\t{\r\n\t\t\tisGenLabel = isLblGenOnForCP(objSpecimen);\r\n\t\t}\r\n\t\treturn isGenLabel;\r\n\t}", "public boolean isLabel() {\n\t\treturn roomLabel; \n\t}", "public Object getLabel() \n {\n return label;\n }", "Label getLabel();", "Label getLabel();", "Label getLabel();", "boolean hasAdGroupAdLabel();", "@Override\n\tboolean applyLabel() {\n\n\t\treturn false;\n\t}", "public boolean canBeFrom(String label);", "public boolean labelOnOlemassa(String label);", "@Override\r\n public boolean contains(V label) {\r\n return map.containsKey(label);\r\n }", "private void checkLabelValue()\n\t{\n\t\tif(labelValue != null && !\"\".equals(labelValue))\n\t\t{\n\t\t\tlabelValue += \": \";\n\t\t}\n\t}", "com.google.ads.googleads.v6.resources.LabelOrBuilder getLabelOrBuilder();", "public boolean isRequired(String label)\n {\n return false;\n }", "public boolean isVehicleNameLabelPresent() {\r\n\t\treturn isElementPresent(vehicleName, SHORTWAIT);\r\n\t}", "public String getLabel() {\r\n return lbl;\r\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "@Test\n public void getLabel() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"label\", labelS);\n assertEquals(entity0.getLabel(), labelS);\n }", "public void assertSearchInputHasLabelText() {\n this.assertElementHasText(By.xpath(SEARCH_INIT_TEXT),\n \"Search Wikipedia\",\n \"Search wikipedia input has not label text 'Search Wikipedia'\");\n }", "public String getLabel() {\n return label;\n }", "public boolean isCountryNameLabelPresent() {\r\n\t\treturn isElementPresent(vehicleName.replace(\"Vehicle Name\", \"Country Name\"), SHORTWAIT);\r\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel(){\n return label;\n }", "boolean exists(String label) throws IOException;", "ReadOnlyStringProperty labelProperty();", "public String getLabel()\n { \n return label;\n }", "@Override\n public String getLabel() {\n return label;\n }", "public Label getLabel() {\n return this.label;\n }", "public String getLabel()\n {\n return label;\n }", "public boolean shouldDisplayTextLabel()\r\n {\r\n return displayTextLabelInformation_;\r\n }", "boolean containsLabels(java.lang.String key);", "boolean containsLabels(java.lang.String key);", "boolean containsLabels(java.lang.String key);", "boolean containsLabels(java.lang.String key);", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public boolean setLabel(String labelIn)\r\n {\r\n if (labelIn == null)\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n label = labelIn.trim();\r\n return true;\r\n }\r\n }", "public static LabelTarget label() { throw Extensions.todo(); }", "@JsonProperty(\"label\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getLabel() {\n return this.label;\n }", "String getLabel() {\n return label;\n }", "private String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\n {\n return label;\n }", "protected boolean drillAllLabels() {\n return label == null;\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "public boolean isVehicleDescriptionLabel() {\r\n\t\treturn isElementPresent(vehicleName.replace(\"Vehicle Name\", \"Vehicle Description\"), SHORTWAIT);\r\n\t}", "public String getLabel() {\r\n return label;\r\n }", "private boolean checkNextField () {\n lineHasLabel = false;\n if (! endOfText()) {\n labelEnd = blockIn.indexOf (LABEL_SUFFIX, lineStart);\n if (labelEnd >= 0) {\n label = blockIn.substring (lineStart, labelEnd).trim();\n labelStart = labels.indexOf (label);\n if (labelStart >= 0) {\n lineHasLabel = true;\n }\n }\n }\n return lineHasLabel;\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public java.lang.String getLabel();", "public String getLabel() {\n return label;\n }" ]
[ "0.802499", "0.7807712", "0.7567936", "0.75583065", "0.74492633", "0.7426388", "0.74193114", "0.7350263", "0.7287757", "0.72780925", "0.7247366", "0.7137402", "0.7137402", "0.7137402", "0.71179116", "0.71179116", "0.71179116", "0.70722586", "0.68872243", "0.6867355", "0.6849405", "0.6814828", "0.6814828", "0.6786777", "0.67853916", "0.6774546", "0.6774546", "0.66240495", "0.65965295", "0.65403616", "0.64990973", "0.6428249", "0.63927597", "0.6331405", "0.63192385", "0.63192385", "0.63067716", "0.63067716", "0.62687135", "0.62343544", "0.620445", "0.6203034", "0.6185909", "0.615665", "0.60734016", "0.60582846", "0.60582846", "0.60582846", "0.6045015", "0.60444516", "0.6029818", "0.60096234", "0.59859824", "0.5982642", "0.59695834", "0.591514", "0.58913827", "0.5885517", "0.5881706", "0.5881706", "0.5872755", "0.5862074", "0.58580524", "0.5836242", "0.58349764", "0.5826539", "0.5826539", "0.5818396", "0.5817116", "0.5800756", "0.57969445", "0.5780406", "0.5778107", "0.57739943", "0.57716835", "0.5767864", "0.5767864", "0.5767864", "0.5767864", "0.57646394", "0.57635677", "0.5737644", "0.5737303", "0.57366544", "0.57321036", "0.57318044", "0.5728976", "0.5728976", "0.5728976", "0.5721988", "0.5719363", "0.57089764", "0.5694752", "0.5694576", "0.56874436", "0.5672159", "0.5669193", "0.56653786" ]
0.80338764
2
Adds a Label property value.
void addLabel(Object newLabel);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}", "String addLabel(String label);", "public void setLabel(Object value) {\n this.setValue(LABEL_PROPERTY_KEY, value);\n }", "public LabelField addLabelField(final Property prop) {\n return addLabelField(prop.getKey());\n }", "com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();", "public abstract Code addLabel(String label);", "protected void addLabel(String key, Label value) {\n\t\tlabels.put(key, value);\n\t}", "@JsonSetter(\"label\")\r\n public void setLabel (String value) { \r\n this.label = value;\r\n }", "public void addLabel(Label label) {\n\t\tgetCodeItem().addLabel(label);\n\t}", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public abstract void addLabel(String str);", "public Value label(String label) {\n this.label = label;\n return this;\n }", "@JsonProperty(\"label\")\n public void setLabel(String label) {\n this.label = label;\n }", "public void addLabel()\r\n {\r\n LabelFigure label = new LabelFigure();\r\n this.labels.add(label);\r\n add(label);\r\n }", "public LabelValueBean(String label, String value) {\n this.label = label;\n this.value = value;\n }", "public void setLabel(String label) {\n this.label = label;\n }", "protected void addLabel(AeIconLabel aLabel) {\r\n }", "public void setLabel(Object v) \n {\n this.label = v;\n }", "void setLabel(String label);", "public void setLabel(String label) {\r\n this.label = label;\r\n }", "public void setLabel( String label ) {\r\n lbl = label;\r\n }", "void setLabel(Label label);", "void addObjLabel(ObjLabel objLabel) {\n\n //make sure the Object gets notified of mouse movements\n objCanvas.addEventHandler(MouseEvent.MOUSE_MOVED, objLabel);\n objCanvas.drawLabel(objLabel);\n }", "public void setLabel(final String label) {\n this.label = label;\n }", "void setLabel(com.microsoft.schemas.xrm._2011.contracts.Label label);", "public Builder setLabel(String key, String value) {\n data.add(key);\n data.add(value);\n return this;\n }", "@Nonnull\n LabelResponse addLabel(@Nonnull final Label label, @Nonnull final Telegraf telegraf);", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "ReadOnlyStringProperty labelProperty();", "void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(final String _label)\n {\n this.label = _label;\n }", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(final String label) {\n this.label = label;\n }", "public void setLabel(String label) {\n\t\t_label = label;\n\t}", "public void setLabel(String label)\n {\n if (StringUtils.isBlank(label))\n throw new IllegalArgumentException(\"label cannot be null or empty\");\n \n this.label = label;\n }", "public void setLabel(String label) {\n\t\tthis.label = label;\n\t}", "public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}", "private void addLabels()\n {\n add(my_score_label);\n add(my_level_label);\n add(my_lines_label);\n }", "public final void setLabel(final String label) {\r\n this.label = label;\r\n }", "public void processAddLabel() {\n AppTextEnterDialogSingleton dialog = AppTextEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Label\", \"Enter text of the label to add:\");\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LABEL_MODE);\n }", "private Label addNewLabel() {\n getElement().getChildren().forEach(e -> getElement().removeChild(e));\n // Create and add a new slotted label\n Label label = new Label();\n label.getElement().setAttribute(\"slot\", \"label\");\n this.getElement().appendChild(label.getElement());\n return label;\n }", "@JsonProperty(\"label\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getLabel() {\n return this.label;\n }", "public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }", "public LabelField addLabelField(final String key) {\n String label = key;\n LabelField labelField = new LabelField(getComposite(), _form, key, label, false);\n labelField.adapt(_formToolkit);\n _form.mapField(key, labelField);\n return labelField;\n }", "@Override\n public String getLabel() {\n return label;\n }", "public MyProgress setLabel(String label) {\n mLabel = label;\n return this;\n }", "public String getLabel(){\n return label;\n }", "@Override\n\tpublic void setLabelText(String label) {\n\t}", "public void setLabel(String label) {\n addNewLabel().setText(label);\n }", "public void addLabel(LabelInfo label) {\n\t\talLabels.add(label);\n\t\tif (iMaxSegmentDepth < label.getSegmentLabelDepth()) {\n\t\t\tiMaxSegmentDepth = label.getSegmentLabelDepth();\n\t\t}\n\t}", "public PieBoundLabel(String label) {\n this(label, null, null);\n }", "public final DecoratorBuilder withLabel(String labelText) {\n\t\treturn withLabel(Model.of(labelText));\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "public String getLabel() {\n return label;\n }", "public Label(String name, Integer value)\n {\n this.name = name;\n this.value = value;\n this.size = null; // Size is nonsensical for addresses\n this.type = Type.VALUE;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel()\n { \n return label;\n }", "public Object getLabel() \n {\n return label;\n }", "void setGraphLabel(String label);", "private void addMembersLabel(String text) {\n Label label = new Label(text);\n label.setStyleName(ValoTheme.LABEL_H2);\n //label.addStyleName(cssTeamMembersList);\n this.addComponent(label);\n }", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "public Builder setLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n label_ = value;\n onChanged();\n return this;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "String getLabel() {\n return label;\n }", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "protected void setLabel(final String label) {\n\t\tmyLabel = label;\n\t}", "public void setLabelText(String text);", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public void setLabel(double label) {\n\t\tthis.label = label;\n\t}", "@Override\n public void setLabel(String arg0)\n {\n \n }", "com.microsoft.schemas.xrm._2011.contracts.Label addNewDescription();", "public final native void setLabel(String label) /*-{\r\n\t\tthis.label = label;\r\n\t}-*/;", "public String getLabel() {\r\n return label;\r\n }", "@Override\n\tpublic boolean isLabelProperty(Object obj, String s) {\n\t\treturn false;\n\t}", "public final TLabel addLabel(final String text, final int x, final int y) {\n return addLabel(text, x, y, \"tlabel\");\n }", "public void setLabel(String label) {\n this.label = label == null ? null : label.trim();\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "void setShapeLabel(String Label);", "public void add(PVector v, String label) {\n\t\tpoints.add(new GPoint(v, label));\n\t}", "public DrillBuilder setLabel(String label) {\n this.label = label;\n return this;\n }", "public void setLabel(int label) {\n\t\tthis.label = label;\n\t}" ]
[ "0.776741", "0.7231809", "0.71441764", "0.70178884", "0.69682044", "0.68290854", "0.68143755", "0.6749839", "0.67400336", "0.66846746", "0.66846746", "0.6658488", "0.66385", "0.6588207", "0.6571841", "0.6562693", "0.6501708", "0.6476706", "0.64285874", "0.64005345", "0.6351008", "0.63332856", "0.6320598", "0.6317439", "0.63071793", "0.62637687", "0.62431324", "0.6242829", "0.6230277", "0.6183535", "0.61796886", "0.616564", "0.6151537", "0.61424786", "0.61424786", "0.6121477", "0.6110333", "0.609769", "0.6084153", "0.60798645", "0.6049047", "0.60243124", "0.6014101", "0.60061556", "0.60002005", "0.5985937", "0.59858364", "0.59857893", "0.5979583", "0.59428865", "0.59204525", "0.5914405", "0.59089154", "0.59087014", "0.59003365", "0.58949715", "0.5890933", "0.58708906", "0.5856188", "0.5841221", "0.58105016", "0.5806486", "0.5796342", "0.5793984", "0.57933813", "0.578999", "0.57825553", "0.57825047", "0.57825047", "0.57723856", "0.5767045", "0.5762177", "0.57612014", "0.57482177", "0.57482177", "0.57482177", "0.57450515", "0.5741032", "0.57199574", "0.5718938", "0.5718938", "0.5718938", "0.57032317", "0.57005066", "0.5700088", "0.56941754", "0.56859756", "0.56853837", "0.56791085", "0.56736165", "0.5662947", "0.5662947", "0.5662947", "0.5662947", "0.5654896", "0.56534266", "0.56486535", "0.56477964", "0.5639152" ]
0.7472403
2
Removes a Label property value.
void removeLabel(Object oldLabel);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void removeLabel(Label label) {\n\n\t\t}", "String removeLabel(String label);", "void unsetLabel();", "public void removeConceptLabel(ConceptLabel lbl) {\n\t\tSystem.out.println(\"removing \"+lbl+\" ..\");\n\t\t\n\t\tlbl.setDeleted(true);\n\t\t// tokens.remove(lbl);\n\t\t// System.out.println(\"- \"+tokens);\n\t}", "void remove(String label) throws IOException;", "public void resetLabel(){\r\n if(sc!= null && sc.getProperties().getAttribute(\"Label\") != null){\r\n sc.getProperties().getAttribute(\"Label\").changeValue(\"\");\r\n }\r\n }", "void deleteLabel(@Nonnull final Label label, @Nonnull final Telegraf telegraf);", "@Override\n\tpublic void removeLabelCharacter() {\n\t\tif (!editingLabel()) return;\n\t\tgetLabelState().setViewLabel(getCurrentViewLabel());\n\t\tgetLabelState().removeCharacter();\n\t}", "public void removeLabel(int index)\r\n {\r\n if (index >= this.labels.size())\r\n {\r\n throw new IllegalArgumentException(\r\n \"UMLFragmentLabelFigure: No such index.\");\r\n }\r\n\r\n remove(this.labels.get(index));\r\n this.labels.remove(index);\r\n }", "private Label removeLabel(Label l) {\n \t\tLabel ret = (Label) l.next;\n \t\tmLabels = (Label) mPool.release(mLabels, l);\n \n \t\treturn ret;\n \t}", "Property removeValue(PropertyValue<?, ?> value);", "public Builder clearLabel() {\n \n label_ = getDefaultInstance().getLabel();\n onChanged();\n return this;\n }", "public void removeCaseFromLabel(CaseUUID aCaseUUID, LabelUUID aCurrentlyDisplayedLabel);", "public RemoveSettingValuesExceptFirstFixer(final String label) {\r\n this.label = label;\r\n }", "public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }", "void deleteLabel(@Nonnull final String labelID, @Nonnull final String telegrafID);", "public void removeLabel(Player tempPlayer){\r\n\t\tif(tempPlayer.getName().equals(\"P1\")) remove(player1Label);\r\n\t\telse if(tempPlayer.getName().equals(\"P2\")) remove(player2Label);\r\n\t\telse remove(player3Label);\r\n\t\tthis.revalidate();\r\n\t}", "public void removeTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), TITLE, value);\r\n\t}", "StopLabel getLabel();", "public void setLabel(Object value) {\n this.setValue(LABEL_PROPERTY_KEY, value);\n }", "void graphRemoveProperty( int propertyKey );", "Form removeProperty(String key);", "public void removeTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), TITLE, value);\r\n\t}", "public void setLabel(String label) {\n this.label = label == null ? null : label.trim();\n }", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "public void removeRuleRef(org.semanticwb.model.RuleRef value);", "void unsetValue();", "void unsetValue();", "public void removeCurrentMonthLabel()\n {\n calendarPanel.remove(labelMonth);\n calendarPanel.validate();\n calendarPanel.repaint();\n }", "public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void removeProperty(TLProperty element);", "public static void removeTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, TITLE, value);\r\n\t}", "public void clearLabelRecs()\n {\n multiLabel = null;\n }", "public void unsetTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(TITLE$2);\n }\n }", "public void removeFromMenuLabel_L10N_ARRAY(entity.APDExposure_MenuLabel_L10N element);", "public DeleteCollectionNamespacedComponent labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public static void removeTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.remove(model, instanceResource, TITLE, value);\r\n\t}", "public void removeAlbumTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void removeSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), SUBTITLE, value);\r\n\t}", "public void removeInvalid() {\n invalidLabel.setVisible(false);\n }", "public void removeUserDefinedProperty(String propertyName);", "public String removeStringProperty(String propertyName);", "public void deleteClass(String label);", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "private void clearThumbsDownLabel() {\n \n thumbsDownLabel_ = getDefaultInstance().getThumbsDownLabel();\n }", "void setNilLabel();", "public void removeVertex(String vertLabel) {\n\n // Implement me!\n if (indexOf(vertLabel, vertices) <0) {\n return;\n }\n vertices.remove(vertLabel);\n Iterator<String> iterator = edges.keySet().iterator();\n while (iterator.hasNext()) {\n String k = iterator.next();\n if (k.contains(vertLabel)) {\n iterator.remove();\n edges.remove(k);\n }\n }\n }", "public void setLabel(String label) {\n this.label = label;\n }", "public static void removeAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "public DeleteCollectionConsole labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public void unsetUrlValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(URLVALUE$2);\r\n }\r\n }", "public Object removeProperty( String key );", "public void setLabel(String label)\n {\n if (StringUtils.isBlank(label))\n throw new IllegalArgumentException(\"label cannot be null or empty\");\n \n this.label = label;\n }", "public void removeOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public DeleteCollectionOperatorHub labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public static void removeAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.remove(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "@JsonSetter(\"label\")\r\n public void setLabel (String value) { \r\n this.label = value;\r\n }", "public void setLabel(String label) {\r\n this.label = label;\r\n }", "public abstract String getRemoveOperationLabel();", "void nodeRemoveProperty( long nodeId, int propertyKey );", "@JsonProperty(\"label\")\n public void setLabel(String label) {\n this.label = label;\n }", "public void removePropertyChangeListener(PropertyChangeListener l);", "private void clearThumbsUpLabel() {\n \n thumbsUpLabel_ = getDefaultInstance().getThumbsUpLabel();\n }", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "public void removeSubtitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), SUBTITLE, value);\r\n\t}", "void setLabel(com.microsoft.schemas.xrm._2011.contracts.Label label);", "public DeleteCollectionImage labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public abstract void removeMove(Move move, int indexOfMove, String label);", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "void relRemoveProperty( long relId, int propertyKey );", "public void setLabel( String label ) {\r\n lbl = label;\r\n }", "public void setLabel(String label) {\n\t\t_label = label;\n\t}", "public DeleteCollectionOAuth labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public void setLabel(Object v) \n {\n this.label = v;\n }", "public void removeOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}", "void unsetValueString();", "public static String stripLabel(String s) {\n\t\tint labelEnd = labelEnd(s);\n\t\tif (labelEnd == -1) {\n\t\t\treturn s.trim();\n\t\t} else {\n\t\t\treturn s.substring(labelEnd + 1).trim();\n\t\t}\n\t}", "public void setLabel(final String label) {\n this.label = label;\n }", "void setLabel(Label label);", "public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}", "public void unsetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LANG$28);\n }\n }", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "PropertiesTask removeProperty( String key );", "ReadOnlyStringProperty labelProperty();", "public DeleteCollectionNamespacedConfiguration labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "Property clearAndAddValue(PropertyValue<?, ?> value);", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "public void removeStatus() {\n this.setStatus(StatusNamesies.NO_STATUS.getStatus());\n }", "public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }", "public void setLabel(String label) {\n\t\tthis.label = label;\n\t}", "public DeleteCollectionNetwork labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public Builder removeLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n internalGetMutableLabels().getMutableMap().remove(key);\n return this;\n }" ]
[ "0.810001", "0.75523514", "0.75221205", "0.7105833", "0.6818063", "0.669397", "0.6654705", "0.66177773", "0.6458895", "0.63513476", "0.6340616", "0.6259288", "0.6248716", "0.6175631", "0.60859334", "0.60279703", "0.602536", "0.60051656", "0.5986243", "0.5886017", "0.58836436", "0.5873052", "0.5862995", "0.58581", "0.5852428", "0.5744343", "0.5741034", "0.5741034", "0.5720085", "0.57085603", "0.5687441", "0.5677724", "0.56726724", "0.56500536", "0.56448215", "0.5595706", "0.55906695", "0.5577559", "0.5566435", "0.5562739", "0.55542564", "0.55464655", "0.5534986", "0.54973596", "0.54973596", "0.54973596", "0.54756147", "0.5466322", "0.54582185", "0.5457196", "0.5451809", "0.54501754", "0.5445567", "0.5442772", "0.5438258", "0.54239273", "0.5420855", "0.54136294", "0.54136294", "0.5411228", "0.54063755", "0.5394908", "0.5385864", "0.5380296", "0.537044", "0.5354901", "0.53444004", "0.5335843", "0.53345037", "0.5334226", "0.5332257", "0.5328665", "0.53254944", "0.5315637", "0.5315637", "0.53145254", "0.5314251", "0.53106743", "0.5308854", "0.5290196", "0.5288577", "0.5287653", "0.5287585", "0.52868396", "0.5283189", "0.5282022", "0.5281248", "0.52801776", "0.5277789", "0.5277553", "0.52730453", "0.52718854", "0.5268933", "0.526767", "0.526434", "0.5263663", "0.52565145", "0.5255708", "0.5249844" ]
0.79199314
2
/ I have generated 100 random characters of digits, lowercase, and uppercases but I didnt do this part: sum of three numbers should be 100 I couldnt understand what I need to do exactly
public static void main(String args[]){ int n, r; char chr = 'a'; int sum = 0; int total = 0; n = 100; char C[]; C = new char[n]; for(int i = 0; i<n;i++){ r = (int)(Math.random()*3+1); /* generate random value between 1-3 */ switch(r){ case 1: C[i] = getRandomLowerCaseLetter(); break; case 2: C[i] = getRandomUpperCaseLetter(); break; case 3: C[i] = getDigitCharacter(); break; default: // do not do any operation break; } sum = sum + (int)C[i]; System.out.print(sum); System.out.println(" " + C[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "private static String RandomCash() {\n\t\tint max = 0;\n\t\tint min = 100000;\n\t\tint range = max - min + 1;\n\t\t\n\t\tString text=null;\n\t\ttry {\n\t\t\t\n\t\t\tint random = (int) (Math.random() * (range) + min);\n\t\t\ttext = formatted(\"###,###\", random)+\" VNĐ\";\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\t}", "public static String getRandomAplhaNumeric(String characters) {\n\t\tSecureRandom secureRnd = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tsb.append(characters.charAt(secureRnd.nextInt(characters.length())));\n\t\treturn sb.toString();\n\t}", "static String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\"; \n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }", "static char[] generateAZBothCasesAndNumbers(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateAZUpperRangeChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateNumberChar();\n }\n }\n return charArray;\n }", "public static void main(String[] args) {\n\t\tRandom rndm = new Random();\r\n\t\tchar c1 = (char)(rndm.nextInt(26) + 'a');\r\n\t\tchar c2 = (char)(rndm.nextInt(26) + 'a');\r\n\t\tchar c3 = (char)(rndm.nextInt(26) + 'a');\r\n\t\tchar[] chars = {c1,c2,c3};\r\n\t\tString s = new String(chars);\r\n\t\tint num1 = rndm.nextInt(10);\r\n\t\tint num2 = rndm.nextInt(10);\r\n\t\tint num3 = rndm.nextInt(10);\r\n\t\tint num4 = rndm.nextInt(10);\r\n\t\tString lp = \"Your License Plate Number is \" + s.toUpperCase() + num1 + num2 + num3 + num4;\r\n\t\tSystem.out.println(lp);\r\n\r\n\t}", "public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }", "private String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\"; \n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "static char[] generateAZLowercaseAndNumbers(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 2);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n }\n }\n return charArray;\n }", "static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "static char[] generateAZLowercaseAndNumbersAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "public static String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\";\n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }", "public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}", "private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }", "public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }", "public int generateStrength() {\n\t\tRandom rand = new Random();\n\t\tint strength = rand.nextInt(41) - 10;\n\t\treturn strength;\n\t}", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "public static String randAlnum(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(62);\n if (n>51){\n result = String.valueOf(n-52);\n }else {\n result = randChar(); //both\n }\n break;\n case 1:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randLower(); //lower\n }\n break;\n case 2:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randUpper(); //upper\n }\n break;\n }\n return result;\n }", "static String getAlphaNumericString(int n) \n {\n byte[] array = new byte[256]; \n new Random().nextBytes(array); \n \n String randomString \n = new String(array, Charset.forName(\"UTF-8\")); \n \n // Create a StringBuffer to store the result \n StringBuffer r = new StringBuffer(); \n \n // Append first 20 alphanumeric characters \n // from the generated random String into the result \n for (int k = 0; k < randomString.length(); k++) { \n \n char ch = randomString.charAt(k); \n \n if (((ch >= 'a' && ch <= 'z') \n || (ch >= 'A' && ch <= 'Z') \n || (ch >= '0' && ch <= '9')) \n && (n > 0)) { \n \n r.append(ch); \n n--; \n } \n } \n \n // return the resultant string \n return r.toString(); \n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "public String getAlphaNumericString(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index\n = (int)(AlphaNumericString.length()\n * Math.random());\n\n\n sb.append(AlphaNumericString\n .charAt(index));\n }\n\n return sb.toString();\n }", "public String getAlphaNumericString(int n) \n\t {\n\t String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n\t + \"0123456789\"\n\t + \"abcdefghijklmnopqrstuvxyz\"; \n\t \n\t // create StringBuffer size of AlphaNumericString \n\t StringBuilder sb = new StringBuilder(n); \n\t \n\t for (int i = 0; i < n; i++) { \n\t \n\t // generate a random number between \n\t // 0 to AlphaNumericString variable length \n\t int index \n\t = (int)(AlphaNumericString.length() \n\t * Math.random()); \n\t \n\t // add Character one by one in end of sb \n\t sb.append(AlphaNumericString \n\t .charAt(index)); \n\t } \n\t \n\t return sb.toString(); \n\t }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "private static void convertNumericToRandomAlpha(StringBuffer buf)\n {\n byte byteLetter = 0;\n byte randomByte = 0;\n\n for (int letter = 0; letter < buf.length(); letter++)\n {\n\n // get the byte value of the number\n byteLetter = (byte) (buf.charAt(letter) - 48);\n if (byteLetter == 0)\n {\n byteLetter = 10;\n\n // generate a random number between 1 and 3 such that the number multiplied\n // by the byteLetter does not exceed 26. byteLetter of 0 is treated as 10.\n }\n randomByte = (byte) ((Math.round(Math.random() * 100)\n % ((byteLetter > 6) ? 2 : 3)));\n byteLetter = (byte) (byteLetter + (randomByte * 10));\n buf.setCharAt(letter, (char) (byteLetter + 96));\n }\n }", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "public static void main(String args[] ) throws Exception {\n Scanner in = new Scanner(System.in);\n \n String original = in.next();\n int n = original.length();\n long moda = 1000000007;\n long ones = 1;\n long sum=0; \n for (int s=original.length()-1; s>=0; s--) {\n sum = (sum + (s+1) * (original.charAt(s) - '0') * ones) %moda; \n ones = (ones * 10 + 1) % moda;\n \n }\n \n System.out.println(sum);\n \n }", "private void getRandomNumber() {\n\t\tRandom random = new Random();\n\t\tint randomCount = 255;\n\t\tint randNum = 0; \n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\trandNum = random.nextInt(randomCount);\n\t\t\tswitch (numberType) {\n\t\t\tcase 1:\n\t\t\t\trandomNumbers.add(Integer.toString(randNum));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(randNum > 15)\n\t\t\t\t\trandomNumbers.add(String.format(\"%8s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\telse\n\t\t\t\t\trandomNumbers.add(String.format(\"%4s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trandomNumbers.add(Integer.toHexString(randNum));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public String generatePassword(int size) {\n\n int wordIndx = getRandomWord();\n String newPassword = threeCharWords.get(wordIndx);\n return newPassword + getRandomNumber(size);\n\n\n }", "@Override\n\tpublic int getSumOfAllCharacters() {\n\t\tint sum1 = 0;\n\t\tchar[] ch = theString.toCharArray();\n\t\tint temp_integer = 64;\n\t\tint temp_small = 96;\n\n\t\tfor (char c : ch) {\n\t\t\tint temp = (int) c;\n\t\t\t// System.out.println(temp);\n\n\t\t\tif (temp <= 90 & temp >= 65) {\n\t\t\t\tint sum = (temp - temp_integer);\n\t\t\t\t// System.out.println(sum);\n\t\t\t\tsum1 = sum + sum1;\n\n\t\t\t} else if (temp <= 122 & temp >= 97) {\n\n\t\t\t\tint sum = (temp - temp_small);\n\n\t\t\t\tsum1 = sum + sum1;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"the total is=\" + sum1);\n\n\t\treturn sum1;\n\t}", "public void generateCharacters() {\n for(int i = 0; i < 3; i++) {\n this.characters.add(getRandomCharacter());\n }\n }", "public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aStart;\n return String.valueOf(randomNumber);\n }", "public static String getAlphaNumericString(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\" + \"0123456789\" + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index = (int) (AlphaNumericString.length() * Math.random());\n\n // add Character one by one in end of sb\n sb.append(AlphaNumericString.charAt(index));\n }\n\n return sb.toString();\n }", "public static String coder(){\n Random randomGen = new Random();\n \n String letter1, letter2 = \"\";\n int random1, random2, random3, random4 = 0;\n String genome = \"\";\n \n int i = 0;\n int first = (int)((Math.random()*26)+97);\n char firstChar = Character.toUpperCase((char) first);\n genome += firstChar;\n \n int second = (int)((Math.random()*26)+97);\n char secondChar = Character.toUpperCase((char) second);\n genome += secondChar;\n \n random1 = randomGen.nextInt(10);\n genome += random1;\n \n random2 = randomGen.nextInt(10);\n genome += random2;\n \n random3 = randomGen.nextInt(10);\n genome += random3;\n \n random4 = randomGen.nextInt(10);\n genome += random4;\n \n return genome;\n }", "@Override\r\n\tpublic String randString(int n, String base) {\n\t\tint bLength = base.length();\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tRandom r = new Random();\r\n\t\tint index;\r\n\t\tfor(int i=0; i<n; i++)\r\n\t\t{\r\n\t\t\tindex = r.nextInt(bLength);\r\n\t\t\tsb.append(base.charAt(index));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }", "private static String makeLatinName(int len, Random r) {\n final String lc = \"abcdefghijklmnopqrstuvwxyz\";\n final String alphabet = lc + lc.toUpperCase();\n final String start = \"$_\" + alphabet;\n final String part = start + \"0123456789\";\n\n StringBuffer sb = new StringBuffer();\n sb.append(start.charAt(r.nextInt(start.length())));\n while (sb.length() < len)\n sb.append(part.charAt(r.nextInt(part.length())));\n return sb.toString();\n }", "private void randomNumbers(){\n ranA = n.nextInt(9) + 1;\n\n //second digit\n do {\n ranB=n.nextInt(9)+1;\n }while(ranB == ranA);\n\n //third digit\n do {\n ranC=n.nextInt(9)+1;\n }while(ranC == ranA || ranC==ranB);\n\n //fourth digit\n do {\n ranD=n.nextInt(9)+1;\n }while(ranD == ranA || ranD == ranB || ranD == ranC);\n }", "@Override\n public String apply(Integer i) {\n List<Character> list = new ArrayList<>();\n RandomStrings rnd = new RandomStrings();\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < i ; j++) {\n list.add((char)rnd.generateNumberAscii());\n }\n for (Character character : list) {\n sb.append(character);\n }\n return sb.toString();\n }", "public static void main(String[] args) {\n\t\tint num=(int) (Math.random()*36 ) ;\r\n\t\tSystem.out.println( Math.random());WW\r\n\t\tSystem.out.println(num);\r\n\t}", "@Override\r\n\tpublic String rollString() {\r\n\t\treturn \"\"+Randomizer.getRandomNumber(possibleValues);\r\n\t}", "public static void main(String[] args) {\n\t\tdouble random_num1 = Math.random()*10;\n\t\tdouble random_num2 = Math.random()*9+1;\n\t\tdouble random_num3 = Math.random()*(35-20+1)+20;\n\t\tdouble random_num4 = Math.random()*2;\n\t\tdouble some = (int)(Math.random()*10+1) ;\n\t\t\n\t\tSystem.out.println(\"0~9 까지의 랜덤 수 : \"+(int)random_num1);\n\t\tSystem.out.println(\"1~10 까지의 랜덤 수 : \"+(int)random_num2);\n\t\tSystem.out.println(\"20~35 까지의 랜덤 수 : \"+(int)random_num3);\n\t\tSystem.out.println(\"0 또는 1 : \"+(int)random_num4);\n\t\tSystem.out.println(some);\n\t\t\n\t}", "public static void main (String[] args){\n int y = 1;\n for (y = 1; y <= 4; y++){\n // He usat bucles per no duplicar codi i per optimització.\n int x =1;\n // Bucle\n for (x = 1; x <= 4; x++){\n String abc = \"AAAAABCÇDEEEEEFGHIIIIIJKLMNOOOOOPQRSTUUUUUVWXYZ\"; //47\n int lletra = (int) (abc.length() * Math.random());\n char a = abc.charAt(lletra);\n System.out.print(\"\\u001B[36m\"+a); \n } \n System.out.println(\"\");\n }\n }", "public static final String generate(int length) {\r\n\t\tif (length <= 0 || length > 100000) {\r\n\t\t\tSystem.out.println(\"Invalid length! We accept [0-100 000]!\");\r\n\t\t\treturn randomString;\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t\trandomRange = rand.nextInt((NUMBERS - CAPITAL_LETTERS) + 1) + CAPITAL_LETTERS;\r\n\r\n\t\t\t\tif (randomRange == CAPITAL_LETTERS) {\r\n\t\t\t\t\trandomNumber = rand\r\n\t\t\t\t\t\t\t.nextInt((CAPITAL_LETTERS_MAX_ASCII_CHARACTER - CAPITAL_LETTERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ CAPITAL_LETTERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t} else if (randomRange == LOWERCASE_LETTERS) {\r\n\t\t\t\t\trandomNumber = rand.nextInt(\r\n\t\t\t\t\t\t\t(LOWERCASE_LETTERS_MAX_ASCII_CHARACTER - LOWERCASE_LETTERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ LOWERCASE_LETTERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t} else if (randomRange == NUMBERS) {\r\n\t\t\t\t\trandomNumber = rand.nextInt((NUMBERS_MAX_ASCII_CHARACTER - NUMBERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ NUMBERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t}\r\n\t\t\t\trandomString += (char) randomNumber;\r\n\t\t\t}\r\n\t\t\treturn randomString;\r\n\t\t}\r\n\r\n\t}", "static char mutateBaseWithProb(char base, double p)\n\t{\n\t\tif(rand.nextDouble() < p)\n\t\t{\n\t\t\tint baseAsInt = baseToInt(base);\n\t\t\tchar newBase = intToBase((baseAsInt + rand.nextInt(3) + 1)%4);\n\t\t\tif(Character.isLowerCase(base))\n\t\t\t{\n\t\t\t\tnewBase += 'a' - 'A';\n\t\t\t}\n\t\t\treturn newBase;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn base;\n\t\t}\n\t}", "public static String getRandomAlphaNumericString(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index\n = (int)(AlphaNumericString.length()\n * Math.random());\n\n // add Character one by one in end of sb\n sb.append(AlphaNumericString\n .charAt(index));\n }\n\n return sb.toString();\n }", "public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}", "public static String getRandomString(int n) \r\n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n + \"0123456789\"\r\n + \"abcdefghijklmnopqrstuvxyz\"; \r\n \r\n // create StringBuffer size of AlphaNumericString \r\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index \r\n = (int)(AlphaNumericString.length() \r\n * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(AlphaNumericString \r\n .charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }", "private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }", "public String generatePassword() {\n List<char[]> allAllowed = new ArrayList<>();\n if (uppercase) {\n allAllowed.add(UPPERCASE);\n }\n if (lowercase) {\n allAllowed.add(LOWERCASE);\n }\n if (numbers) {\n allAllowed.add(NUMBERS);\n }\n if (symbols) {\n allAllowed.add(SYMBOLS);\n }\n\n //Use cryptographically secure random number generator\n Random random = new SecureRandom();\n\n StringBuilder password = new StringBuilder();\n\n // Random chars\n for (int i = 0; i < length - allAllowed.size(); i++) {\n char[] characterType = allAllowed.get(random.nextInt(allAllowed.size()));\n password.append(characterType[random.nextInt(characterType.length)]);\n }\n\n //Ensure password policy is met by inserting required random chars in random positions\n for (char[] category : allAllowed) {\n password.insert(random.nextInt(password.length()), category[random.nextInt(category.length)]);\n }\n return password.toString();\n }", "public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }", "public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tRandom random = new Random();\n\t\tint randonNumber = random.nextInt(100);//here we need to mention upto what range we need random number of.\n\t\tSystem.out.println(randonNumber);\n\t\t\n\t\t\n\t\t//Approach 2 for decimal\n\t\t\n\t\tSystem.out.println(Math.random());\n\t\t\n\t\t\n\t\t//Approach 3 - Apache commons-lang ApI\n\t\t\n\t\tString randNumber = RandomStringUtils.randomNumeric(10);\n\t\t\n\t\tSystem.out.println(randNumber);\n\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(generateStringMixUpperAndNumber(12));\r\n\t\t\r\n\t}", "private static String create50DigitString(){\n StringBuilder sb = new StringBuilder(\"1\");\n for(int i = 1; i < 50; i++){\n sb.append(\"0\");\n }\n return sb.toString();\n }", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }", "public static void main(String[] args) {\n\t\tString s=\"A\";\n\t\tint l=s.length();\n\t\tint c=0;\n\t\tfor(int i=0;i<l;i++){\n\t\t\tc=(int) (c+(s.charAt(s.length()-i-1)-'A'+1)*Math.pow(26, i));\n\t\t\tSystem.out.println(c);\n\n\t\t}\n\t\t//System.out.println(c);\n\t}", "public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }", "public void generatePlate(){\r\n\t\tfor(int i = 0; i<3; i++){ // Using math random to generate three upper case letter \r\n\t\t\tSystem.out.print((char)((int)'A'+Math.random()*((int)'Z'-(int)'A'+1)));\r\n\t\t}\r\n\t\tSystem.out.print(\"-\");\r\n\t\tfor(int i=0; i<4; i++){ // using math random to generate four integers\r\n\t\t\tSystem.out.print((int)(Math.random()*10));\r\n\t\t}\r\n\t}", "public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "public String generateNumber(int length) {\n int maxNumber = Integer.parseInt(new String(new char[length]).replace(\"\\0\", \"9\"));\n int intAccountNumber = ThreadLocalRandom.current().nextInt(0, maxNumber + 1);\n int accountNumberLength = String.valueOf(intAccountNumber).length();\n StringBuilder stringBuilder = new StringBuilder();\n if (accountNumberLength < length) {\n stringBuilder.append(new String(new char[length - accountNumberLength]).replace(\"\\0\", \"0\"));\n }\n stringBuilder.append(intAccountNumber);\n return stringBuilder.toString();\n }", "public static String randomStringGenerator(int len)\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =len;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return generatedString;\n }", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "public String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(899999) + 100000;\n\n // this will convert any number sequence into 6 character.\n String formatted_code = String.format(\"%06d\", number);\n\n return formatted_code;\n }", "static char[] generateAZBothCasesAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateAZUpperRangeChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "public static double probabilityThreeSixes() {\n int count = 0;\n int amount = 0;\n for (int i = 0; i < 10000; i++) {\n amount = 0;\n for (int j = 0; j < 18; j++) {\n if ((int) (Math.random() * 6) + 1 == 6)\n amount++;\n if (amount == 3) {\n count++;\n break; }\n }\n }\n return ((double) count / (double) 10000) * 100;\n }", "public static String[] randStrings()\r\n\t{\n\t\t\r\n\t\t\t\tlong start = System.nanoTime();\r\n\t\t\t\tchallengeTwo;\r\n\t\t\t\tlong end = System.nanoTime();\r\n\t\t\t\tlong time = end - start;\r\n\t\t\t\t//Challenge 3 >75% Sorted Int Test\r\n\t}", "int RandomGeneratorZeroToThree (){\n\t\t int randomInt = 0;\n\t\t Random randomGenerator = new Random();\n\t\t for (int idx = 1; idx <= 10; ++idx) {\n\t\t\t randomInt = randomGenerator.nextInt(4);\n\n\t\t }\n\t\t return randomInt;\n\t }", "static char[] generateNumbersRange(int length) {\n charArray = new char[length];\n for (int i = 0; i < length; i++) {\n charArray[i] = RandomChar.generateNumberChar();\n }\n return charArray;\n }", "static long productPandigitalSum() {\n // Create a long to return\n long sum = 0;\n HashSet<Integer> products = new HashSet<>();\n\n // Has to be a product between a two and three digit number\n for(int a = 1; a < 100; a++) {\n for(int b = 100; b < 10000; b++) {\n // If pandigital, add to the set\n if(arePandigital(a, b, (a*b))) products.add(a*b);\n }\n }\n\n // Go through the set and add it to the set\n for(Integer i : products) sum += i;\n\n return sum;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sum100 = 0 ;\n\t\t\n\t\tfor(int i = 1 ; i <= 100; i++) {\n\t\t\tsum100 += i ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Tong 100 so dau la: \" + sum100);\n\t\tint sum3 =0;\n\t\tSystem.out.println(\"Nhap vao so n = \");\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 0 ; i <= n ; i++) {\n\t\t\tif(i%3 == 0) {\n\t\t\t\tsum3 +=i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Tong cac so chia het cho 3 nho hon n la: \" + sum3);\n\t\tlong number1 =0 ;\n\t\tlong number2 =1 ;\n\t\tSystem.out.println(\"100 so Fibonaci dau tien la:\");\n\t\tfor(int i = 1; i<=100; i++) {\n\t\t\tSystem.out.printf(\"%d\\t \",number1);\n\t\t\tlong sumNumber1Number2 = number1 + number2;\n\t\t\tnumber1 = number2;\n\t\t\tnumber2 = sumNumber1Number2;\n\t\t}\n\t\t\t\tint m,rv,temp,mod;\t\t\n\t\t\t\tScanner Scan = new Scanner(System.in);\n\t\t\t\tSystem.out.printf(\"\\nNhap vao so m = \"); m = Scan.nextInt();\t\n\t\t\t\ttemp = m; rv = 0;\t\n\t\t\t while (m > 0) {\n\t\t\t \t mod = m % 10;\n\t\t\t \t m = m / 10;\n\t\t\t \t rv= rv * 10 + mod;\n\t\t\t }\n\t\t\t if (rv==temp) {\n\t\t\t \tSystem.out.printf(\"So %d la so Polinom\",temp); \n\t\t\t } else {\n\t\t\t System.out.printf(\"So %d kp la so Polinom\",temp);\n\t\t\t }\n\t\t\t\tint tempMod = 0;\n\t\t\t\tint tempDiv = 0;\n\t\t\t\tint sum = 0;\n\t\t\t\tSystem.out.println(\"\\nCac so tu 100 - 999 co tong cac chu so chia het cho 3 la:\");\n\t\t\t\tfor(int i = 100; i < 1000 ; i++) {\n\t\t\t\t\ttempDiv = i;\n\t\t\t\t\tsum = 0;\n\t\t\t\t\t\n\t\t\t\t\twhile(tempDiv > 0 ) {\t\n\t\t\t\t\t tempMod = tempDiv%10;\n\t\t\t\t\t tempDiv = tempDiv/10;\n\t\t\t\t\t sum +=tempMod;\n\t\t\t\t\t}\n\t\t\t\t\tif(sum%3 == 0) {\n\t\t\t\t\t\tSystem.out.printf(String.format(\"%d\\t\",i));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t}", "public static void sumNum() {\n\t\tint result = 0;\n\t\tfor(int i = 1; i<=112; i = i + 3) {\n\t\t\tresult = result + i;\t\n\t\t}\n\tSystem.out.println(\"Sum = \" + result);\n\t}", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "private int rand(int lower, int upper) {\n return lower + (int)(Math.random() * ((upper - lower) + 1));\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public static int randomNumber100(){\r\n int max = 100;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "public String generateAccountNumber() {\n // Set First part of AccountNumber\n String accountNumberFirst = \"1398\";\n\n // To Make Second, Third part Get each date and time\n String currentTime = getCurrentTime();\n\n // Get year, month, day\n String date = currentTime.split(\" \")[0];\n int year, month, day;\n year = Integer.parseInt(date.split(\"-\")[0]);\n month = Integer.parseInt(date.split(\"-\")[1]);\n day = Integer.parseInt(date.split(\"-\")[2]);\n\n // Get hour, minute, second\n String time = currentTime.split(\" \")[1];\n int hour, minute, second;\n hour = Integer.parseInt(time.split(\":\")[0]);\n minute = Integer.parseInt(time.split(\":\")[1]);\n second = Integer.parseInt(time.split(\":\")[2]);\n\n // Set Second part of AccountNumber\n String accountNumberSecond;\n accountNumberSecond = Integer.toString((year % 10)) + Integer.toString((month * second) % 10) + Integer.toString((day * minute + hour) % 10);\n\n // Set Third part of AccountNumber\n String accountNumberThird;\n accountNumberThird = Integer.toString((second * hour + minute) % 10) + Integer.toString((second * day + hour) % 10) + Integer.toString((day * month + second) % 10) + Integer.toString((second * minute + day) % 10);\n\n // Set Forth part of AccountNumber\n String accountNumberForth;\n int count = (int)accountDataRepository.count();\n if(count % 100 < 10) {\n accountNumberForth = \"0\" + Integer.toString(count % 100);\n }\n else {\n accountNumberForth = Integer.toString(count % 100);\n }\n\n // Generate AccountNumber\n String accountNumber = accountNumberFirst + \"-\" + accountNumberSecond + \"-\" + accountNumberThird + \"-\" + accountNumberForth;\n\n return accountNumber;\n }", "public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setting password size to 6\n IntStream.range(0, password.length).forEach(i -> password[i] = values.charAt(random.nextInt(values.length())));\n return String.valueOf(password);\n }", "private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }", "public static void main(String[] args) {\n\t\tint numeros = 0;\n\t\tint suma = 0;\n\t\tint contador = 0;\n\t\twhile(contador<11) {\n\t\t\t// Abajo se genera numeros aleatorios del 0 - 10\n\t\t\tnumeros = (int) (Math.random()*10);\n\t\t\tsuma = numeros + suma;\n\t\t\tSystem.out.print(numeros+\" \");\n\t\t\tcontador++;\n\t\t}\n\t\tSystem.out.println(\"\\nSuma:\"+ suma);\n\t\tSystem.out.println(\"Promedio:\"+( suma/10 ));\n\t}", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public int generarNombreAleatori() {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((9) - 1) + 1;\n\t}", "public static String getRandomString(int len){\n\n String pool =\"\";\n for(int i='0';i<='9';i++)\n pool+=(char)i;\n for(int i='A'; i<= 'Z'; i++){\n pool+=(char)i;\n }\n for(int i='a'; i<='z'; i++){\n pool+=(char)i;\n }\n char[] cs = new char[len];\n for(int i=0;i<len;i++){\n cs[i] = pool.charAt( (int)(Math.random()*(pool.length())));\n }\n return new String(cs);\n\n }", "private static String palindromeGenerator(int n) {\n\t\tif (n <= 0) return \"\";\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (n % 2 == 1) sb.append((char)(randomGenerator.nextInt(25) + 'a'));\n\t\twhile (sb.length() < n) {\n\t\t\tchar temp = (char)(randomGenerator.nextInt(25) + 'a');\n\t\t\tsb.insert(0, temp);\n\t\t\tsb.append(temp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}", "public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }" ]
[ "0.67826515", "0.6648466", "0.64963955", "0.635923", "0.62795573", "0.6263209", "0.6262781", "0.6256085", "0.6250234", "0.6194531", "0.6189394", "0.6188229", "0.6177541", "0.6150003", "0.6135687", "0.6126455", "0.61218864", "0.6099219", "0.60983264", "0.60867417", "0.60619766", "0.6053438", "0.6052445", "0.6051675", "0.6037617", "0.60165966", "0.6006468", "0.59964556", "0.5990983", "0.5962825", "0.5955069", "0.5951934", "0.59439695", "0.5938877", "0.5935538", "0.59066826", "0.59054005", "0.58843905", "0.5883371", "0.58829576", "0.5882494", "0.5877269", "0.58492166", "0.58322203", "0.58282036", "0.58257234", "0.58130735", "0.58118105", "0.58084154", "0.5807955", "0.57983375", "0.57928675", "0.5781485", "0.57776195", "0.5775375", "0.5773495", "0.5767267", "0.5757062", "0.5756929", "0.57455045", "0.574485", "0.5740372", "0.5737568", "0.5735263", "0.5735036", "0.5730135", "0.5722593", "0.5718727", "0.571175", "0.57114524", "0.56922317", "0.5686893", "0.5673324", "0.5672749", "0.56549615", "0.5652221", "0.5651973", "0.56430084", "0.5636081", "0.563302", "0.5625257", "0.56045693", "0.5603414", "0.5585764", "0.5579591", "0.5578936", "0.5570771", "0.5569177", "0.55640787", "0.5558127", "0.5552416", "0.55492187", "0.5549156", "0.5547818", "0.5546355", "0.5542123", "0.55336624", "0.5529016", "0.5526507", "0.5524762" ]
0.7104634
0
Genetare a random lowercase letter
public static char getRandomLowerCaseLetter(){ return getRandomCharacter('a','z'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}", "public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public static char getRandomUpperCaseLetter(){\n\t\treturn getRandomCharacter('A','Z');\n\t}", "public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }", "public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}", "private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "private String createFakeName() {\n final int firstLowercaseLetterAscii = 97;\n final int lowercaseLetterRange = 25;\n\n // Maximum length random name = 20\n final int minNameLength = 4;\n int randomNameLength = (random.nextInt(17)) + minNameLength;\n\n // Algorithm to generate the random name\n StringBuilder randomName = new StringBuilder();\n for (int i = 0; i < randomNameLength; i++) {\n char randChar = (char) (random.nextInt(lowercaseLetterRange + 1) + firstLowercaseLetterAscii);\n randomName.append(randChar);\n }\n return randomName.toString();\n }", "public String randomName() {\n return RandomStringUtils.randomAlphabetic( 10 );\n }", "private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }", "private String getRandomName(){\n return rndString.nextString();\n }", "private static String makeLatinName(int len, Random r) {\n final String lc = \"abcdefghijklmnopqrstuvwxyz\";\n final String alphabet = lc + lc.toUpperCase();\n final String start = \"$_\" + alphabet;\n final String part = start + \"0123456789\";\n\n StringBuffer sb = new StringBuffer();\n sb.append(start.charAt(r.nextInt(start.length())));\n while (sb.length() < len)\n sb.append(part.charAt(r.nextInt(part.length())));\n return sb.toString();\n }", "public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }", "public static String randAlnum(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(62);\n if (n>51){\n result = String.valueOf(n-52);\n }else {\n result = randChar(); //both\n }\n break;\n case 1:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randLower(); //lower\n }\n break;\n case 2:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randUpper(); //upper\n }\n break;\n }\n return result;\n }", "private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }", "private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }", "String selectRandomSecretWord();", "static char[] generateAZLowercaseAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 2);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "public static String ranLetterString() {\n ArrayList<Character> ranCharArr = new ArrayList<Character>();\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n for ( int i = 0; i < 5; i++) {\n ranCharArr.add(letter.get(i));\n }\n System.out.println(ranCharArr);\n StringBuilder ranString = new StringBuilder();\n for(char ranChar : ranCharArr) {\n ranString.append(ranChar);\n }\n return ranString.toString();\n }", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "public static String[] generateRegularAlphabet()\n {\n String[] regularAlphabet = new String[26];\n for(int index = 0; index<regularAlphabet.length; index++)\n {\n regularAlphabet[index] = (char)(index+65) + \"\";\n }\n return regularAlphabet;\n }", "public static String generateRandomAlphanumericString(int length) {\n return RandomStringUtils.randomAlphanumeric(length).toLowerCase();\n }", "public static String stringGen(int seed) {\n String word = \"\"; // holds random string\r\n String letters = \"abdefghilmnoprstuwxy\"; // usable letters\r\n char letter; // holds current letter that is added to (string)word\r\n \r\n Random randomGen = new Random();\r\n \r\n for(int x = 0; x<50; x++){ // Create a random string of 50 characters\r\n int randomInt = randomGen.nextInt(20);\r\n letter = letters.charAt(randomInt);\r\n word = word + letter;\r\n }\r\n return word; // Finalized random string\r\n }", "public static String coder(){\n Random randomGen = new Random();\n \n String letter1, letter2 = \"\";\n int random1, random2, random3, random4 = 0;\n String genome = \"\";\n \n int i = 0;\n int first = (int)((Math.random()*26)+97);\n char firstChar = Character.toUpperCase((char) first);\n genome += firstChar;\n \n int second = (int)((Math.random()*26)+97);\n char secondChar = Character.toUpperCase((char) second);\n genome += secondChar;\n \n random1 = randomGen.nextInt(10);\n genome += random1;\n \n random2 = randomGen.nextInt(10);\n genome += random2;\n \n random3 = randomGen.nextInt(10);\n genome += random3;\n \n random4 = randomGen.nextInt(10);\n genome += random4;\n \n return genome;\n }", "public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}", "public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }", "public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }", "public static String generatePatientName(){\n\n\t\tString retName = \"\";\t// return this string\n\n\t\t// Seed random generator\n\t\tRandom generator = new Random();\n\n\t\tint length = getRandomBetween(5,6);\n\n\t\t// CVCCVC or VCCVCV\n\t\tif(getRandomBetween(1,2) < 2)\n\t\t{\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomVowel();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tif (length >= 5) { retName += getRandomVowel(); }\n\t\t\tif (length >= 6) { retName += getRandomConsonant(); }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tretName += getRandomVowel();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomVowel();\n\t\t\tif (length >= 5) { retName += getRandomConsonant(); }\n\t\t\tif (length >= 6) { retName += getRandomVowel(); }\n\t\t}\n\n\t\treturn retName;\n\t}", "public static String randUpper(){\n int n = rand.nextInt(26)*2;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public static String randChar(){\n int n = rand.nextInt(52);\n return String.valueOf(KEYBOARD.charAt(n));\n }", "private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}", "public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }", "public String getRandomCustName() {\n\t\tString generatedCustName = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNameLimit));\n\t\tlog.info(\"generatedCustName: \" + generatedCustName);\n\t\treturn generatedCustName;\n\t}", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "public static String generateRandomUsername() {\n final String randomFirst = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomSecond = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomThird = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n String userName = randomFirst + randomSecond + randomThird;\n\n userName = userName.substring(0, 10) + \"@ngetestmail.com\";\n\n return userName;\n }", "protected char randomChar(int length) {\n\n int randomLetter = (int) (Math.random() * length);\n char letter = this.alphabet[randomLetter];\n return letter;\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "static char[] generateAZLowercaseAndNumbersAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }", "static char[] generateAZLowercaseAndNumbers(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 2);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n }\n }\n return charArray;\n }", "static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static String getRandomName() {\n Faker faker = new Faker();\n return faker.name().fullName();\n }", "public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }", "static String getAlphaNumericString(int n) \n {\n byte[] array = new byte[256]; \n new Random().nextBytes(array); \n \n String randomString \n = new String(array, Charset.forName(\"UTF-8\")); \n \n // Create a StringBuffer to store the result \n StringBuffer r = new StringBuffer(); \n \n // Append first 20 alphanumeric characters \n // from the generated random String into the result \n for (int k = 0; k < randomString.length(); k++) { \n \n char ch = randomString.charAt(k); \n \n if (((ch >= 'a' && ch <= 'z') \n || (ch >= 'A' && ch <= 'Z') \n || (ch >= '0' && ch <= '9')) \n && (n > 0)) { \n \n r.append(ch); \n n--; \n } \n } \n \n // return the resultant string \n return r.toString(); \n }", "String generateUniqueName();", "public static String randomStringGenerator(int len)\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =len;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return generatedString;\n }", "public static void letterShuff() {\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n System.out.println(letter);\n System.out.println(letter.get(letter.size()-1));\n System.out.println(letter.get(0));\n if(letter.get(0) == 'a' || letter.get(0) == 'e' || letter.get(0) == 'i' || letter.get(0) == 'o' || letter.get(0) == 'u') {\n System.out.println(\"I'm a vowel!\");\n }\n }", "private String randomName() {\n\n String name = this.names.get(intRandom(names.size() - 1));\n return name;\n }", "private String shuffleWord(){\n \t\t currentWord = turn.getWord(); //TODO: Replace\n \t\t String alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n \t\t alphabet = shuffle(alphabet);\n \t\t alphabet = alphabet.substring(alphabet.length() - randomNumber(7,4));\n \t\t String guessWord = currentWord + alphabet; \n \t\t guessWord = shuffle(guessWord);\n \t\t return guessWord;\n \t }", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "public static String getRandomVowel()\n\t{\n\t\tint randNum = getRandomBetween(1,4);\n\n\t\tswitch(randNum)\n\t\t{\n\t\tcase 1:\n\t\t\treturn \"a\";\n\t\tcase 2:\n\t\t\treturn \"e\";\n\t\tcase 3:\n\t\t\treturn \"i\";\n\t\tcase 4:\n\t\t\treturn \"o\";\n\t\t}\n\n\t\treturn \"u\";\n\t}", "private static String randomString(int length) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint index = randInt(0, ALPHA_NUMERIC_STRING.length() - 1);\n\t\t\tbuilder.append(ALPHA_NUMERIC_STRING.charAt(index));\n\t\t}\n\t\treturn builder.toString();\n\t}", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}", "private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}", "public static String getRandomString(int len){\n\n String pool =\"\";\n for(int i='0';i<='9';i++)\n pool+=(char)i;\n for(int i='A'; i<= 'Z'; i++){\n pool+=(char)i;\n }\n for(int i='a'; i<='z'; i++){\n pool+=(char)i;\n }\n char[] cs = new char[len];\n for(int i=0;i<len;i++){\n cs[i] = pool.charAt( (int)(Math.random()*(pool.length())));\n }\n return new String(cs);\n\n }", "public static String randomIdentifier() {\r\n\t\tfinal String lexicon = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n\t\tfinal java.util.Random rand = new java.util.Random();\r\n\t\t// consider using a Map<String,Boolean> to say whether the identifier is\r\n\t\t// being used or not\r\n\t\tfinal Set<String> identifiers = new HashSet<String>();\r\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\twhile (builder.toString().length() == 0) {\r\n\t\t\tint length = rand.nextInt(5) + 5;\r\n\t\t\tfor (int i = 0; i < length; i++)\r\n\t\t\t\tbuilder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\r\n\t\t\tif (identifiers.contains(builder.toString()))\r\n\t\t\t\tbuilder = new StringBuilder();\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "protected String random(String value) {\n \t\treturn value + new Random().nextInt(100);\n \t}", "public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "protected void generateRandomKey(String randomLetters) {\n\n if (randomKeys == null || randomKeys.length == 0) {\n randomLetters = new String(new char[40]).replace(\"\\0\", randomLetters);\n randomKeys = shuffleArray(randomLetters.toCharArray());\n charCount = 0;\n //Log.d(CLASS_NAME, \"Random key generated\"+ new String(randomKeys));\n }\n\n generatedKey = String.valueOf(randomKeys[charCount++]);\n if (randomKeys.length - 1 == charCount) {\n generatedKey = \"All keys are finished\";\n }\n //setting the generatedkey to textview\n TextView generateKeyForTextView = (TextView) findViewById(R.id.textView_key);\n generateKeyForTextView.setText(generatedKey);\n }", "public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }", "static public String a_letraAzar() {\n\t\tRandom azar= new Random();\n\n\t\tString letraAzar[]={\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"ó\",\"O\",\"P\",\"Q\",\"R\",\"S\",\n\t\t\t\t\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"};\n\n\t\treturn letraAzar[azar.nextInt(letraAzar.length)];\n\t}", "static char[] generateAZLowerRange(int length) {\n charArray = new char[length];\n for (int i = 0; i < length; i++) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n }\n return charArray;\n }", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "public static String rndString(String type) {\r\n char min = ' ';\r\n char max = ' ';\r\n if (type.trim().equals(LATIN_LARGE)) {\r\n min = 'A';\r\n max = 'Z';\r\n } else if (type.trim().equals(LATIN_SMALL)) {\r\n min = 'a';\r\n max = 'z';\r\n } else if (type.trim().equals(DIGITS)) {\r\n min = '0';\r\n max = '9';\r\n }\r\n char[] c = RBytes.rndCharArray(min, max);\r\n return new String(c);\r\n\r\n }", "static String getRandomAgentName() {\n\n if (_names.isEmpty() && count == 0) {\n initializeNames();\n count++;\n }\n int i = (int) (Math.random() * _names.size());\n String name = \"\";\n try {\n name = _names.remove(i);\n } catch (Exception e) {\n System.out.println(\"NS Error: No more names to hand out.\");\n }\n\n return name;\n }", "public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}", "@Test\r\n\tvoid testGetRandomLetterAShouldReturnTrue() {\r\n\t\tString[] alphabet = { \"e\", \"a\", \"i\", \"o\", \"n\", \"r\", \"t\", \"l\", \"s\", \"u\", \"d\", \"g\", \"b\", \"c\", \"m\", \"p\", \"f\", \"h\",\r\n\t\t\t\t\"v\", \"w\", \"y\", \"k\", \"j\", \"x\", \"q\", \"z\" };\r\n\t\tfor (int count = 0; count < 10000; count++) {\r\n\t\t\tRandomLetter a2z = new RandomLetter();\r\n\t\t\tif (!Arrays.asList(alphabet).contains(a2z.getRandomLetter())) {\r\n\t\t\t\tfail(\"returned a value that was not in the alphabet ---\" + a2z.getRandomLetter());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String getRandomName() {\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\t//pick a firstname and surname based on length of array\n\t\tString fname = firstName[r.nextInt(firstName.length)];\n\t\tString sname = surName[r.nextInt(surName.length)];\n\t\t\n\t\treturn ( fname + \" \" + sname);\n\t\t\n\t}", "public static String getRandomName() {\n String name =\n names[RandomNumberGenerator.getRandomInt(0, names.length - 1)] + \" \"\n + nameSuffixes[RandomNumberGenerator.getRandomInt(0, nameSuffixes.length - 1)];\n return name.trim();\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public String generateId() {\n return RandomStringUtils.randomAlphabetic(32);\n }", "private String getRandName() {\n int firstName = (int)(Math.random() * listFirstNames.length);\n String fName = listFirstNames[firstName].trim();\n int lastName = (int)(Math.random() * listLastNames.length);\n String lName = listLastNames[lastName].trim();\n return ( fName + \" \" + lName ); \n }", "private String createAlphabeticalIndex(int replicateIndex) {\n StringBuilder builder = new StringBuilder();\n while (replicateIndex >= 26) {\n builder.append((char) (97 + (replicateIndex % 26)));\n replicateIndex /= 26;\n replicateIndex--;\n }\n builder.append((char) (97 + replicateIndex));\n return builder.reverse().toString();\n\n }", "public static String randomize(char[] list) {\n for (int j = 0; j < list.length; j++) {\n int index = (int) (Math.random() * list.length);\n char temp = list[j];\n list[j] = list[index];\n list[index] = temp;\n }\n String randomKey = \"\";\n for (int x = 0; x < list.length; x++) {\n randomKey += (list[x]);\n } \n return randomKey;\n }", "public static String random(final int count) {\r\n\t\treturn org.apache.commons.lang3.RandomStringUtils.randomAlphanumeric(count);\r\n\t}", "public static final String generate(int length) {\r\n\t\tif (length <= 0 || length > 100000) {\r\n\t\t\tSystem.out.println(\"Invalid length! We accept [0-100 000]!\");\r\n\t\t\treturn randomString;\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t\trandomRange = rand.nextInt((NUMBERS - CAPITAL_LETTERS) + 1) + CAPITAL_LETTERS;\r\n\r\n\t\t\t\tif (randomRange == CAPITAL_LETTERS) {\r\n\t\t\t\t\trandomNumber = rand\r\n\t\t\t\t\t\t\t.nextInt((CAPITAL_LETTERS_MAX_ASCII_CHARACTER - CAPITAL_LETTERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ CAPITAL_LETTERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t} else if (randomRange == LOWERCASE_LETTERS) {\r\n\t\t\t\t\trandomNumber = rand.nextInt(\r\n\t\t\t\t\t\t\t(LOWERCASE_LETTERS_MAX_ASCII_CHARACTER - LOWERCASE_LETTERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ LOWERCASE_LETTERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t} else if (randomRange == NUMBERS) {\r\n\t\t\t\t\trandomNumber = rand.nextInt((NUMBERS_MAX_ASCII_CHARACTER - NUMBERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ NUMBERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t}\r\n\t\t\t\trandomString += (char) randomNumber;\r\n\t\t\t}\r\n\t\t\treturn randomString;\r\n\t\t}\r\n\r\n\t}", "private char getRandomChar(RandomNumberGenerator random, Transition randomTransition) {\n char randomChar;\n do {\n int diff = randomTransition.getMax() - randomTransition.getMin() + 1;\n randomChar = (char) (random.nextInt(diff) + randomTransition.getMin());\n } while (!StringUtils.isCharValidUtf8(randomChar));\n return randomChar;\n }", "public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }", "int lower();", "protected static String generateString(int length) {\n String characters = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rnd = new Random(System.nanoTime());\n char[] text = new char[length];\n for (int i = 0; i < length; i++) {\n text[i] = characters.charAt(rnd.nextInt(characters.length()));\n }\n return new String(text);\n }", "Rule Letter() {\n // No effect on value stack\n return FirstOf(\n CharRange('a', 'z'),\n CharRange('A', 'Z'));\n }", "public void generateRandomPassword() {\n\t\tString randomPassword = \"\";\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\t\tjava.util.Random random = new java.util.Random();\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t char c = chars[random.nextInt(chars.length)];\n\t\t randomPassword += c;\n\t\t}\n\t\tthis.password = randomPassword;\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t currentLetter = generateRandomLetter();\n\n\t}", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "public static String getRandomString(int length)\r\n {\r\n if (length <= 0) length = 8;\r\n byte[] bytes = new byte[length];\r\n random.nextBytes(bytes);\r\n StringBuffer sb = new StringBuffer(length);\r\n for (int i = 0; i < length; i++)\r\n {\r\n sb.append(m_alphanumeric[Math.abs(bytes[i]%36)]);\r\n }\r\n return sb.toString();\r\n }" ]
[ "0.78501856", "0.7646329", "0.7503189", "0.7492016", "0.7430991", "0.7361209", "0.71232814", "0.7028264", "0.70189613", "0.6987024", "0.6967196", "0.6843444", "0.6840816", "0.6818913", "0.6778854", "0.67631847", "0.67137223", "0.6683574", "0.66766", "0.6660023", "0.6643866", "0.6636044", "0.66345817", "0.6631961", "0.6612795", "0.6570609", "0.65667313", "0.65348136", "0.6522812", "0.65100557", "0.6496685", "0.64840037", "0.64485383", "0.64188135", "0.64102906", "0.6407384", "0.64004016", "0.63576156", "0.6288095", "0.62864816", "0.628102", "0.6279218", "0.6249395", "0.62471366", "0.62404007", "0.6220834", "0.6208682", "0.62074584", "0.6207025", "0.6206953", "0.6206771", "0.61783284", "0.6150358", "0.61396563", "0.6122679", "0.61186844", "0.6112401", "0.609521", "0.6073964", "0.6073964", "0.6073964", "0.60636586", "0.6054598", "0.60495114", "0.6049284", "0.6046824", "0.6036957", "0.60098135", "0.60052294", "0.6003362", "0.59994304", "0.5993742", "0.5990141", "0.59883416", "0.5981962", "0.5974797", "0.59676754", "0.59674054", "0.5963149", "0.5957158", "0.5946559", "0.59396994", "0.5934599", "0.5934599", "0.5907602", "0.5902849", "0.58787847", "0.5877609", "0.5868017", "0.58609265", "0.58470327", "0.5843813", "0.5842633", "0.58387", "0.5835466", "0.58286154", "0.5827903", "0.582539", "0.5822258", "0.5820669" ]
0.8593489
0
Generate a random uppercase letter
public static char getRandomUpperCaseLetter(){ return getRandomCharacter('A','Z'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String randUpper(){\n int n = rand.nextInt(26)*2;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}", "private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }", "public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}", "public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}", "public static String randAlnum(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(62);\n if (n>51){\n result = String.valueOf(n-52);\n }else {\n result = randChar(); //both\n }\n break;\n case 1:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randLower(); //lower\n }\n break;\n case 2:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randUpper(); //upper\n }\n break;\n }\n return result;\n }", "public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}", "private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }", "public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "private String getRandomName(){\n return rndString.nextString();\n }", "public static String getRandomVowel()\n\t{\n\t\tint randNum = getRandomBetween(1,4);\n\n\t\tswitch(randNum)\n\t\t{\n\t\tcase 1:\n\t\t\treturn \"a\";\n\t\tcase 2:\n\t\t\treturn \"e\";\n\t\tcase 3:\n\t\t\treturn \"i\";\n\t\tcase 4:\n\t\t\treturn \"o\";\n\t\t}\n\n\t\treturn \"u\";\n\t}", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "public static Capital getRandomCapital() {\n\n ArrayList<Capital> capitals = getCapitalsFromFile();\n Random randomGenerator = new Random();\n int randomIndex = randomGenerator.nextInt(capitals.size());\n return capitals.get(randomIndex);\n }", "private String createFakeName() {\n final int firstLowercaseLetterAscii = 97;\n final int lowercaseLetterRange = 25;\n\n // Maximum length random name = 20\n final int minNameLength = 4;\n int randomNameLength = (random.nextInt(17)) + minNameLength;\n\n // Algorithm to generate the random name\n StringBuilder randomName = new StringBuilder();\n for (int i = 0; i < randomNameLength; i++) {\n char randChar = (char) (random.nextInt(lowercaseLetterRange + 1) + firstLowercaseLetterAscii);\n randomName.append(randChar);\n }\n return randomName.toString();\n }", "private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }", "public static String randChar(){\n int n = rand.nextInt(52);\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }", "public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }", "private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}", "public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }", "public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }", "public static String getRandomBigChar(int length) {\n\t\tString ALPHABET = \"ABCDEFGHIJKLMOPQRSTUVWXYZ\";\n\t\tfinal SecureRandom RANDOM = new SecureRandom();\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(ALPHABET.charAt(RANDOM.nextInt(ALPHABET.length())));\n\n\t\treturn sb.toString();\n\t}", "public String randomName() {\n return RandomStringUtils.randomAlphabetic( 10 );\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "public static String stringGen(int seed) {\n String word = \"\"; // holds random string\r\n String letters = \"abdefghilmnoprstuwxy\"; // usable letters\r\n char letter; // holds current letter that is added to (string)word\r\n \r\n Random randomGen = new Random();\r\n \r\n for(int x = 0; x<50; x++){ // Create a random string of 50 characters\r\n int randomInt = randomGen.nextInt(20);\r\n letter = letters.charAt(randomInt);\r\n word = word + letter;\r\n }\r\n return word; // Finalized random string\r\n }", "protected char randomChar(int length) {\n\n int randomLetter = (int) (Math.random() * length);\n char letter = this.alphabet[randomLetter];\n return letter;\n }", "static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static char[] generateAZUpperRange(int length) {\n charArray = new char[length];\n for (int i = 0; i < length; i++) {\n charArray[i] = RandomChar.generateAZUpperRangeChar();\n }\n return charArray;\n }", "static char[] generateAZLowercaseAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 2);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "public void generateRandomPassword() {\n\t\tString randomPassword = \"\";\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\t\tjava.util.Random random = new java.util.Random();\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t char c = chars[random.nextInt(chars.length)];\n\t\t randomPassword += c;\n\t\t}\n\t\tthis.password = randomPassword;\n\t}", "private static String makeLatinName(int len, Random r) {\n final String lc = \"abcdefghijklmnopqrstuvwxyz\";\n final String alphabet = lc + lc.toUpperCase();\n final String start = \"$_\" + alphabet;\n final String part = start + \"0123456789\";\n\n StringBuffer sb = new StringBuffer();\n sb.append(start.charAt(r.nextInt(start.length())));\n while (sb.length() < len)\n sb.append(part.charAt(r.nextInt(part.length())));\n return sb.toString();\n }", "public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "public static String generatePatientName(){\n\n\t\tString retName = \"\";\t// return this string\n\n\t\t// Seed random generator\n\t\tRandom generator = new Random();\n\n\t\tint length = getRandomBetween(5,6);\n\n\t\t// CVCCVC or VCCVCV\n\t\tif(getRandomBetween(1,2) < 2)\n\t\t{\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomVowel();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tif (length >= 5) { retName += getRandomVowel(); }\n\t\t\tif (length >= 6) { retName += getRandomConsonant(); }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tretName += getRandomVowel();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomVowel();\n\t\t\tif (length >= 5) { retName += getRandomConsonant(); }\n\t\t\tif (length >= 6) { retName += getRandomVowel(); }\n\t\t}\n\n\t\treturn retName;\n\t}", "public static String randomStringGenerator(int len)\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =len;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return generatedString;\n }", "int upper();", "public static String generateRandomUsername() {\n final String randomFirst = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomSecond = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomThird = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n String userName = randomFirst + randomSecond + randomThird;\n\n userName = userName.substring(0, 10) + \"@ngetestmail.com\";\n\n return userName;\n }", "String selectRandomSecretWord();", "public String generatePassword() {\n List<char[]> allAllowed = new ArrayList<>();\n if (uppercase) {\n allAllowed.add(UPPERCASE);\n }\n if (lowercase) {\n allAllowed.add(LOWERCASE);\n }\n if (numbers) {\n allAllowed.add(NUMBERS);\n }\n if (symbols) {\n allAllowed.add(SYMBOLS);\n }\n\n //Use cryptographically secure random number generator\n Random random = new SecureRandom();\n\n StringBuilder password = new StringBuilder();\n\n // Random chars\n for (int i = 0; i < length - allAllowed.size(); i++) {\n char[] characterType = allAllowed.get(random.nextInt(allAllowed.size()));\n password.append(characterType[random.nextInt(characterType.length)]);\n }\n\n //Ensure password policy is met by inserting required random chars in random positions\n for (char[] category : allAllowed) {\n password.insert(random.nextInt(password.length()), category[random.nextInt(category.length)]);\n }\n return password.toString();\n }", "private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }", "public static String ranLetterString() {\n ArrayList<Character> ranCharArr = new ArrayList<Character>();\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n for ( int i = 0; i < 5; i++) {\n ranCharArr.add(letter.get(i));\n }\n System.out.println(ranCharArr);\n StringBuilder ranString = new StringBuilder();\n for(char ranChar : ranCharArr) {\n ranString.append(ranChar);\n }\n return ranString.toString();\n }", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }", "public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }", "public static String getRandomName() {\n Faker faker = new Faker();\n return faker.name().fullName();\n }", "private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}", "static char[] generateAZBothCasesAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateAZUpperRangeChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "static char[] generateAZLowercaseAndNumbersAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }", "public static String generateRandomString(int length) {\n\t\tfinal SecureRandom secureRandom = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < length; ++i) {\n\t\t\tsb.append(ALPHABET.charAt(secureRandom.nextInt(ALPHABET.length())));\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "private char getRandomChar(RandomNumberGenerator random, Transition randomTransition) {\n char randomChar;\n do {\n int diff = randomTransition.getMax() - randomTransition.getMin() + 1;\n randomChar = (char) (random.nextInt(diff) + randomTransition.getMin());\n } while (!StringUtils.isCharValidUtf8(randomChar));\n return randomChar;\n }", "static char[] generateAZBothCasesRange(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 2);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateAZUpperRangeChar();\n }\n }\n return charArray;\n }", "public static String generateRandomAlphanumericString(int length) {\n return RandomStringUtils.randomAlphanumeric(length).toLowerCase();\n }", "static char[] generateAZLowercaseAndNumbers(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 2);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n }\n }\n return charArray;\n }", "public static String coder(){\n Random randomGen = new Random();\n \n String letter1, letter2 = \"\";\n int random1, random2, random3, random4 = 0;\n String genome = \"\";\n \n int i = 0;\n int first = (int)((Math.random()*26)+97);\n char firstChar = Character.toUpperCase((char) first);\n genome += firstChar;\n \n int second = (int)((Math.random()*26)+97);\n char secondChar = Character.toUpperCase((char) second);\n genome += secondChar;\n \n random1 = randomGen.nextInt(10);\n genome += random1;\n \n random2 = randomGen.nextInt(10);\n genome += random2;\n \n random3 = randomGen.nextInt(10);\n genome += random3;\n \n random4 = randomGen.nextInt(10);\n genome += random4;\n \n return genome;\n }", "static String getAlphaNumericString(int n) \n {\n byte[] array = new byte[256]; \n new Random().nextBytes(array); \n \n String randomString \n = new String(array, Charset.forName(\"UTF-8\")); \n \n // Create a StringBuffer to store the result \n StringBuffer r = new StringBuffer(); \n \n // Append first 20 alphanumeric characters \n // from the generated random String into the result \n for (int k = 0; k < randomString.length(); k++) { \n \n char ch = randomString.charAt(k); \n \n if (((ch >= 'a' && ch <= 'z') \n || (ch >= 'A' && ch <= 'Z') \n || (ch >= '0' && ch <= '9')) \n && (n > 0)) { \n \n r.append(ch); \n n--; \n } \n } \n \n // return the resultant string \n return r.toString(); \n }", "public static final String generate(int length) {\r\n\t\tif (length <= 0 || length > 100000) {\r\n\t\t\tSystem.out.println(\"Invalid length! We accept [0-100 000]!\");\r\n\t\t\treturn randomString;\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t\trandomRange = rand.nextInt((NUMBERS - CAPITAL_LETTERS) + 1) + CAPITAL_LETTERS;\r\n\r\n\t\t\t\tif (randomRange == CAPITAL_LETTERS) {\r\n\t\t\t\t\trandomNumber = rand\r\n\t\t\t\t\t\t\t.nextInt((CAPITAL_LETTERS_MAX_ASCII_CHARACTER - CAPITAL_LETTERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ CAPITAL_LETTERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t} else if (randomRange == LOWERCASE_LETTERS) {\r\n\t\t\t\t\trandomNumber = rand.nextInt(\r\n\t\t\t\t\t\t\t(LOWERCASE_LETTERS_MAX_ASCII_CHARACTER - LOWERCASE_LETTERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ LOWERCASE_LETTERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t} else if (randomRange == NUMBERS) {\r\n\t\t\t\t\trandomNumber = rand.nextInt((NUMBERS_MAX_ASCII_CHARACTER - NUMBERS_MIN_ASCII_CHARACTER) + 1)\r\n\t\t\t\t\t\t\t+ NUMBERS_MIN_ASCII_CHARACTER;\r\n\t\t\t\t}\r\n\t\t\t\trandomString += (char) randomNumber;\r\n\t\t\t}\r\n\t\t\treturn randomString;\r\n\t\t}\r\n\r\n\t}", "private String randomSurname() {\n\n String surname = this.surnames.get(intRandom(surnames.size() - 1));\n return surname;\n }", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "public static void letterShuff() {\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n System.out.println(letter);\n System.out.println(letter.get(letter.size()-1));\n System.out.println(letter.get(0));\n if(letter.get(0) == 'a' || letter.get(0) == 'e' || letter.get(0) == 'i' || letter.get(0) == 'o' || letter.get(0) == 'u') {\n System.out.println(\"I'm a vowel!\");\n }\n }", "public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}", "public static String[] generateRegularAlphabet()\n {\n String[] regularAlphabet = new String[26];\n for(int index = 0; index<regularAlphabet.length; index++)\n {\n regularAlphabet[index] = (char)(index+65) + \"\";\n }\n return regularAlphabet;\n }", "public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }", "private String randomName() {\n\n String name = this.names.get(intRandom(names.size() - 1));\n return name;\n }", "public static String getRandomString(int len){\n\n String pool =\"\";\n for(int i='0';i<='9';i++)\n pool+=(char)i;\n for(int i='A'; i<= 'Z'; i++){\n pool+=(char)i;\n }\n for(int i='a'; i<='z'; i++){\n pool+=(char)i;\n }\n char[] cs = new char[len];\n for(int i=0;i<len;i++){\n cs[i] = pool.charAt( (int)(Math.random()*(pool.length())));\n }\n return new String(cs);\n\n }", "public static String randomString() {\n\t\tfinal long value = RANDOMIZER.nextLong();\n\t\treturn String.valueOf(value < 0 ? value * -1 : value);\n\t}", "private static String palindromeGenerator(int n) {\n\t\tif (n <= 0) return \"\";\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (n % 2 == 1) sb.append((char)(randomGenerator.nextInt(25) + 'a'));\n\t\twhile (sb.length() < n) {\n\t\t\tchar temp = (char)(randomGenerator.nextInt(25) + 'a');\n\t\t\tsb.insert(0, temp);\n\t\t\tsb.append(temp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "public static String generateResetCode() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "public static String randomEmail() {\n\t\tRandom randomGenerator = new Random(); \n\t\tint randomInt = randomGenerator.nextInt(10000); \n\t\treturn \"username\"+ randomInt +\"@yopmail.com\"; \n\t}", "public static String getRandomString(int n) \r\n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n + \"0123456789\"\r\n + \"abcdefghijklmnopqrstuvxyz\"; \r\n \r\n // create StringBuffer size of AlphaNumericString \r\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index \r\n = (int)(AlphaNumericString.length() \r\n * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(AlphaNumericString \r\n .charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static String getRandomString(int length)\r\n {\r\n if (length <= 0) length = 8;\r\n byte[] bytes = new byte[length];\r\n random.nextBytes(bytes);\r\n StringBuffer sb = new StringBuffer(length);\r\n for (int i = 0; i < length; i++)\r\n {\r\n sb.append(m_alphanumeric[Math.abs(bytes[i]%36)]);\r\n }\r\n return sb.toString();\r\n }", "private static String randomString(int length) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint index = randInt(0, ALPHA_NUMERIC_STRING.length() - 1);\n\t\t\tbuilder.append(ALPHA_NUMERIC_STRING.charAt(index));\n\t\t}\n\t\treturn builder.toString();\n\t}", "public String generate(final int count){\n return RandomStringUtils.random(count, true, true);\n }", "public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }", "public String generatePassword(int size) {\n\n int wordIndx = getRandomWord();\n String newPassword = threeCharWords.get(wordIndx);\n return newPassword + getRandomNumber(size);\n\n\n }", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "public static String randomString(int lo, int hi){ \r\n int n = rand(lo, hi); \r\n byte b[] = new byte[n]; \r\n for (int i = 0; i < n; i++) \r\n b[i] = (byte)rand('a', 'z'); \r\n return new String(b, 0); \r\n\t}", "public String generatePassword(){\n\t\treturn \"a\" + super.generatePassword() + \"1\";\n\t}", "public static void printUpperCase()\n {\n for(char i = 'A'; i <= 'Z'; i++){\n System.out.print(i + \" \");\n }\n System.out.println();\n }", "public static String getRandomString(int length) {\n\t\tString ALPHABET = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfinal SecureRandom RANDOM = new SecureRandom();\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < length; ++i) {\n\t\t\tsb.append(ALPHABET.charAt(RANDOM.nextInt(ALPHABET.length())));\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String generateHalfKey(){\n return randomChars(HALF_KEY_LENGTH);\n }", "public void firstToUpperCase() {\n \n }" ]
[ "0.79241604", "0.79140574", "0.74687797", "0.7405192", "0.71870947", "0.70969397", "0.705671", "0.6845198", "0.68337566", "0.6771737", "0.6757319", "0.6722941", "0.66936696", "0.6623892", "0.66183317", "0.6611303", "0.6563441", "0.6555716", "0.6554426", "0.652856", "0.65114033", "0.64958507", "0.64897794", "0.6481352", "0.64686567", "0.64427847", "0.64420813", "0.64061195", "0.6347125", "0.6346823", "0.63408196", "0.63311225", "0.6323946", "0.63076264", "0.6286416", "0.62794626", "0.6271981", "0.62648314", "0.6236456", "0.6235667", "0.6234742", "0.62275255", "0.6221329", "0.6211858", "0.62095106", "0.62095106", "0.6199828", "0.6196776", "0.6190618", "0.6183909", "0.617216", "0.61631846", "0.61439174", "0.6119333", "0.6084732", "0.6075553", "0.6061917", "0.6060405", "0.6049912", "0.604402", "0.60358083", "0.603357", "0.60215014", "0.60187113", "0.6004039", "0.6002936", "0.5999476", "0.5997963", "0.59888244", "0.5969089", "0.5968991", "0.5953474", "0.5944801", "0.5933448", "0.59238714", "0.59210277", "0.5920356", "0.5908235", "0.58884245", "0.5883089", "0.58768", "0.586778", "0.5862209", "0.5860338", "0.5859723", "0.5859396", "0.58391935", "0.5837456", "0.5829544", "0.58223766", "0.5819048", "0.58174866", "0.5815376", "0.5812463", "0.580453", "0.58023465", "0.5796662", "0.57962364", "0.578665", "0.5782622" ]
0.87272906
0
Generate a random digit character
public static char getDigitCharacter(){ return getRandomCharacter('0','9'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}", "private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }", "public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}", "public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}", "public static String randChar(){\n int n = rand.nextInt(52);\n return String.valueOf(KEYBOARD.charAt(n));\n }", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }", "private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "public static String randInt(){\n return String.valueOf(rand.nextInt(10));\n }", "public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "public static String generateResetCode() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}", "public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }", "public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }", "public String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(899999) + 100000;\n\n // this will convert any number sequence into 6 character.\n String formatted_code = String.format(\"%06d\", number);\n\n return formatted_code;\n }", "public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }", "private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }", "protected char randomChar(int length) {\n\n int randomLetter = (int) (Math.random() * length);\n char letter = this.alphabet[randomLetter];\n return letter;\n }", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "public static String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(9999999);\n\n // this will convert any number sequence into 6 character.\n return String.format(\"%07d\", number);\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "private char getRandomChar(RandomNumberGenerator random, Transition randomTransition) {\n char randomChar;\n do {\n int diff = randomTransition.getMax() - randomTransition.getMin() + 1;\n randomChar = (char) (random.nextInt(diff) + randomTransition.getMin());\n } while (!StringUtils.isCharValidUtf8(randomChar));\n return randomChar;\n }", "public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }", "private String generateRandomHexString(){\n return Long.toHexString(Double.doubleToLongBits(Math.random()));\n }", "public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }", "public static String getRandomBigChar(int length) {\n\t\tString ALPHABET = \"ABCDEFGHIJKLMOPQRSTUVWXYZ\";\n\t\tfinal SecureRandom RANDOM = new SecureRandom();\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(ALPHABET.charAt(RANDOM.nextInt(ALPHABET.length())));\n\n\t\treturn sb.toString();\n\t}", "private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "public static String generateMobNum() {\n\t\tString number = RandomStringUtils.randomNumeric(10);\t\n\t\treturn (number);\n\t}", "public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setting password size to 6\n IntStream.range(0, password.length).forEach(i -> password[i] = values.charAt(random.nextInt(values.length())));\n return String.valueOf(password);\n }", "public static String randomNumberGenerator() {\r\n\t\tint max = 999999999; // e.g. 714053349 (9 digits)\r\n\t\tRandom rand = new Random();\r\n\t\tint min = 0;\r\n\t\tint randomNum = rand.nextInt(max - min + 1) + min;\r\n\t\treturn Integer.toString(randomNum);\r\n\t}", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "public static String getRandomAplhaNumeric(String characters) {\n\t\tSecureRandom secureRnd = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tsb.append(characters.charAt(secureRnd.nextInt(characters.length())));\n\t\treturn sb.toString();\n\t}", "public void generateRandomPassword() {\n\t\tString randomPassword = \"\";\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\t\tjava.util.Random random = new java.util.Random();\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t char c = chars[random.nextInt(chars.length)];\n\t\t randomPassword += c;\n\t\t}\n\t\tthis.password = randomPassword;\n\t}", "public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }", "public static String getRandomString() {\n \tif (random == null)\n \t\trandom = new Random();\n \treturn new BigInteger(1000, random).toString(32);\n }", "public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}", "public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }", "public String randomString() {\n return new BigInteger(130, random).toString(32);\n }", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(SHORT_DEF_COUNT);\n }", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "static String getAlphaNumericString(int n) \n {\n byte[] array = new byte[256]; \n new Random().nextBytes(array); \n \n String randomString \n = new String(array, Charset.forName(\"UTF-8\")); \n \n // Create a StringBuffer to store the result \n StringBuffer r = new StringBuffer(); \n \n // Append first 20 alphanumeric characters \n // from the generated random String into the result \n for (int k = 0; k < randomString.length(); k++) { \n \n char ch = randomString.charAt(k); \n \n if (((ch >= 'a' && ch <= 'z') \n || (ch >= 'A' && ch <= 'Z') \n || (ch >= '0' && ch <= '9')) \n && (n > 0)) { \n \n r.append(ch); \n n--; \n } \n } \n \n // return the resultant string \n return r.toString(); \n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aStart;\n return String.valueOf(randomNumber);\n }", "private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }", "public void generateCharacters() {\n for(int i = 0; i < 3; i++) {\n this.characters.add(getRandomCharacter());\n }\n }", "public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}", "public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}", "public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }", "public static String randSym(){\n int n = rand.nextInt(rand.nextInt(83 - 52 + 1) + 52);\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public synchronized String generateTag() {\n return Integer.toHexString(rand.nextInt());\n }", "public int generateKey() {\n SecureRandom secureRandom = new SecureRandom();\n try {\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return secureRandom.nextInt(26);\n }", "private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}", "public static String randomStringGenerator(int len)\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =len;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return generatedString;\n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "static String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\"; \n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }", "@Override\r\n\tpublic String randString(int n, String base) {\n\t\tint bLength = base.length();\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tRandom r = new Random();\r\n\t\tint index;\r\n\t\tfor(int i=0; i<n; i++)\r\n\t\t{\r\n\t\t\tindex = r.nextInt(bLength);\r\n\t\t\tsb.append(base.charAt(index));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String generate(final int count){\n return RandomStringUtils.random(count, true, true);\n }", "public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }", "public synchronized static final String generateRandomString(int n) {\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyz1234567890\".toCharArray();\n\t\tSecureRandom random = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsb.append(chars[random.nextInt(chars.length)]);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String generateRandomString(int length) {\n String CHAR = \"ABCDEF\";\n String NUMBER = \"0123456789\";\n\n String DATA_FOR_RANDOM_STRING = CHAR + NUMBER;\n SecureRandom random = new SecureRandom();\n\n if (length < 1) throw new IllegalArgumentException();\n\n StringBuilder sb = new StringBuilder(length);\n\n for (int i = 0; i < length; i++) {\n // 0-62 (exclusive), random returns 0-61\n int rndCharAt = random.nextInt(DATA_FOR_RANDOM_STRING.length());\n char rndChar = DATA_FOR_RANDOM_STRING.charAt(rndCharAt);\n\n sb.append(rndChar);\n }\n\n return sb.toString();\n }", "static Card generateRandomCard()\n {\n Card.Suit suit;\n char val;\n\n int suitSelector, valSelector;\n\n // get random suit and value\n suitSelector = (int) (Math.random() * 4);\n valSelector = (int) (Math.random() * 14);\n\n // pick suit\n suit = Card.Suit.values()[suitSelector];\n\n // pick value\n valSelector++; // put in range 1-14\n switch(valSelector)\n {\n case 1:\n val = 'A';\n break;\n case 10:\n val = 'T';\n break;\n case 11:\n val = 'J';\n break;\n case 12:\n val = 'Q';\n break;\n case 13:\n val = 'K';\n break;\n case 14:\n val = 'X';\n break;\n default:\n val = (char)('0' + valSelector); // simple way to turn n into 'n' \n }\n return new Card(val, suit);\n }", "public static char getRandomUpperCaseLetter(){\n\t\treturn getRandomCharacter('A','Z');\n\t}", "private void shuffle(char[] digits, int i) {\n char d = digits[i];\n do {\n digits[i] = (char)(rand.nextInt(10) + '0');\n } while (d == digits[i]);\n }", "public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}", "public static String randAlnum(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(62);\n if (n>51){\n result = String.valueOf(n-52);\n }else {\n result = randChar(); //both\n }\n break;\n case 1:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randLower(); //lower\n }\n break;\n case 2:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randUpper(); //upper\n }\n break;\n }\n return result;\n }", "private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (randBoolean.nextBoolean()) {\n newSeed += 1 << i;\n }\n }\n if (newSeed < 0) {\n newSeed = Math.abs(newSeed);\n }\n\n String s = \"\";\n if (newSeed == 0) {\n s += \"0\";\n } else {\n while (newSeed != 0) {\n long num = (newSeed & (0xF));\n if (num < 10) {\n s = num + s;\n } else {\n s = ((char) (num + 55)) + s;\n }\n newSeed = newSeed >> 4;\n }\n }\n return s;\n }", "public static final String getRandomId() {\r\n return (\"\" + Math.random()).substring(2);\r\n }", "private String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\"; \n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public int generateOTP(String key){\n int len =4;\n\n int OTP;\n String numbers = \"0123456789\";\n Random rndm_method = new Random();\n\n char[] otp = new char[len];\n\n for (int i = 0; i < len; i++)\n {\n otp[i] =\n numbers.charAt(rndm_method.nextInt(numbers.length()));\n }\n OTP = Integer.parseInt(String.valueOf(otp));\n otpCache.put(key, OTP);\n return OTP;\n }", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "public String generateId() {\n return RandomStringUtils.randomAlphabetic(32);\n }", "public static String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\";\n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }", "public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }", "public static String randomString() {\n\t\tfinal long value = RANDOMIZER.nextLong();\n\t\treturn String.valueOf(value < 0 ? value * -1 : value);\n\t}", "public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}", "public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }", "public String generatePassword() {\n List<char[]> allAllowed = new ArrayList<>();\n if (uppercase) {\n allAllowed.add(UPPERCASE);\n }\n if (lowercase) {\n allAllowed.add(LOWERCASE);\n }\n if (numbers) {\n allAllowed.add(NUMBERS);\n }\n if (symbols) {\n allAllowed.add(SYMBOLS);\n }\n\n //Use cryptographically secure random number generator\n Random random = new SecureRandom();\n\n StringBuilder password = new StringBuilder();\n\n // Random chars\n for (int i = 0; i < length - allAllowed.size(); i++) {\n char[] characterType = allAllowed.get(random.nextInt(allAllowed.size()));\n password.append(characterType[random.nextInt(characterType.length)]);\n }\n\n //Ensure password policy is met by inserting required random chars in random positions\n for (char[] category : allAllowed) {\n password.insert(random.nextInt(password.length()), category[random.nextInt(category.length)]);\n }\n return password.toString();\n }", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public String generateTrackingNumber() {\n String randChars = \"ABCDEFGHIJ0123456789\";\n StringBuilder trackingNumber = new StringBuilder();\n Random rand = new Random();\n \n while(trackingNumber.length() < 12) {\n int i = (int) (rand.nextFloat() * randChars.length());\n trackingNumber.append(randChars.charAt(i));\n }\n String trackingNum = trackingNumber.toString();\n return trackingNum;\n }", "private static char[] initNum() {\n\t\tchar[] values = {'0', '1', '2', '3', '4', '5',\n\t\t\t\t'6', '7', '8', '9'};\n\t\tchar[] answer = new char[4];\n\t\t\n\t\tint countReady = 0;\n\t\t\n\t\twhile(countReady != 4) {\n\t\t\tint tempChar = rndChar();\n\t\t\tif(values[tempChar] != 'x') {\n\t\t\t\tanswer[countReady] = values[tempChar];\n\t\t\t\tvalues[tempChar] = 'x';\n\t\t\t\tcountReady++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn answer;\n\t}", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "public static String generateRandomKey(int keyLength) {\n String result = \"\";\n Random rand = new Random();\n\n for(int i = 0; i<keyLength; i++) {\n result+=(char)(rand.nextInt(90-65 +1) +65);\n }\n\n return result;\n }" ]
[ "0.82512045", "0.8068221", "0.7725773", "0.74648607", "0.74126863", "0.7283106", "0.7279391", "0.72344613", "0.7218834", "0.7079502", "0.7061751", "0.698779", "0.6976856", "0.69592947", "0.6932893", "0.6924896", "0.6919181", "0.68540716", "0.6852282", "0.683822", "0.68318796", "0.6806324", "0.6782055", "0.6774118", "0.6729609", "0.67188", "0.6707697", "0.66973853", "0.66964835", "0.6689939", "0.6689858", "0.6687529", "0.6676685", "0.6673231", "0.6651654", "0.6626257", "0.6614827", "0.661071", "0.65988517", "0.65955305", "0.65887916", "0.6573457", "0.6572425", "0.6569615", "0.6560974", "0.65497786", "0.6545299", "0.65421474", "0.6538986", "0.6538646", "0.65382653", "0.6537753", "0.652426", "0.65217733", "0.65174097", "0.64822584", "0.6477113", "0.64673096", "0.64635205", "0.6414801", "0.6410652", "0.6409815", "0.64035565", "0.6396203", "0.6374577", "0.6341115", "0.6338137", "0.63346547", "0.6332741", "0.63267195", "0.6322888", "0.63215524", "0.63023645", "0.63006634", "0.6300165", "0.62926596", "0.62824225", "0.62787676", "0.62755746", "0.6259583", "0.6251432", "0.62479526", "0.6246235", "0.62454176", "0.62392986", "0.62392986", "0.62319624", "0.62301564", "0.6222257", "0.62217176", "0.62158936", "0.6215011", "0.6210891", "0.62003106", "0.6199816", "0.61752605", "0.6166312", "0.61602855", "0.61515516", "0.61469615" ]
0.7900153
2
Overrides version in ActiveEntity
public void scheduleActions(WorldModel world, ImageStore imageStore, EventScheduler eventScheduler) { eventScheduler.scheduleEvent(this, new Activity(this, world, imageStore), getActionPeriod()); eventScheduler.scheduleEvent(this, new Animation(this, 0), getAnimationPeriod()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}", "@Override\n public int getVersion() {\n return 0;\n }", "protected abstract int getVersion(EntityType entityType, String entityName) throws IOException;", "@Override\r\n\tpublic int getVersion() {\n\t\treturn 0;\r\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public abstract int getVersion();", "@Override\n public int getImplVersion() {\n return EVOLVABLE_VERSION;\n }", "public int getVersion() { return 1; }", "@Override\n public int getVersion() {\n return 3;\n }", "@MappedSuperclass\n<<<<<<< HEAD\n//@EntityListeners(BaseEntityListener.class)\n=======\n@EntityListeners(BaseEntityListener.class)\n>>>>>>> refs/remotes/maksymshemet/master\npublic abstract class BaseEntity {\n\n @Id\n @GeneratedValue(strategy = GenerationType.IDENTITY)\n @Column(name = \"id\")\n private long id;\n\n @Column(name=\"create_date\", updatable = false)\n private Timestamp created;\n\n<<<<<<< HEAD\n @Version\n=======\n>>>>>>> refs/remotes/maksymshemet/master\n @Column(name=\"update_date\")\n private Timestamp updated;\n\n public long getId() {\n return id;\n }", "@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }", "public abstract String getVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "@Override\r\n\tpublic String getVersion() {\r\n\t\treturn \"1.0.5\";\r\n\t}", "@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}", "abstract public int dbVersion();", "public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }", "@Override\n\tpublic String getVersion() {\n\t\treturn \"1.0\";\n\t}", "@Override\n\tpublic String getVersion() {\n\t\treturn \"0\";\n\t}", "@java.lang.Override\n public long getVersion() {\n return version_;\n }", "protected abstract byte[] getEntity(EntityType entityType, String entityName, int entityVersion) throws IOException;", "@Override\n public double getVersion() {\n return 0;\n }", "public void setEntityVersions(final Versionable entity) {\n \t\tcurrentModel = null;\n \t\tRpcProxy<PagingLoadResult<BaseModelData>> proxy = new RpcProxy<PagingLoadResult<BaseModelData>>() {\n \n \t\t\t@Override\n \t\t\tprotected void load(\n \t\t\t\t\tfinal Object loadConfig,\n \t\t\t\t\tfinal AsyncCallback<PagingLoadResult<BaseModelData>> callback) {\n \t\t\t\tfinal int offset = ((PagingLoadConfig) loadConfig).getOffset();\n \t\t\t\tint limit = ((PagingLoadConfig) loadConfig).getLimit();\n \t\t\t\tpreviousVersionsHasNotPaged = (offset == 0);\n \t\t\t\tpresenter.loadVersions(entity.getId(), offset, limit,\n \t\t\t\t\t\tnew AsyncCallback<PaginatedResults<VersionInfo>>() {\n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void onSuccess(\n \t\t\t\t\t\t\t\t\tPaginatedResults<VersionInfo> result) {\n \t\t\t\t\t\t\t\tList<BaseModelData> dataList = new ArrayList<BaseModelData>();\n \t\t\t\t\t\t\t\tfor (VersionInfo version : result.getResults()) {\n \t\t\t\t\t\t\t\t\tBaseModelData model = new BaseModelData();\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_ID,\n \t\t\t\t\t\t\t\t\t\t\tversion.getId());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_NUMBER,\n \t\t\t\t\t\t\t\t\t\t\tversion.getVersionNumber());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_LABEL,\n \t\t\t\t\t\t\t\t\t\t\tversion.getVersionLabel());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_COMMENT,\n \t\t\t\t\t\t\t\t\t\t\tversion.getVersionComment());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_MOD_ON,\n \t\t\t\t\t\t\t\t\t\t\tversion.getModifiedOn());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_MOD_BY,\n \t\t\t\t\t\t\t\t\t\t\tversion.getModifiedByPrincipalId());\n \n \t\t\t\t\t\t\t\t\tif (entity.getVersionNumber().equals(version.getVersionNumber()))\n \t\t\t\t\t\t\t\t\t\tcurrentModel = model;\n \t\t\t\t\t\t\t\t\tdataList.add(model);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tif (currentModel == null) {\n \t\t\t\t\t\t\t\t\t//we have not found the current model. keep paging until it's found\n \t\t\t\t\t\t\t\t\t((PagingLoadConfig)loadConfig).setOffset(offset + VERSION_LIMIT);\n \t\t\t\t\t\t\t\t\tload(loadConfig, callback);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\telse {\n \t\t\t\t\t\t\t\t\tPagingLoadResult<BaseModelData> loadResultData = new BasePagingLoadResult<BaseModelData>(\n \t\t\t\t\t\t\t\t\t\t\tdataList);\n \t\t\t\t\t\t\t\t\tloadResultData.setTotalLength((int) result\n \t\t\t\t\t\t\t\t\t\t\t.getTotalNumberOfResults());\n \t\t\t\t\t\t\t\t\tvToolbar.setVisible(loadResultData\n \t\t\t\t\t\t\t\t\t\t\t.getTotalLength() > VERSION_LIMIT);\n \t\n \t\t\t\t\t\t\t\t\tloadResultData.setOffset(offset);\n \t\t\t\t\t\t\t\t\tcallback.onSuccess(loadResultData);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n \t\t\t\t\t\t\t\tcallback.onFailure(caught);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \t\t\t}\n \n \t\t};\n \t\tfinal BasePagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(\n \t\t\t\tproxy);\n \t\tloader.setRemoteSort(false);\n \t\tloader.setReuseLoadConfig(true);\n \t\tvToolbar.bind(loader);\n \n \t\t// add initial data to the store\n \t\tListStore<BaseModelData> store = new ListStore<BaseModelData>(loader);\n \t\tvGrid.reconfigure(store, setupColumnModel(entity));\n \t\tloader.load();\n \n \t\tvGrid.addListener(Events.Attach, new Listener<GridEvent<ModelData>>() {\n \t\t\tpublic void handleEvent(GridEvent<ModelData> be) {\n \t\t\t\tBasePagingLoadConfig config = new BasePagingLoadConfig();\n \t\t\t\tconfig.setLimit(VERSION_LIMIT);\n \t\t\t\tconfig.setOffset(0);\n \t\t\t\tloader.load(config);\n \t\t\t}\n \t\t});\n \t\t\n \t}", "@Override\n public int getVersion() {\n return 4;\n }", "void setVersion(long version);", "public long getVersion(){\n return localVersion;\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\r\n public void setMaxVersions(int parseInt) {\n\r\n }", "@Override\n public double getVersion() {\n return classVersion;\n }", "public abstract String getOntologyEditorVersion();", "@objid (\"1fac425c-de46-4e1e-b4d3-45a97af65df0\")\n @Override\n public Version getVersion() {\n return ModelioVersion.VERSION;\n }", "public abstract V getEntity();", "@IID(\"{87B013CA-DE17-495F-B9D5-D8B7901FCB4D}\")\npublic interface IVersionedEntitiesFactory extends Com4jObject {\n // Methods:\n /**\n * <p>\n * For HP use. Returns the specified version of the item. Applies only to the Tests entity.\n * </p>\n * @param itemKey Mandatory java.lang.Object parameter.\n * @param versionNumber Mandatory int parameter.\n * @return Returns a value of type com4j.Com4jObject\n */\n\n @DISPID(1) //= 0x1. The runtime will prefer the VTID if present\n @VTID(7)\n @ReturnValue(type=NativeType.Dispatch)\n Com4jObject viewVersion(\n @MarshalAs(NativeType.VARIANT) Object itemKey,\n int versionNumber);\n\n\n /**\n * <p>\n * Returns the number of entities of the type managed by this factory that are checked out by the current user.\n * </p>\n * <p>\n * Getter method for the COM property \"CheckedOutEntitiesCount\"\n * </p>\n * @return Returns a value of type int\n */\n\n @DISPID(2) //= 0x2. The runtime will prefer the VTID if present\n @VTID(8)\n int checkedOutEntitiesCount();\n\n\n /**\n * <p>\n * For HP use. Multiple check-in of entities.\n * </p>\n * @param pList Mandatory DDDD.IList parameter.\n * @param comments Mandatory java.lang.String parameter.\n */\n\n @DISPID(3) //= 0x3. The runtime will prefer the VTID if present\n @VTID(9)\n void checkInEntities(\n IList pList,\n String comments);\n\n\n /**\n * <p>\n * For HP use. Multiple check out of entities.\n * </p>\n * @param pList Mandatory DDDD.IList parameter.\n * @param comments Mandatory java.lang.String parameter.\n */\n\n @DISPID(4) //= 0x4. The runtime will prefer the VTID if present\n @VTID(10)\n void checkOutEntities(\n IList pList,\n String comments);\n\n\n /**\n * <p>\n * For HP use. Multiple undo check out of entities.\n * </p>\n * @param pList Mandatory DDDD.IList parameter.\n */\n\n @DISPID(5) //= 0x5. The runtime will prefer the VTID if present\n @VTID(11)\n void undoCheckOutEntities(\n IList pList);\n\n\n // Properties:\n}", "Long getVersion();", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "protected void entityInit() {}", "@Override\n public Class<? extends Feature> getFeatureClass() {\n\treturn VersionFeatures.class;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public void setVersion(String version);", "public abstract double getVersionNumber();", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "@Override\n public HashedVersion getEndVersion() {\n return getSnapshot().getHashedVersion();\n }", "public int getLastVersion() {\n return emlVersion - 1;\n }", "@Override\n public int getMajorVersion() {\n return 2;\n }", "public Version getVersion() {\n throw new UnsupportedOperationException();\n }", "public String getProductVersion();", "@Override\n\tpublic void initEntity() {\n\n\t}", "@Override\n public String getVersionString() {\n return versionString;\n }", "@SuppressWarnings(\"unused\")\n private Long getVersion() {\n return version;\n }", "public Version getVersion();", "public FullVersion MprisVersion();", "public interface VersiontableModel extends BaseModel {\n\n /**\n * Get the {@code version_name} value.\n * Can be {@code null}.\n */\n @Nullable\n String getVersionName();\n\n /**\n * Get the {@code version_id} value.\n * Can be {@code null}.\n */\n @Nullable\n Integer getVersionId();\n\n /**\n * Get the {@code model_id} value.\n * Can be {@code null}.\n */\n @Nullable\n Integer getModelId();\n\n /**\n * Get the {@code fuel_type} value.\n * Can be {@code null}.\n */\n @Nullable\n String getFuelType();\n}", "@Override\n\tpublic void setMethodVersion() {\n\t\tthis.version=\"app3.5\";\n\t}", "Version getApiVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "public void setVersion(String version){\r\n this.version = version;\r\n }", "public String getVersion(){\r\n return version;\r\n }", "@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }", "@Override\n\tpublic String entityClassName() {\n\t\treturn null;\n\t}", "public void setVersion(long version) {\n this.version = version;\n }", "@Override\n public int getEffectiveMajorVersion() {\n return 0;\n }", "@Override\n public String getImplementationVersion() {\n return \"0.0.1-SNAPSHOT\";\n }", "@ApiModelProperty(value = \"The version is used for optimistic locking and incremented whenever the object is updated.\")\n public Integer getVersion() {\n return version;\n }", "public String getDaogenVersion() {\r\n return \"DaoGen version 2.4.1\";\r\n }", "public String getDaogenVersion() {\r\n return \"DaoGen version 2.4.1\";\r\n }", "@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "protected abstract Entity getEditedEntity();", "public float version() { return 0.9f; }", "public void setVersion(final Long version);", "public Version version()\n/* */ {\n/* 518 */ return PackageVersion.VERSION;\n/* */ }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "public abstract String getRevision();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}", "@Override\n public Version version() {\n return com.fasterxml.jackson.databind.cfg.PackageVersion.VERSION;\n }", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "@ApiModelProperty(value = \"(Is this valid?)\")\n public Long getVersion() {\n return version;\n }", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "@Override\n\tpublic int getGeneratedVersion() {\n\t\treturn 0;\n\t}", "public abstract Integer getEntity();", "@BusProperty(name = \"Version\", signature = \"u\")\n int getVersion() throws BusException;", "int getCurrentVersion();", "@Override\r\n\tpublic String[] getEntityBasePackages() {\r\n\t\treturn new String[] {\"com.infosys.apachecassandra.entities\"};\r\n\t}", "String offerVersion();" ]
[ "0.6500853", "0.64246404", "0.6320241", "0.6317126", "0.62320995", "0.62170976", "0.61924666", "0.61637956", "0.6140299", "0.6128171", "0.6080396", "0.603608", "0.603608", "0.603608", "0.60194016", "0.6015074", "0.5992227", "0.59676516", "0.5958322", "0.59418964", "0.58945227", "0.58716166", "0.58475506", "0.58455914", "0.5837417", "0.58336437", "0.5821517", "0.58127874", "0.57876784", "0.57519054", "0.5705172", "0.56993204", "0.5695814", "0.5656297", "0.56551474", "0.56436634", "0.5587166", "0.5568961", "0.5556269", "0.55387443", "0.552101", "0.5508896", "0.55053043", "0.55044466", "0.5499241", "0.54967463", "0.5496579", "0.548053", "0.5474626", "0.54726887", "0.54650134", "0.54594207", "0.54571354", "0.54391205", "0.5437074", "0.54264736", "0.54264736", "0.54264736", "0.54264736", "0.5420475", "0.5417032", "0.5413944", "0.5408626", "0.5398594", "0.5398227", "0.5397915", "0.53950953", "0.53918445", "0.53918445", "0.5378405", "0.5377931", "0.537222", "0.5368866", "0.5367369", "0.53666073", "0.5359315", "0.5355843", "0.5355843", "0.5355843", "0.5355843", "0.5354957", "0.53542084", "0.5351106", "0.5351106", "0.5351106", "0.5351106", "0.53494686", "0.5340016", "0.5340016", "0.5340016", "0.5340016", "0.5340016", "0.5340016", "0.5340016", "0.5340016", "0.53392655", "0.53384185", "0.53362703", "0.5334581", "0.5329618", "0.5328036" ]
0.0
-1
Create a new Chord Ring
ChordNode(String address, int port) { this.address = address; this.port = port; // Convert the address and port to SHA1 SHA1Hasher sha1Hash = new SHA1Hasher(this.address + ":" + this.port); this.id = sha1Hash.getLong(); this.hex = sha1Hash.getHex(); // Print statements System.out.println("Welcome to the Chord Network!"); System.out.println("You are running on IP: " + this.address + " and port: " + this.port); System.out.println("Your ID: " + this.getId()); // initialize finger table and successor this.initializeFingerTable(); this.initializeSuccessors(); // Launch server thread that will listen to clients new Thread(new ChordServer(this)).start(); // Launch the NodeStabilizer that will stabilize the ChordNode periodically new Thread(new ChordNodeStabilizer(this)).start(); // print the finger table this.printFingerTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createChain(){\r\n Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);\r\n Filter filt = new Filter(wt, this.filterCutoff, Filter.LOW_PASS);\r\n Envelope env = new Envelope(filt, \r\n new double[] {0.0, 0.0, 0.05, 1.0, 0.3, 0.4, 1.0, 0.0});\r\n\t\tVolume vol = new Volume(env);\r\n//\t\tSampleOut sout = new SampleOut(vol);\r\n\t}", "public Cylinder() {\n\t\tthis(1.0);\n\t}", "RasPiBoard createRasPiBoard();", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();", "ChargingStation createChargingStation();", "Coin()//method to initialize the coin with a side\r\n {//opening code for the coin method\r\n toss();//statement of using the later toss method to initialize the coin\r\n }", "public void createHallway(int len) {\n createRoom(len, 0, 0);\n }", "Strobo createStrobo();", "public String ring();", "public BruceWayne()\n {\n GeneralPath leftSide = new GeneralPath();\n\tleftSide.moveTo(195,200);\n\tleftSide.lineTo(195,230);//neck\n\tleftSide.lineTo(150,230);//shoulder\n\tleftSide.lineTo(140,250);//shoulder slant\n\tleftSide.lineTo(140,340);//armleft\n\tleftSide.lineTo(165,340);//armbottom\n\tleftSide.lineTo(160,260);//armright\n\tleftSide.lineTo(170,270);//armpit\n\tleftSide.lineTo(170,350);//chest\n\tleftSide.lineTo(160,510);//legleft\n\tleftSide.lineTo(185,510);//legbottom\n\tleftSide.lineTo(200,360);//legright\n\tleftSide.lineTo(220,360);//middle\n\n Shape rightSide = ShapeTransforms.horizontallyFlippedCopyOf(leftSide);\n rightSide = ShapeTransforms.translatedCopyOf(rightSide, 140.0, 0.0);\n\tCircle head = new Circle(210,170,35);\n \n\twholeFigure = new GeneralPath();\n\twholeFigure.append(head,false);\n wholeFigure.append(leftSide, false);\n wholeFigure.append(rightSide, false);\n }", "Turtle createTurtle();", "public HighwayCar(){\r\n \t\r\n \tint dir = (int) (Math.random() * 4 % 4);\r\n \t\r\n setDirection(dir * Math.PI / 2); \r\n \r\n setProperty(\"icon\", \"/robot.png\");\r\n setProperty(\"size\", 20);\r\n Clock.addClockListener(this, 2);\r\n }", "Turn createTurn();", "public Chant(){}", "public void create_crystal() {\n\t\tcrystalQuantity[1] += (1+create_modifier);\n\t\tautomerge();\n\t\tcollection();\n\t}", "public BaseGearPiece generateGearPiece();", "Yard createYard();", "public Hand(){}", "Chain createChain();", "private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }", "void ringBell() {\n\n }", "void crear(Tonelaje tonelaje);", "Drone createDrone();", "public Rng(int sides) {\n\t\tthis();\n\t\tthis.sides = sides;\n\t}", "public Resource() {\n\t\tsuper();\n\t\tfor (int i = 0; i < chopsticks.length; i++) {\n\t\t\tchopsticks[i] = 1;\n\t\t}\n\t}", "public Card() { this(12, 3); }", "public Cop generateCop(){\r\n\r\n\t\t\tPatch currentPatch = randPatch();\r\n\r\n\t\t\tCop cop= new Cop(currentPatch);\r\n\r\n\t\t\tcurrentPatch.setPerson(cop);\r\n\r\n\t\t\treturn cop;\r\n\t\t}", "public static LineQueue<Passenger> makeCommuter() {\r\n\t\tLineQueue<Passenger> commuters = new LineQueue<Passenger>();\r\n\t\tdouble t = 0;\r\n\t\tdouble a;\r\n\t\twhile (t < 3600) {\r\n\t\t\ta = genExp(90);\r\n\t\t\tif (a < 1) {\r\n\t\t\t\ta = 1;\r\n\t\t\t}\r\n\t\t\tt += a;\r\n\t\t\tif (t < 3600) {\r\n\t\t\t\tnumberCommutersMade++;\r\n\t\t\t\tPassenger passenger = new Passenger(false, false, t);\r\n\t\t\t\tcommuters.enqueue(passenger);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn commuters;\r\n\t}", "private Room createCastle(){\n Room hallway = new Room(\"the hallway\");\n\n Room theStairs = new Room(\"the staircase\");\n Medic medic = new Medic(20, 3);\n theStairs.medic = medic;\n\n Room livingRoom = new Room(\"the living room\");\n Monster monster = new Monster(\"Grimeteeth\", 10, 100);\n livingRoom.monster = monster;\n\n Room firstFloor = new Room(\"first floor\");\n Room secondFloor = new Room(\"second floor\");\n Room thirdFloor = new Room(\"third floor\");\n monster = new Monster(\"Voodoobug\", 30, 100);\n thirdFloor.monster = monster;\n\n Room balcony = new Room(\"balcony\");\n balcony.endOfGameText = \"You fall out of the balcony, and die\";\n Room chamber = new Room(\"Chamber\");\n monster = new Monster (\"Smogstrike\", 50, 100);\n chamber.monster = monster;\n chamber.hasTreasure = true;\n chamber.endOfGameText = \"YEEES! You won the game, and found the treasure!\";\n\n Room bedchamber = new Room(\"bedchamber\");\n bedchamber.endOfGameText = \"You fall in a deep sleep, and will never wake up!\";\n\n\n /**\n * Options connecting to the rooms hallway,theStairs,sale,livingRoom variable\n */\n Connections[] hallwayConnections = new Connections[2];\n hallwayConnections[0] = new Connections(\"go left\",\"l\", theStairs);\n hallwayConnections[1] = new Connections(\"go right\",\"r\", livingRoom);\n hallway.connections = hallwayConnections;\n\n Connections[] stairsConnections = new Connections[3];\n stairsConnections[0] = new Connections(\"first floor\",\"1\", firstFloor);\n stairsConnections[1] = new Connections(\"second floor\",\"2\", secondFloor);\n stairsConnections[2] = new Connections(\"third floor\",\"3\", thirdFloor);\n theStairs.connections = stairsConnections;\n\n Connections[] firstFloorConnections = new Connections[3];\n firstFloorConnections[0] = new Connections(\"blue door\",\"b\",hallway);\n firstFloorConnections[1] = new Connections(\"red door\",\"r\",balcony);\n firstFloorConnections[2] = new Connections(\"yellow door\",\"y\",chamber);\n firstFloor.connections = firstFloorConnections;\n\n Connections[] secondFloorConnections = new Connections[1];\n secondFloorConnections[0] = new Connections(\"small door\",\"s\",chamber);\n secondFloor.connections = secondFloorConnections;\n\n Connections[] thridConnections = new Connections[2];\n thridConnections[0] = new Connections(\"big door\",\"bd\",balcony);\n thridConnections[1] = new Connections(\"elevator\",\"e\",firstFloor);\n thirdFloor.connections = thridConnections;\n\n Connections[] livingRoomConnections = new Connections[2];\n livingRoomConnections[0] = new Connections(\"iron door\",\"i\",hallway);\n livingRoomConnections[1] = new Connections(\"tree door\",\"t\",bedchamber);\n livingRoom.connections = livingRoomConnections;\n\n return hallway;\n }", "public Hand() {\n }", "private Group drawSemiRing() {\n Group root = new Group();\r\n\r\n List<CaseWheel> arcs = new ArrayList<>();\r\n double rayon = 100;\r\n double nbAngle = (360 / 24)-1;\r\n\r\n double startAngle = 8;\r\n\r\n Polygon polygon = new Polygon();\r\n polygon.getPoints().addAll(390.0, 150.0,\r\n 420.0, 160.0,\r\n 420.0, 140.0);\r\n\r\n int cpt=0;\r\n for(int i = 0; i <24; i++){\r\n CaseWheel c = new CaseWheel(cpt,300,150,100,startAngle,nbAngle);\r\n startAngle += nbAngle+1;\r\n c.addTo(root);\r\n arcs.add(c);\r\n cpt++;\r\n }\r\n\r\n root.getChildren().add(polygon);\r\n ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);\r\n\r\n time = System.currentTimeMillis();\r\n int nbMilliRandom = new Random().nextInt(7000 - 3000 + 1) + 3000;\r\n Runnable task1 = new Runnable() {\r\n @Override\r\n public void run() {\r\n Platform.runLater(()->{\r\n\r\n for(CaseWheel n : arcs) {\r\n n.rotateAngle(angle);\r\n if(n.isCurrent()){\r\n System.out.println(n.arc.getStartAngle()+\" \"+n.valueAngle);\r\n System.out.print(\"Case current id : \"+n.id+\"\\n\");\r\n }\r\n }\r\n if(System.currentTimeMillis()-time>nbMilliRandom){\r\n angle-=0.01;\r\n }\r\n if(angle<=0) executor.shutdownNow();\r\n });\r\n }\r\n };\r\n\r\n executor.scheduleAtFixedRate(task1, 0, 16, TimeUnit.MILLISECONDS);\r\n\r\n return root;\r\n }", "public Card() {\n this(new Random().nextInt(54));\n establishHierarchicalValue();\n }", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "Stone create();", "public Hand() {\r\n\t\t\r\n\t}", "public LFSR(String seed, int tap) {\n // PUT YOUR CODE HERE\n }", "public IResourceDepot createResourceDepot() {\n\n /*\n * Defining a ResourceDepot \"JackTruckDepot\" that can store DeliverGood and PickupGood.\n *\n */\n\n // We can store a maximum of 10 DeliverGood on our track (assuming that no other load is\n // present)\n // Further, we start with an initial load of 5 DeliverGoods.\n ILoadCapacity deliverGoodCapacity = new SimpleLoadCapacity(\"DeliverGood\", 10, 5);\n\n // We can store a maximum of 5 PickupGood on our track (assuming that no other load is present)\n ILoadCapacity pickupGoodCapacity = new SimpleLoadCapacity(\"PickupGood\", 5, 0);\n\n // Our depot can store a maximum of 10 total items. For example, 7 DeliverGoods\n // and 3 PickupGoods.\n IResourceDepot depot = new SimpleResourceDepot(\"JackTruckDepot\", 10);\n\n // Adding the capacities to our depot\n depot.add(deliverGoodCapacity);\n depot.add(pickupGoodCapacity);\n\n return depot;\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "@Override\n\tprotected void buildCircuit() {\n\t\tthis.circuit.add(new Point2f(97, -98));\n\t\tthis.circuit.add(new Point2f(-3, -98));\n\t\tthis.circuit.add(new Point2f(-3, -2));\n\t\t\n\t\t// U-turn (step 2)\n\t\tthis.circuit.add(new Point2f(-111, -2));\n\t\tthis.circuit.add(new Point2f(-111, 2));\n\t\t\n\t\t// Semi-Loop, bottom-left block (step 3)\n\t\tthis.circuit.add(new Point2f(-3, 2));\n\t\tthis.circuit.add(new Point2f(-3, 106));\n\t\tthis.circuit.add(new Point2f(97, 106));\n\t}", "private static Dog createLabrador(){\n try {\n UtilityMethods.print(\"Creating labrador for you...!\"); \n DogGenerator dogGenerator = new DogGenerator();\n DogBuilder labradorDogBuilder = new LabradorBuilder();\n dogGenerator.setDogBuilder(labradorDogBuilder);\n dogGenerator.constructDog(\n \"Animal\",\n \"Male\",\n 20,\n \"Carnivores\"\n );\n Dog labradordog = dogGenerator.getDog();\n UtilityMethods.print(\"\\n\"); \n labradordog.eat();\n UtilityMethods.print(\"\\n\"); \n labradordog.speak();\n UtilityMethods.print(\"\\n\"); \n labradordog.walk();\n UtilityMethods.print(\"\\n\"); \n return labradordog;\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage()); \n }\n return null;\n }", "public Chord (Measure measure,\r\n Slot slot)\r\n {\r\n super(measure);\r\n reset();\r\n this.slot = slot;\r\n id = measure.getChords().size();\r\n }", "ChordNode(String address, int port, String existingAddress, int existingPort) {\n this.address = address;\n this.port = port;\n this.existingAddress = existingAddress;\n this.existingPort = existingPort;\n\n SHA1Hasher sha1Hash = new SHA1Hasher(this.address + \":\" + this.port);\n this.id = sha1Hash.getLong();\n this.hex = sha1Hash.getHex();\n\n // Print statements\n System.out.println(\"Welcome to the Chord Network!\");\n System.out.println(\"You are running on IP: \" + this.address + \" and port: \" + this.port);\n System.out.println(\"Your ID: \" + this.getId());\n\n // initialize finger table and successor\n this.initializeFingerTable();\n this.initializeSuccessors();\n\n // Launch server thread that will listen to clients\n new Thread(new ChordServer(this)).start();\n\n this.printFingerTable();\n }", "private Molecule buildChain(int length, boolean isMainCyclic)\n {\n Molecule currentChain;\n if (length > 0)\n {\n //If is cyclic\n if (isMainCyclic)\n {\n //Rely on CDK's ring class constructor to generate our cyclic molecules.\n currentChain = new Molecule();\n currentChain.add(new Ring(length, \"C\"));\n } //Else must not be cyclic\n else\n {\n currentChain = MoleculeFactory.makeAlkane(length);\n }\n }\n else\n {\n currentChain = new Molecule();\n }\n \n return currentChain;\n }", "public Flatbed(int angle){\r\n this.angle=angle;\r\n }", "Lehrkraft createLehrkraft();", "public LightRing(int portNum) {\n this.relay = new Relay(portNum, Relay.Direction.kForward); // only allows you to turn on one side/direction\n }", "private void makeWithdraw() {\n\t\t\r\n\t}", "public void createChallenger() {\n\n Random random = new Random();\n if(currentTurn.getActivePlayers().size() != 1) {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(random.nextInt(currentTurn.getActivePlayers().size() - 1)));\n } else {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(0));\n }\n int i = onlinePlayers.indexOf(currentTurn.getCurrentPlayer());\n stateList.set(i, new Initialized(getCurrentTurn().getCurrentPlayer(), this));\n\n }", "Oracion createOracion();", "public Hand() {\n this.hole1 = new BlankCard();\n this.hole2 = new BlankCard();\n showCards = false;\n }", "public void createChannel() {\r\n\t\tworkChannels.add(new ArrayList<Point>());\r\n\t}", "public ChaCha( int rounds )\n\t{\n\t\tsuper( rounds );\n\t}", "BR createBR();", "public ElectricShower() {\r\n\t\tthis(12, 0, 4);\r\n\t}", "public void generateLabyrinth() {\n\n /**\n * Generate some randoms Monsters for rooms\n */\n Monsters[] monster = new Monsters[countRooms];\n for (int i = 0; i < countRooms; i++) {\n monster[i] = new Monsters(\n rnd.nextDouble() * 10 + 1,\n rnd.nextDouble() * 10 + 1,\n rnd.nextDouble() * 10 + 1\n );\n }\n\n /**\n * Genetare random rooms with monsters\n */\n Rooms[] room = new Rooms[countRooms];\n for (int i = 0; i < countRooms; i++) {\n room[i] = new Rooms(\"unknownRoom\" + i);\n room[i].setMonster(monster[i]);\n if (rnd.nextInt(100) < 50) {\n room[i].setItem(shop.getRandomItem());\n }\n }\n\n /**\n * Connecting rooms with each other\n * North to South\n * East to West\n */\n\n //init and connect first room with labyrinth\n currentRoom = new Rooms(\"startRoom\");\n currentRoom.setNorth(room[0]);\n room[0].setSouth(currentRoom);\n\n for (int i = 0; i < countRooms - 1; i++) {\n int rint;\n //North to South\n rint = rnd.nextInt(countRooms);\n if (room[i].getNorth() == null) {\n while (room[rint].getSouth() != null) {\n rint = rnd.nextInt(countRooms);\n }\n room[i].setNorth(room[rint]);\n room[rint].setSouth(room[i]);\n }\n //East to West\n rint = rnd.nextInt(countRooms);\n if (room[i].getEast() == null) {\n while (room[rint].getWest() != null) {\n rint = rnd.nextInt(countRooms);\n }\n room[i].setEast(room[rint]);\n room[rint].setWest(room[i]);\n }\n\n }\n\n\n }", "protected GUINode createChain(CardPack pack, ArrayList<Card> winning, int slotDelay, int sleep) {\n int nanoSlotDelay = slotDelay * 1000 / sleep;\n GUINode next = null;\n for (Card current : winning) {\n GUINode newNode = new GUINode(pack, current, nanoSlotDelay, next);\n next = newNode;\n }\n return next;\n }", "int drawRing(PVector p, double t) {\n p = LayoutUtil.Vadd(p, LayoutUtil.V(1, 1));\n\n double z = .08 * t;\n double hue = .1 * t;\n double scale = .75;\n \n double saturation = constrain(Math.pow(1.15 * noise(t * 0.122), 2.5), 0, 1);\n double spacing = noise(t * 0.124) * 15.;\n \n double centerx = noise(t * 0.125) * 2.5;\n double centery = noise(t * -0.125) * 2.5;\n \n double dist = Math.sqrt(Math.pow(p.x - centerx, 2) + Math.pow(p.y - centery, 2));\n double pulse = (Math.sin(state.dz + dist * spacing) - 0.3) * 0.3;\n \n double n = fractalNoise(state.dx + p.x*scale + pulse, state.dy + p.y*scale, z) - 0.75;\n double m = fractalNoise(state.dx + p.x*scale, state.dy + p.y*scale, z + 10.0) - 0.75;\n \n return color(\n MathUtil.fmod(hue + .4 * m, 1.), \n saturation,\n constrain(Math.pow(3.0 * n, 1.5), 0, 0.9)\n );\n }", "public RingBuffer(int capacity){\n structure = new LinkedList<E>();\n this.capacity = capacity;\n }", "public Pinky(Pinky autre){\n\t\tsuper(autre);\n\t\tstartPos = autre.getPosition();\n\t\tsteps = 0;\n\t\tpreviousChoice = autre.getPosition().toDirection();\n\t\tmode = 'c'; \n\t}", "@Override\n\tDough createDought() {\n\t\treturn new NYDough();\n\t}", "public void createRoom(int len, int leftWid, int rightWid) {\n switch (facing) {\n case \"Up\":\n addUpBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Down\":\n addDownBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Left\":\n addLeftBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Right\":\n addRightBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n default:\n System.out.println(\"The wizard loses his direction!\");\n\n }\n }", "Degree createDegree();", "public Chord duplicate ()\r\n {\r\n // Beams are not copied\r\n Chord clone = new Chord(getMeasure(), slot);\r\n clone.stem = stem;\r\n stem.addTranslation(clone);\r\n\r\n // Notes (we make a deep copy of each note)\r\n List<TreeNode> notesCopy = new ArrayList<>();\r\n notesCopy.addAll(getNotes());\r\n\r\n for (TreeNode node : notesCopy) {\r\n Note note = (Note) node;\r\n new Note(clone, note);\r\n }\r\n\r\n clone.tupletFactor = tupletFactor;\r\n\r\n clone.dotsNumber = dotsNumber;\r\n clone.flagsNumber = flagsNumber; // Not sure TODO\r\n\r\n // Insure correct ordering of chords within their container\r\n ///Collections.sort(getParent().getChildren(), chordComparator);\r\n\r\n return clone;\r\n }", "@Test\n\tpublic void testRestSIFChord(){\n\t\ttry{\n\t\t\tchord = new Chord(1, \"rest\");\n\t\t\tassertEquals(0, chord.getRoot());\n\t\t\tassertEquals(4, chord.getDuration(), 0);\n\n\t\t\tchord = new Chord(6, \"REST-10\");\n\t\t\tassertEquals(0, chord.getRoot());\n\t\t\tassertEquals(10, chord.getDuration(), 0);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(e.getMessage());\n\t\t}\n\t}", "private Card(Color c, Rank r) {\n this.nbCard = pack(c,r);\n }", "@Override\n\tpublic void createConseille(Conseille c) {\n\t\t\n\t}", "public Crate(){}", "public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n this.setCurrentTurn(turn);\n }", "Gtr createGtr();", "public Challenger() {\r\n\t\tname = \"TBD\";\r\n\t\trank = -1;\r\n\t}", "public CircularArrayRing() {\n this.ringArray = new Object[DEFAULT_RING_SIZE];\n elementCount = 0;\n head = -1;\n }", "public Obrim(int strength, int armor, int hp){\n\t\tsuper(strength,armor, hp);\n\t}", "public void create(){}", "public void create() {\n\t\t\n\t}", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "RclBlock createRclBlock();", "public CardPath() {\n\t\tsuper();\n\t}", "@Override\n\tpublic Door MakeDoor(Room r1, Room r2) {\n\t\treturn new Door(r1, r2); \n\t}", "public String getRing();", "public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "protected void setupPiece() {\n double radius = (this.size * 2) / 5;\n double height = radius / 1.5;\n\n this.material = new PhongMaterial();\n this.material.setDiffuseMap(\n new Image(getClass().getResourceAsStream(\n team == Controller.Team.BLACK ? \"/assets/piece_black.jpg\" : \"/assets/piece_white.jpg\"\n ))\n );\n\n this.cylinder = new Cylinder(radius, height);\n this.cylinder.setMaterial(this.getMaterial());\n this.cylinder.setRotationAxis(Rotate.X_AXIS);\n this.cylinder.setRotate(90);\n this.cylinder.setTranslateZ(height / 2);\n\n this.cylinderContainer.getChildren().add(this.cylinder);\n }", "@Override\n\t\t\tpublic void draw(int depth, Painter painter) {\n\t\t\t\tTurtleState state = new TurtleState(\n\t\t\t\t\t\torigin.copy(), \n\t\t\t\t\t\tnew Vector2D(1, 0).rotated(angle), \n\t\t\t\t\t\tColor.BLACK,\n\t\t\t\t\t\tunitLength * Math.pow(unitLengthDegreeScaler, depth)\n\t\t\t\t\t\t);\n\t\t\t\tContext context = new Context();\n\t\t\t\tcontext.pushState(state);\n\t\t\t\tchar[] sequence = generate(depth).toCharArray();\n\t\t\t\t\n\t\t\t\texecuteAllCommands(context, painter, sequence);\n\t\t\t}", "public Chick() {\n\t}", "Angle createAngle();", "@Test\n\tpublic void testASimpleCarbonRing() throws Exception {\n\t\t// First we create a simple carbon ring to play with... \n\t\tIAtomContainer mol = new AtomContainer();\n\t\tIAtomType carbon = new AtomType(Elements.CARBON);\n\t\t\n\t\tIAtom a0 = new Atom(\"C\");\n\t\ta0.setHybridization(IAtomType.Hybridization.SP2);\n\t\ta0.setImplicitHydrogenCount(1);\n\t\tAtomTypeManipulator.configureUnsetProperties(a0, carbon);\n\t\tIAtom a1 = new Atom(\"C\");\n\t\ta1.setHybridization(IAtomType.Hybridization.SP2);\n\t\ta1.setImplicitHydrogenCount(1);\n\t\tAtomTypeManipulator.configureUnsetProperties(a1, carbon);\n\t\tIAtom a2 = new Atom(\"C\");\n\t\ta2.setHybridization(IAtomType.Hybridization.SP2);\n\t\ta2.setImplicitHydrogenCount(1);\n\t\tAtomTypeManipulator.configureUnsetProperties(a2, carbon);\n\t\tIAtom a3 = new Atom(\"C\");\n\t\ta3.setHybridization(IAtomType.Hybridization.SP2);\n\t\ta3.setImplicitHydrogenCount(1);\n\t\tAtomTypeManipulator.configureUnsetProperties(a3, carbon);\n\t\tIAtom a4 = new Atom(\"C\");\n\t\ta4.setHybridization(IAtomType.Hybridization.SP2);\n\t\ta4.setImplicitHydrogenCount(1);\n\t\tAtomTypeManipulator.configureUnsetProperties(a4, carbon);\n\t\tIAtom a5 = new Atom(\"C\");\n\t\ta5.setHybridization(IAtomType.Hybridization.SP2);\n\t\ta5.setImplicitHydrogenCount(1);\n\t\tAtomTypeManipulator.configureUnsetProperties(a5, carbon);\n\t\t\n\t\tmol.addAtom(a0);\n\t\tmol.addAtom(a1);\n\t\tmol.addAtom(a2);\n\t\tmol.addAtom(a3);\n\t\tmol.addAtom(a4);\n\t\tmol.addAtom(a5);\n\t\t\n\t\tIBond b0 = new Bond(a0,a1);\n\t\tb0.setFlag(CDKConstants.SINGLE_OR_DOUBLE, true);\n\t\tmol.addBond(b0);\n\t\tIBond b1 = new Bond(a1,a2);\n\t\tb1.setFlag(CDKConstants.SINGLE_OR_DOUBLE, true);\n\t\tmol.addBond(b1);\n\t\tIBond b2 = new Bond(a2,a3);\n\t\tb2.setFlag(CDKConstants.SINGLE_OR_DOUBLE, true);\n\t\tmol.addBond(b2);\n\t\tIBond b3 = new Bond(a3,a4);\n\t\tb3.setFlag(CDKConstants.SINGLE_OR_DOUBLE, true);\n\t\tmol.addBond(b3);\n\t\tIBond b4 = new Bond(a4,a5);\n\t\tb4.setFlag(CDKConstants.SINGLE_OR_DOUBLE, true);\n\t\tmol.addBond(b4);\n\t\tIBond b5 = new Bond(a5,a0);\n\t\tb5.setFlag(CDKConstants.SINGLE_OR_DOUBLE, true);\n\t\tmol.addBond(b5);\n\t\n\t\tAtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);\n\t\tAtomTypeTools att = new AtomTypeTools();\n\t\tatt.assignAtomTypePropertiesToAtom(mol, false);\n\n\t\t// ...then we send it to the method we want to test...\n\t\tatasc.decideBondOrder(mol, false);\n\t\t\n\t\tAssert.assertEquals(IBond.Order.DOUBLE, b0.getOrder());\n\t\tAssert.assertEquals(IBond.Order.SINGLE, b1.getOrder());\n\t\tAssert.assertEquals(IBond.Order.DOUBLE, b2.getOrder());\n\t\tAssert.assertEquals(IBond.Order.SINGLE, b3.getOrder());\n\t\tAssert.assertEquals(IBond.Order.DOUBLE, b4.getOrder()); \n\t\tAssert.assertEquals(IBond.Order.SINGLE, b5.getOrder());\n\t\t\n\t\tAssert.assertTrue( satcheck.isSaturated(a0, mol) );\n\t\t\n\t}", "Cancion createCancion();", "@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}", "public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }", "@Override\r\n\tpublic Battery createBattery(double initialEnergy, int weight)\r\n\t{\r\n\t\treturn new Battery(initialEnergy, weight);\r\n\t}", "public Coin()\n {\n toss();//call the toss method\n }", "public Deck()\n {\n this(1);\n }", "RoverProgram createRoverProgram();", "@SuppressWarnings(\"unchecked\")\n public RingFactory nextCoefficientRing() throws IOException {\n RingFactory coeff = null;\n coeffType ct = null;\n int tt;\n tt = tok.nextToken();\n if (tok.sval != null) {\n if (tok.sval.equalsIgnoreCase(\"Q\")) {\n coeff = new BigRational(0);\n ct = coeffType.BigRat;\n } else if (tok.sval.equalsIgnoreCase(\"Rat\")) {\n coeff = new BigRational(0);\n ct = coeffType.BigRat;\n } else if (tok.sval.equalsIgnoreCase(\"D\")) {\n coeff = new BigDecimal(0);\n ct = coeffType.BigD;\n } else if (tok.sval.equalsIgnoreCase(\"Z\")) {\n coeff = new BigInteger(0);\n ct = coeffType.BigInt;\n } else if (tok.sval.equalsIgnoreCase(\"Int\")) {\n coeff = new BigInteger(0);\n ct = coeffType.BigInt;\n } else if (tok.sval.equalsIgnoreCase(\"C\")) {\n coeff = new BigComplex(0);\n ct = coeffType.BigC;\n } else if (tok.sval.equalsIgnoreCase(\"Complex\")) {\n coeff = new BigComplex(0);\n ct = coeffType.BigC;\n } else if (tok.sval.equalsIgnoreCase(\"Quat\")) {\n coeff = new BigQuaternion(0);\n ct = coeffType.BigQ;\n } else if (tok.sval.equalsIgnoreCase(\"Mod\")) {\n tt = tok.nextToken();\n boolean openb = false;\n if (tt == '[') { // optional\n openb = true;\n tt = tok.nextToken();\n }\n if (tok.sval != null && tok.sval.length() > 0) {\n if (digit(tok.sval.charAt(0))) {\n BigInteger mo = new BigInteger(tok.sval);\n BigInteger lm = new BigInteger(Long.MAX_VALUE);\n if (mo.compareTo(lm) < 0) {\n coeff = new ModLongRing(mo.getVal());\n } else {\n coeff = new ModIntegerRing(mo.getVal());\n }\n System.out.println(\"coeff = \" + coeff + \" :: \" + coeff.getClass());\n ct = coeffType.ModInt;\n } else {\n tok.pushBack();\n }\n } else {\n tok.pushBack();\n }\n if (tt == ']' && openb) { // optional\n tt = tok.nextToken();\n }\n } else if (tok.sval.equalsIgnoreCase(\"RatFunc\")) {\n String[] rfv = nextVariableList();\n //System.out.println(\"rfv = \" + rfv.length + \" \" + rfv[0]);\n int vr = rfv.length;\n BigInteger bi = new BigInteger();\n TermOrder to = new TermOrder(TermOrder.INVLEX);\n GenPolynomialRing<BigInteger> pcf = new GenPolynomialRing<BigInteger>(bi, vr, to, rfv);\n coeff = new QuotientRing(pcf);\n ct = coeffType.RatFunc;\n } else if (tok.sval.equalsIgnoreCase(\"ModFunc\")) {\n tt = tok.nextToken();\n RingFactory mi = new ModIntegerRing(\"19\");\n if (tok.sval != null && tok.sval.length() > 0) {\n if (digit(tok.sval.charAt(0))) {\n mi = new ModIntegerRing(tok.sval);\n } else {\n tok.pushBack();\n }\n } else {\n tok.pushBack();\n }\n String[] rfv = nextVariableList();\n //System.out.println(\"rfv = \" + rfv.length + \" \" + rfv[0]);\n int vr = rfv.length;\n TermOrder to = new TermOrder(TermOrder.INVLEX);\n GenPolynomialRing<ModInteger> pcf = new GenPolynomialRing<ModInteger>(mi, vr, to, rfv);\n coeff = new QuotientRing(pcf);\n ct = coeffType.ModFunc;\n } else if (tok.sval.equalsIgnoreCase(\"IntFunc\")) {\n String[] rfv = nextVariableList();\n //System.out.println(\"rfv = \" + rfv.length + \" \" + rfv[0]);\n int vr = rfv.length;\n BigRational bi = new BigRational();\n TermOrder to = new TermOrder(TermOrder.INVLEX);\n GenPolynomialRing<BigRational> pcf = new GenPolynomialRing<BigRational>(bi, vr, to, rfv);\n coeff = pcf;\n ct = coeffType.IntFunc;\n } else if (tok.sval.equalsIgnoreCase(\"AN\")) {\n tt = tok.nextToken();\n if (tt == '[') {\n tt = tok.nextToken();\n RingFactory tcfac = new ModIntegerRing(\"19\");\n if (tok.sval != null && tok.sval.length() > 0) {\n if (digit(tok.sval.charAt(0))) {\n tcfac = new ModIntegerRing(tok.sval);\n } else {\n tcfac = new BigRational();\n tok.pushBack();\n }\n } else {\n tcfac = new BigRational();\n tok.pushBack();\n }\n String[] anv = nextVariableList();\n //System.out.println(\"anv = \" + anv.length + \" \" + anv[0]);\n int vs = anv.length;\n if (vs != 1) {\n logger.error(\"AlgebraicNumber only for univariate polynomials\");\n }\n String[] ovars = vars;\n vars = anv;\n GenPolynomialRing tpfac = pfac;\n RingFactory tfac = fac;\n fac = tcfac;\n // pfac and fac used in nextPolynomial()\n if (tcfac instanceof ModIntegerRing) {\n pfac = new GenPolynomialRing<ModInteger>(tcfac, vs, new TermOrder(), anv);\n } else {\n pfac = new GenPolynomialRing<BigRational>(tcfac, vs, new TermOrder(), anv);\n }\n if (debug) {\n logger.debug(\"pfac = \" + pfac);\n }\n GenPolynomialTokenizer ptok = new GenPolynomialTokenizer(pfac, reader);\n GenPolynomial mod = ptok.nextPolynomial();\n ptok = null;\n if (debug) {\n logger.debug(\"mod = \" + mod);\n }\n pfac = tpfac;\n fac = tfac;\n vars = ovars;\n if (tcfac instanceof ModIntegerRing) {\n GenPolynomial<ModInteger> gfmod;\n gfmod = (GenPolynomial<ModInteger>) mod;\n coeff = new AlgebraicNumberRing<ModInteger>(gfmod);\n ct = coeffType.ANmod;\n } else {\n GenPolynomial<BigRational> anmod;\n anmod = (GenPolynomial<BigRational>) mod;\n coeff = new AlgebraicNumberRing<BigRational>(anmod);\n ct = coeffType.ANrat;\n }\n if (debug) {\n logger.debug(\"coeff = \" + coeff);\n }\n tt = tok.nextToken();\n if (tt == ']') {\n //ok, no nextToken();\n } else {\n tok.pushBack();\n }\n } else {\n tok.pushBack();\n }\n }\n }\n if (coeff == null) {\n tok.pushBack();\n coeff = new BigRational();\n ct = coeffType.BigRat;\n }\n parsedCoeff = ct;\n return coeff;\n }", "public void createRoom() {\n int hp = LabyrinthFactory.HP_PLAYER;\n if (hero != null) hp = hero.getHp();\n try {\n labyrinth = labyrinthLoader.createLabyrinth(level, room);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n characterLoader.createCharacter(level, room);\n hero = characterLoader.getPlayer();\n if (room > 1) hero.setHp(hp);\n createMonsters();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "AnalogPin createAnalogPin();", "public RailRoad() {}", "public CPRCommand()\r\n {\r\n }", "public Asteroid()\r\n\t{\r\n\t\tsuper.setDirection(rn.nextInt(360));\r\n\t\tsuper.setSpeed(rn.nextInt(100));\r\n\t\tsuper.setLocalX(rn.nextFloat() * 1024);\r\n\t\tsuper.setLocalY(rn.nextFloat() * 786);\r\n\t\tsuper.setColor(250);\r\n\t\tsize = rn.nextInt(10);\r\n\t\t\r\n\t}", "public KarateChop() {\n super(SkillFactory.KARATE_CHOP, \"Karate Chop\", SkillDescription.KARATE_CHOP, 25,\n Pokemon.Type.FIGHTING, SkillCategory.PHYSICAL, 100, 50, 2);\n makesPhysicalContact = true;\n }", "public CircularArrayRing(int ringSize) {\n this.ringArray = new Object[ringSize];\n elementCount = 0;\n head = -1;\n }" ]
[ "0.5784096", "0.5764343", "0.56832474", "0.54988956", "0.543616", "0.5435256", "0.54169756", "0.5412147", "0.541154", "0.539264", "0.5313021", "0.5309948", "0.5308069", "0.53077394", "0.5293181", "0.5278216", "0.5262841", "0.52486825", "0.52482814", "0.5240098", "0.52361", "0.5229741", "0.52216107", "0.5214123", "0.5195914", "0.5190377", "0.5181771", "0.5170484", "0.5168069", "0.5151447", "0.5145529", "0.512984", "0.5126945", "0.5125442", "0.5120208", "0.5113661", "0.5102195", "0.5084362", "0.5083903", "0.50767833", "0.50764394", "0.50640315", "0.5063572", "0.50601745", "0.5030828", "0.50150806", "0.5011782", "0.5005845", "0.5003615", "0.49899268", "0.49860302", "0.49754408", "0.49647996", "0.4949778", "0.494077", "0.49393126", "0.49362636", "0.4935201", "0.4929755", "0.49291193", "0.4927912", "0.4924175", "0.49200192", "0.49188906", "0.49044764", "0.49025723", "0.49022657", "0.4901684", "0.48921198", "0.48858616", "0.48837397", "0.4883025", "0.4881871", "0.48800507", "0.4879365", "0.48755983", "0.4872375", "0.48691693", "0.48667565", "0.48625863", "0.48553124", "0.48546892", "0.48507762", "0.48477778", "0.48470414", "0.48469087", "0.48358655", "0.48358622", "0.4832124", "0.4831562", "0.48304954", "0.4829718", "0.4822098", "0.4821897", "0.48181134", "0.4816385", "0.48153973", "0.48124164", "0.48090068", "0.4798653" ]
0.48746374
76